Commit 082be24c authored by Carlos Falgueras García's avatar Carlos Falgueras García Committed by Andrzej Puzdrowski
Browse files

bootutil: Do not include mcuboot_logging.h when logging is disabled



This frees the user from the need of create an empty "mcuboot_logging.h"
when the logging is disabled.

Signed-off-by: default avatarCarlos Falgueras García <carlos.falgueras@wslw.es>
parent a4b4b0f0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -26,9 +26,9 @@ extern "C" {
#endif

#include <mcuboot_config/mcuboot_config.h>
#include <mcuboot_config/mcuboot_logging.h>

#ifdef MCUBOOT_HAVE_LOGGING
#include <mcuboot_config/mcuboot_logging.h>

#define BOOT_LOG_ERR(...) MCUBOOT_LOG_ERR(__VA_ARGS__)
#define BOOT_LOG_WRN(...) MCUBOOT_LOG_WRN(__VA_ARGS__)