[PATCH u-boot-marvell v3 05/39] tools: kwboot: Print version information header
Stefan Roese
sr at denx.de
Fri Oct 1 08:15:06 CEST 2021
On 24.09.21 23:06, Marek Behún wrote:
> From: Pali Rohár <pali at kernel.org>
>
> Print kwboot's (U-Boot's) version when printing usage.
>
> Signed-off-by: Pali Rohár <pali at kernel.org>
> Reviewed-by: Marek Behún <marek.behun at nic.cz>
Reviewed-by: Stefan Roese <sr at denx.de>
Thanks,
Stefan
> ---
> tools/kwboot.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/tools/kwboot.c b/tools/kwboot.c
> index 22cdd137ad..454339db14 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);
>
Viele Grüße,
Stefan
--
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