From: Pali Rohár Date: Mon, 25 Oct 2021 13:12:59 +0000 (+0200) Subject: tools: kwboot: Show verbose message when waiting for baudrate change magic X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=8e2e7ca1fe3a822aec31b4672b4615c07afa89c0;p=u-boot.git 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 Reviewed-by: Marek Behún Reviewed-by: Stefan Roese --- 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;