From: Simon Glass Date: Mon, 24 Apr 2023 01:49:48 +0000 (+1200) Subject: bootstd: Show a message sometimes if no bootflows are found X-Git-Url: http://git.dujemihanovic.xyz/html/static/git-logo.png?a=commitdiff_plain;h=f9fb57c6917f9172f0393c67463e0b1230726e66;p=u-boot.git bootstd: Show a message sometimes if no bootflows are found 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 Suggested-by: Tom Rini --- diff --git a/cmd/bootflow.c b/cmd/bootflow.c index 42f6e14a43..aa06999e3d 100644 --- 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; }