From: Pali Rohár Date: Fri, 5 Nov 2021 22:30:42 +0000 (+0100) Subject: tools: kwboot: Always print kwboot version X-Git-Url: http://git.dujemihanovic.xyz/img/sics.gif?a=commitdiff_plain;h=75176dc863401b351de1eb71cc879cf4cb4a11b3;p=u-boot.git tools: kwboot: Always print kwboot version It is useful to see kwboot version in the boot log output for debugging purposes. Signed-off-by: Pali Rohár Reviewed-by: Stefan Roese --- diff --git a/tools/kwboot.c b/tools/kwboot.c index 4e4d544efd..d22e6ea96a 100644 --- a/tools/kwboot.c +++ b/tools/kwboot.c @@ -1640,7 +1640,6 @@ err: static void kwboot_usage(FILE *stream, char *progname) { - fprintf(stream, "kwboot version %s\n", PLAIN_VERSION); fprintf(stream, "Usage: %s [OPTIONS] [-b | -D ] [-B ] \n", progname); @@ -1685,6 +1684,8 @@ main(int argc, char **argv) after_img_rsv = KWBOOT_XM_BLKSZ; baudrate = 115200; + printf("kwboot version %s\n", PLAIN_VERSION); + kwboot_verbose = isatty(STDOUT_FILENO); do {