summaryrefslogtreecommitdiff
path: root/tools/kwboot.c
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2021-10-25 15:12:59 +0200
committerStefan Roese <sr@denx.de>2021-11-03 06:45:27 +0100
commit8e2e7ca1fe3a822aec31b4672b4615c07afa89c0 (patch)
tree718c7b1b2eb3afea35489202774f5529f7035f10 /tools/kwboot.c
parent4bebab69a9483fd6ae85b06a088790a6c77f90ce (diff)
downloadu-boot-socfpga-8e2e7ca1fe3a822aec31b4672b4615c07afa89c0.tar.gz
tools: kwboot: Show verbose message when waiting for baudrate change magic
It is hard to debug why kwboot is failing when the last message is 'Finishing transfer' and no additional output. So show verbose message when kwboot finished transfer and is waiting for baudrate change magic sequence. Signed-off-by: Pali Rohár <pali@kernel.org> Reviewed-by: Marek Behún <marek.behun@nic.cz> Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'tools/kwboot.c')
-rw-r--r--tools/kwboot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/kwboot.c b/tools/kwboot.c
index 6228838228..7fd28aa754 100644
--- a/tools/kwboot.c
+++ b/tools/kwboot.c
@@ -1065,7 +1065,7 @@ kwboot_xmodem(int tty, const void *_img, size_t size, int baudrate)
if (baudrate) {
char buf[sizeof(kwb_baud_magic)];
- /* Wait 1s for baudrate change magic */
+ kwboot_printv("Waiting 1s for baudrate change magic\n");
rc = kwboot_tty_recv(tty, buf, sizeof(buf), 1000);
if (rc)
return rc;