Commit 0752d8ae authored by Emanuele Di Santo's avatar Emanuele Di Santo Committed by Andrzej Puzdrowski
Browse files

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: default avatarEmanuele Di Santo <emdi@nordicsemi.no>
parent 7c00acd7
Loading
Loading
Loading
Loading
+1 −2
Changes for boot/bootutil/include/bootutil/bootutil_log.h: 1 added line, 2 removed lines.
Original line number Diff line number Diff line
@@ -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__)