From 597a1996d5f7d4bd3019ae48f719d07d4c412c38 Mon Sep 17 00:00:00 2001 From: "Hudson C. Dalpra" Date: Mon, 20 May 2024 15:04:31 +1200 Subject: [PATCH] boot: boot_serial: change logging to debug level Update the log level for RX and TX messages from INFO to DEBUG to reduce clutter in the serial interface logs. This change helps in keeping the output cleaner and focuses on more critical information by default. Signed-off-by: Hudson C. Dalpra (cherry picked from commit 4b9d07dc4f5cbf2da25f75dea485adbc323070be) --- boot/boot_serial/src/boot_serial.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/boot/boot_serial/src/boot_serial.c b/boot/boot_serial/src/boot_serial.c index 11ba341a..fb73e6b1 100644 --- a/boot/boot_serial/src/boot_serial.c +++ b/boot/boot_serial/src/boot_serial.c @@ -611,7 +611,7 @@ static off_t erase_range(const struct flash_area *fap, off_t start, off_t end) } size = flash_sector_get_off(§) + flash_sector_get_size(§) - start; - BOOT_LOG_INF("Erasing range 0x%jx:0x%jx", (intmax_t)start, + BOOT_LOG_DBG("Erasing range 0x%jx:0x%jx", (intmax_t)start, (intmax_t)(start + size - 1)); rc = flash_area_erase(fap, start, size); @@ -796,7 +796,7 @@ bs_upload(char *buf, int len) rem_bytes = 0; } - BOOT_LOG_INF("Writing at 0x%x until 0x%x", curr_off, curr_off + img_chunk_len); + BOOT_LOG_DBG("Writing at 0x%x until 0x%x", curr_off, curr_off + img_chunk_len); /* Write flash aligned chunk, note that img_chunk_len now holds aligned length */ #if defined(MCUBOOT_SERIAL_UNALIGNED_BUFFER_SIZE) && MCUBOOT_SERIAL_UNALIGNED_BUFFER_SIZE > 0 if (flash_area_align(fap) > 1 && @@ -870,7 +870,7 @@ bs_upload(char *buf, int len) } out: - BOOT_LOG_INF("RX: 0x%x", rc); + BOOT_LOG_DBG("RX: 0x%x", rc); zcbor_map_start_encode(cbor_state, 10); zcbor_tstr_put_lit_cast(cbor_state, "rc"); zcbor_int32_put(cbor_state, rc); @@ -1124,7 +1124,7 @@ boot_serial_output(void) boot_uf->write("\n", 1); } - BOOT_LOG_INF("TX"); + BOOT_LOG_DBG("TX"); } /*