diff options
author | Pali Rohár <pali@kernel.org> | 2021-11-05 23:30:42 +0100 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2021-11-10 12:08:06 +0100 |
commit | 75176dc863401b351de1eb71cc879cf4cb4a11b3 (patch) | |
tree | 35ada568e775d8aa76f54622fdaf75ce80c0ff7d /tools | |
parent | f8017c37799c78f158b405b82f18704aa75b884d (diff) | |
download | u-boot-75176dc863401b351de1eb71cc879cf4cb4a11b3.zip u-boot-75176dc863401b351de1eb71cc879cf4cb4a11b3.tar.gz u-boot-75176dc863401b351de1eb71cc879cf4cb4a11b3.tar.bz2 |
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 <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/kwboot.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/kwboot.c b/tools/kwboot.c index 4e4d544..d22e6ea 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 <image> | -D <image> ] [-B <baud> ] <TTY>\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 { |