projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1736b4a
)
bootstd: Show a message sometimes if no bootflows are found
author
Simon Glass
<sjg@chromium.org>
Mon, 24 Apr 2023 01:49:48 +0000
(13:49 +1200)
committer
Tom Rini
<trini@konsulko.com>
Wed, 26 Apr 2023 12:43:04 +0000
(08:43 -0400)
Enable some messages that might provide hints, but only for
CMD_BOOTFLOW_FULL since otherwise the -l flag is not available.
Signed-off-by: Simon Glass <sjg@chromium.org>
Suggested-by: Tom Rini <trini@konsulko.com>
cmd/bootflow.c
patch
|
blob
|
history
diff --git
a/cmd/bootflow.c
b/cmd/bootflow.c
index 42f6e14a4370311d1eb6c226a9f6b982053167b5..aa06999e3db30c6ceb6ee376e4ca8d323aa37c82 100644
(file)
--- a/
cmd/bootflow.c
+++ b/
cmd/bootflow.c
@@
-181,6
+181,9
@@
static int do_bootflow_scan(struct cmd_tbl *cmdtp, int flag, int argc,
if (list)
show_footer(i, num_valid);
+ if (IS_ENABLED(CONFIG_CMD_BOOTFLOW_FULL) && !num_valid && !list)
+ printf("No bootflows found; try again with -l\n");
+
return 0;
}