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.
@@ -24,6 +24,7 @@ extern "C" {
#endif
#include <mcuboot_config/mcuboot_config.h>
+#include <mcuboot_config/mcuboot_logging.h>
#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 <mcuboot_config/mcuboot_logging.h>
-
#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__)
