aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPali Rohár2021-11-05 23:30:42 +0100
committerStefan Roese2021-11-10 12:08:06 +0100
commit75176dc863401b351de1eb71cc879cf4cb4a11b3 (patch)
tree35ada568e775d8aa76f54622fdaf75ce80c0ff7d /tools
parentf8017c37799c78f158b405b82f18704aa75b884d (diff)
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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/kwboot.c b/tools/kwboot.c
index 4e4d544efd3..d22e6ea96a5 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 {