From ee855a1bf656a652be17b55a0678b8fc08468427 Mon Sep 17 00:00:00 2001 From: Erik Johnson Date: Wed, 22 Jan 2020 13:55:46 -0600 Subject: [PATCH] logging: Added explicit cast to u16_t of LOG_CURRENT_MODULE_ID() Matches other code that uses this macro (just above). Signed-off-by: Erik Johnson --- include/logging/log_core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/logging/log_core.h b/include/logging/log_core.h index 6fa56254aad..7dd4e331032 100644 --- a/include/logging/log_core.h +++ b/include/logging/log_core.h @@ -334,7 +334,7 @@ static inline char z_log_minimal_level_to_char(int level) #define Z_LOG_HEXDUMP(_level, _data, _length, _str) \ __LOG_HEXDUMP(_level, \ - LOG_CURRENT_MODULE_ID(), \ + (u16_t)LOG_CURRENT_MODULE_ID(), \ LOG_CURRENT_DYNAMIC_DATA_ADDR(), \ _data, _length, _str)