Skip to content

Commit 4b9d07d

Browse files
hcd-bdltdde-nordic
authored andcommitted
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 <[email protected]>
1 parent 7e3a1ce commit 4b9d07d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

boot/boot_serial/src/boot_serial.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ static off_t erase_range(const struct flash_area *fap, off_t start, off_t end)
611611
}
612612

613613
size = flash_sector_get_off(&sect) + flash_sector_get_size(&sect) - start;
614-
BOOT_LOG_INF("Erasing range 0x%jx:0x%jx", (intmax_t)start,
614+
BOOT_LOG_DBG("Erasing range 0x%jx:0x%jx", (intmax_t)start,
615615
(intmax_t)(start + size - 1));
616616

617617
rc = flash_area_erase(fap, start, size);
@@ -796,7 +796,7 @@ bs_upload(char *buf, int len)
796796
rem_bytes = 0;
797797
}
798798

799-
BOOT_LOG_INF("Writing at 0x%x until 0x%x", curr_off, curr_off + img_chunk_len);
799+
BOOT_LOG_DBG("Writing at 0x%x until 0x%x", curr_off, curr_off + img_chunk_len);
800800
/* Write flash aligned chunk, note that img_chunk_len now holds aligned length */
801801
#if defined(MCUBOOT_SERIAL_UNALIGNED_BUFFER_SIZE) && MCUBOOT_SERIAL_UNALIGNED_BUFFER_SIZE > 0
802802
if (flash_area_align(fap) > 1 &&
@@ -870,7 +870,7 @@ bs_upload(char *buf, int len)
870870
}
871871

872872
out:
873-
BOOT_LOG_INF("RX: 0x%x", rc);
873+
BOOT_LOG_DBG("RX: 0x%x", rc);
874874
zcbor_map_start_encode(cbor_state, 10);
875875
zcbor_tstr_put_lit_cast(cbor_state, "rc");
876876
zcbor_int32_put(cbor_state, rc);
@@ -1124,7 +1124,7 @@ boot_serial_output(void)
11241124
boot_uf->write("\n", 1);
11251125
}
11261126

1127-
BOOT_LOG_INF("TX");
1127+
BOOT_LOG_DBG("TX");
11281128
}
11291129

11301130
/*

0 commit comments

Comments
 (0)