From eede43a786bbcfaf66ea91123247fdd50baa72e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Fri, 12 Aug 2016 19:41:31 +0200 Subject: [PATCH] px4_log.h: move px4_log_initialize() out of #ifdef --- src/platforms/px4_log.h | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/platforms/px4_log.h b/src/platforms/px4_log.h index 0e393cdb28..298276e2ef 100644 --- a/src/platforms/px4_log.h +++ b/src/platforms/px4_log.h @@ -38,6 +38,8 @@ #pragma once +#include + #define _PX4_LOG_LEVEL_ALWAYS 0 #define _PX4_LOG_LEVEL_DEBUG 1 #define _PX4_LOG_LEVEL_WARN 2 @@ -50,6 +52,14 @@ static inline void do_nothing(int level, ...) (void)level; } +__BEGIN_DECLS + +/** + * initialize the orb logging. Logging to console still works without or before calling this. + */ +__EXPORT extern void px4_log_initialize(void); + +__END_DECLS /**************************************************************************** * __px4_log_omit: @@ -128,11 +138,6 @@ static inline void do_nothing(int level, ...) __BEGIN_DECLS -/** - * initialize the orb logging. Logging to console still works without or before calling this. - */ -__EXPORT extern void px4_log_initialize(void); - __EXPORT extern const char *__px4_log_level_str[_PX4_LOG_LEVEL_PANIC + 1]; __EXPORT extern const char *__px4_log_level_color[_PX4_LOG_LEVEL_PANIC + 1]; __EXPORT extern void px4_backtrace(void);