From 0752d8aee4c082e5288444f60c718f0d2567804e Mon Sep 17 00:00:00 2001 From: Emanuele Di Santo Date: Tue, 8 Jan 2019 13:20:16 +0100 Subject: [PATCH] boot: bootutil: include mcuboot_logging.h unconditionally The mcuboot_logging.h header includes the header for the log subystem, which needs to be included regardless of whether logging is enabled for logging macros to compile correctly. Signed-off-by: Emanuele Di Santo --- boot/bootutil/include/bootutil/bootutil_log.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/boot/bootutil/include/bootutil/bootutil_log.h b/boot/bootutil/include/bootutil/bootutil_log.h index 198fdc5d..c8a96a6a 100644 --- a/boot/bootutil/include/bootutil/bootutil_log.h +++ b/boot/bootutil/include/bootutil/bootutil_log.h @@ -24,6 +24,7 @@ extern "C" { #endif #include +#include #ifdef MCUBOOT_HAVE_LOGGING @@ -37,8 +38,6 @@ extern "C" { #define BOOT_LOG_LEVEL_INFO MCUBOOT_LOG_LEVEL_INFO #define BOOT_LOG_LEVEL_DEBUG MCUBOOT_LOG_LEVEL_DEBUG -#include - #define BOOT_LOG_ERR(...) MCUBOOT_LOG_ERR(__VA_ARGS__) #define BOOT_LOG_WRN(...) MCUBOOT_LOG_WRN(__VA_ARGS__) #define BOOT_LOG_INF(...) MCUBOOT_LOG_INF(__VA_ARGS__)