From 75176dc863401b351de1eb71cc879cf4cb4a11b3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pali=20Roh=C3=A1r?= Date: Fri, 5 Nov 2021 23:30:42 +0100 Subject: [PATCH] tools: kwboot: Always print kwboot version MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- tools/kwboot.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 { -- 2.39.5