events: use PRIx32 to print uint32

This commit is contained in:
Beat Küng 2022-09-08 20:56:51 +02:00 committed by Daniel Agar
parent acaa50a448
commit 3fcdf40a47
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@
// It does not print arguments.
#if 0
#include <px4_platform_common/log.h>
#define CONSOLE_PRINT_EVENT(log_level, id, str) PX4_INFO_RAW("Event 0x%08x: %s\n", id, str)
#define CONSOLE_PRINT_EVENT(log_level, id, str) PX4_INFO_RAW("Event 0x%08" PRIx32 ": %s\n", id, str)
#else
#define CONSOLE_PRINT_EVENT(log_level, id, str)
#endif