Skip to content

Commit 3664042

Browse files
Marek Matejsylvioalves
authored andcommitted
zephyr: port: mcuboot_logging newline
Signed-off-by: Marek Matej <[email protected]>
1 parent 95e9635 commit 3664042

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

zephyr/port/include/boot/mcuboot_config/mcuboot_logging.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ extern int ets_printf(const char *fmt, ...);
2525
#if MCUBOOT_LOG_LEVEL >= MCUBOOT_LOG_LEVEL_ERROR
2626
#define MCUBOOT_LOG_ERR(_fmt, ...) \
2727
do { \
28-
ESP_EARLY_LOGE("boot", _fmt "\n\r", ##__VA_ARGS__); \
28+
ESP_EARLY_LOGE("boot", _fmt, ##__VA_ARGS__); \
2929
} while (0)
3030
#else
3131
#define MCUBOOT_LOG_ERR(_fmt, ...)
@@ -34,7 +34,7 @@ extern int ets_printf(const char *fmt, ...);
3434
#if MCUBOOT_LOG_LEVEL >= MCUBOOT_LOG_LEVEL_WARNING
3535
#define MCUBOOT_LOG_WRN(_fmt, ...) \
3636
do { \
37-
ESP_EARLY_LOGW("boot", _fmt "\n\r", ##__VA_ARGS__); \
37+
ESP_EARLY_LOGW("boot", _fmt, ##__VA_ARGS__); \
3838
} while (0)
3939
#else
4040
#define MCUBOOT_LOG_WRN(_fmt, ...)
@@ -43,7 +43,7 @@ extern int ets_printf(const char *fmt, ...);
4343
#if MCUBOOT_LOG_LEVEL >= MCUBOOT_LOG_LEVEL_INFO
4444
#define MCUBOOT_LOG_INF(_fmt, ...) \
4545
do { \
46-
ESP_EARLY_LOGI("boot", _fmt "\n\r", ##__VA_ARGS__); \
46+
ESP_EARLY_LOGI("boot", _fmt, ##__VA_ARGS__); \
4747
} while (0)
4848
#else
4949
#define MCUBOOT_LOG_INF(_fmt, ...)
@@ -52,7 +52,7 @@ extern int ets_printf(const char *fmt, ...);
5252
#if MCUBOOT_LOG_LEVEL >= MCUBOOT_LOG_LEVEL_DEBUG
5353
#define MCUBOOT_LOG_DBG(_fmt, ...) \
5454
do { \
55-
ESP_EARLY_LOGD("boot", _fmt "\n\r", ##__VA_ARGS__); \
55+
ESP_EARLY_LOGD("boot", _fmt, ##__VA_ARGS__); \
5656
} while (0)
5757
#else
5858
#define MCUBOOT_LOG_DBG(_fmt, ...)

0 commit comments

Comments
 (0)