diff options
| author | Pali Rohár <[email protected]> | 2021-09-24 23:06:42 +0200 |
|---|---|---|
| committer | Stefan Roese <[email protected]> | 2021-10-01 11:07:13 +0200 |
| commit | a050a862a76de1203e59f4c8793affdc5a0d34db (patch) | |
| tree | c6f290397b04ed8578d12319325c4690c490fb7b | |
| parent | e453bb42ce34e6e142f6efc65c725cdb3cbac7ea (diff) | |
tools: kwboot: Print version information header
Print kwboot's (U-Boot's) version when printing usage.
Signed-off-by: Pali Rohár <[email protected]>
Reviewed-by: Marek Behún <[email protected]>
Reviewed-by: Stefan Roese <[email protected]>
| -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 22cdd137ad5..454339db147 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); |
