]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
bootstd: Show a message sometimes if no bootflows are found
authorSimon Glass <sjg@chromium.org>
Mon, 24 Apr 2023 01:49:48 +0000 (13:49 +1200)
committerTom 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

index 42f6e14a4370311d1eb6c226a9f6b982053167b5..aa06999e3db30c6ceb6ee376e4ca8d323aa37c82 100644 (file)
@@ -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;
 }