mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 18:47:21 +08:00
events: use PRIx32 to print uint32
This commit is contained in:
@@ -39,7 +39,7 @@
|
|||||||
// It does not print arguments.
|
// It does not print arguments.
|
||||||
#if 0
|
#if 0
|
||||||
#include <px4_platform_common/log.h>
|
#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
|
#else
|
||||||
#define CONSOLE_PRINT_EVENT(log_level, id, str)
|
#define CONSOLE_PRINT_EVENT(log_level, id, str)
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user