Skip to content

Commit

Permalink
zephyr: port: mcuboot_logging newline
Browse files Browse the repository at this point in the history
Signed-off-by: Marek Matej <[email protected]>
  • Loading branch information
Marek Matej authored and sylvioalves committed Feb 17, 2025
1 parent 95e9635 commit 3664042
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions zephyr/port/include/boot/mcuboot_config/mcuboot_logging.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ extern int ets_printf(const char *fmt, ...);
#if MCUBOOT_LOG_LEVEL >= MCUBOOT_LOG_LEVEL_ERROR
#define MCUBOOT_LOG_ERR(_fmt, ...) \
do { \
ESP_EARLY_LOGE("boot", _fmt "\n\r", ##__VA_ARGS__); \
ESP_EARLY_LOGE("boot", _fmt, ##__VA_ARGS__); \
} while (0)
#else
#define MCUBOOT_LOG_ERR(_fmt, ...)
Expand All @@ -34,7 +34,7 @@ extern int ets_printf(const char *fmt, ...);
#if MCUBOOT_LOG_LEVEL >= MCUBOOT_LOG_LEVEL_WARNING
#define MCUBOOT_LOG_WRN(_fmt, ...) \
do { \
ESP_EARLY_LOGW("boot", _fmt "\n\r", ##__VA_ARGS__); \
ESP_EARLY_LOGW("boot", _fmt, ##__VA_ARGS__); \
} while (0)
#else
#define MCUBOOT_LOG_WRN(_fmt, ...)
Expand All @@ -43,7 +43,7 @@ extern int ets_printf(const char *fmt, ...);
#if MCUBOOT_LOG_LEVEL >= MCUBOOT_LOG_LEVEL_INFO
#define MCUBOOT_LOG_INF(_fmt, ...) \
do { \
ESP_EARLY_LOGI("boot", _fmt "\n\r", ##__VA_ARGS__); \
ESP_EARLY_LOGI("boot", _fmt, ##__VA_ARGS__); \
} while (0)
#else
#define MCUBOOT_LOG_INF(_fmt, ...)
Expand All @@ -52,7 +52,7 @@ extern int ets_printf(const char *fmt, ...);
#if MCUBOOT_LOG_LEVEL >= MCUBOOT_LOG_LEVEL_DEBUG
#define MCUBOOT_LOG_DBG(_fmt, ...) \
do { \
ESP_EARLY_LOGD("boot", _fmt "\n\r", ##__VA_ARGS__); \
ESP_EARLY_LOGD("boot", _fmt, ##__VA_ARGS__); \
} while (0)
#else
#define MCUBOOT_LOG_DBG(_fmt, ...)
Expand Down

0 comments on commit 3664042

Please sign in to comment.