[PATCH] tools: kwboot: Always print kwboot version
Stefan Roese
sr at denx.de
Wed Nov 10 14:52:10 CET 2021
On 05.11.21 23:30, Pali Rohár wrote:
> It is useful to see kwboot version in the boot log output for debugging
> purposes.
>
> Signed-off-by: Pali Rohár <pali at kernel.org>
Applied to u-boot-marvell/master
Thanks,
Stefan
> ---
> tools/kwboot.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/tools/kwboot.c b/tools/kwboot.c
> index 4e4d544efd3f..d22e6ea96a5c 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 {
>
Viele Grüße,
Stefan Roese
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr at denx.de
More information about the U-Boot
mailing list