mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-06-19 05:04:35 +00:00
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>
This commit is contained in:
parent
f8017c3779
commit
75176dc863
1 changed files with 2 additions and 1 deletions
|
@ -1640,7 +1640,6 @@ err:
|
||||||
static void
|
static void
|
||||||
kwboot_usage(FILE *stream, char *progname)
|
kwboot_usage(FILE *stream, char *progname)
|
||||||
{
|
{
|
||||||
fprintf(stream, "kwboot version %s\n", PLAIN_VERSION);
|
|
||||||
fprintf(stream,
|
fprintf(stream,
|
||||||
"Usage: %s [OPTIONS] [-b <image> | -D <image> ] [-B <baud> ] <TTY>\n",
|
"Usage: %s [OPTIONS] [-b <image> | -D <image> ] [-B <baud> ] <TTY>\n",
|
||||||
progname);
|
progname);
|
||||||
|
@ -1685,6 +1684,8 @@ main(int argc, char **argv)
|
||||||
after_img_rsv = KWBOOT_XM_BLKSZ;
|
after_img_rsv = KWBOOT_XM_BLKSZ;
|
||||||
baudrate = 115200;
|
baudrate = 115200;
|
||||||
|
|
||||||
|
printf("kwboot version %s\n", PLAIN_VERSION);
|
||||||
|
|
||||||
kwboot_verbose = isatty(STDOUT_FILENO);
|
kwboot_verbose = isatty(STDOUT_FILENO);
|
||||||
|
|
||||||
do {
|
do {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue