tools: kwboot: Always print kwboot version
PATCH 1/1 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 <[email protected]>
--- tools/kwboot.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
tools/kwboot.c +2 -1
@@ -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 {
Signature · 1 line
2.20.1
Quoted 4 lines · Pali Rohár
It is useful to see kwboot version in the boot log output for debugging purposes.
Signed-off-by Pali Rohár <[email protected]>
Reviewed-by Stefan Roese <[email protected]>
Thanks,
Stefan
Quoted 18 lines
--- tools/kwboot.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)tools/kwboot.c +0
-1@@ -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);
tools/kwboot.c main(int argc, char **argv) · line 1691
Quoted 8 lines
tools/kwboot.c +2
-0@@ -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
Signature · 3 lines
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: [email protected]
Quoted 4 lines · Pali Rohár
It is useful to see kwboot version in the boot log output for debugging purposes.
Signed-off-by Pali Rohár <[email protected]>
Applied to u-boot-marvell/master
Thanks,
Stefan
Quoted 18 lines
--- tools/kwboot.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)tools/kwboot.c +0
-1@@ -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);
tools/kwboot.c main(int argc, char **argv) · line 1691
Quoted 8 lines
tools/kwboot.c +2
-0@@ -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
Signature · 3 lines
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: [email protected]