Browse Source
If __px4_log_level_current is unsigned then the runtime filter comparison warns because an unsigned value can't be less than zero. Changed typed to signed so compiler will not issue a warning. Signed-off-by: Mark Charlebois <charlebm@gmail.com>sbg
2 changed files with 2 additions and 2 deletions
@ -1,5 +1,5 @@ |
|||||||
#include <px4_log.h> |
#include <px4_log.h> |
||||||
|
|
||||||
__EXPORT unsigned int __px4_log_level_current = PX4_LOG_LEVEL_AT_RUN_TIME; |
__EXPORT int __px4_log_level_current = PX4_LOG_LEVEL_AT_RUN_TIME; |
||||||
|
|
||||||
__EXPORT const char *__px4_log_level_str[_PX4_LOG_LEVEL_DEBUG+1] = { "INFO", "PANIC", "ERROR", "WARN", "DEBUG" }; |
__EXPORT const char *__px4_log_level_str[_PX4_LOG_LEVEL_DEBUG+1] = { "INFO", "PANIC", "ERROR", "WARN", "DEBUG" }; |
||||||
|
Loading…
Reference in new issue