diff options
author | Pali Rohár <pali@kernel.org> | 2021-09-24 23:06:42 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2021-10-01 11:07:13 +0200 |
commit | a050a862a76de1203e59f4c8793affdc5a0d34db (patch) | |
tree | c6f290397b04ed8578d12319325c4690c490fb7b /tools | |
parent | e453bb42ce34e6e142f6efc65c725cdb3cbac7ea (diff) | |
download | u-boot-a050a862a76de1203e59f4c8793affdc5a0d34db.zip u-boot-a050a862a76de1203e59f4c8793affdc5a0d34db.tar.gz u-boot-a050a862a76de1203e59f4c8793affdc5a0d34db.tar.bz2 |
tools: kwboot: Print version information header
Print kwboot's (U-Boot's) version when printing usage.
Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/kwboot.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/kwboot.c b/tools/kwboot.c index 22cdd13..454339d 100644 --- a/tools/kwboot.c +++ b/tools/kwboot.c @@ -11,6 +11,7 @@ #include "kwbimage.h" #include "mkimage.h" +#include "version.h" #include <stdlib.h> #include <stdio.h> @@ -681,6 +682,7 @@ out: 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); |