bdinfo: Show the flags

The flags contain lots of little pieces of information. Print them out
with the bdinfo command, so the user can look them up if needed.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-09-24 14:58:35 -06:00
parent 2712397363
commit d7c51083a6
2 changed files with 2 additions and 0 deletions

View File

@@ -138,6 +138,7 @@ static int bdinfo_print_all(struct bd_info *bd)
#if CONFIG_IS_ENABLED(MULTI_DTB_FIT)
lprint_num_l("multi_dtb_fit", (ulong)gd->multi_dtb_fit);
#endif
lprint_num_l("flags", gd->flags);
if (IS_ENABLED(CONFIG_LMB) && gd->fdt_blob) {
lmb_dump_all_force();
if (IS_ENABLED(CONFIG_OF_REAL))

View File

@@ -191,6 +191,7 @@ static int bdinfo_test_all(struct unit_test_state *uts)
#if CONFIG_IS_ENABLED(MULTI_DTB_FIT)
ut_assertok(test_num_l(uts, "multi_dtb_fit", (ulong)gd->multi_dtb_fit));
#endif
ut_assertok(test_num_l(uts, "flags", gd->flags));
if (IS_ENABLED(CONFIG_LMB) && gd->fdt_blob) {
ut_assertok(lmb_test_dump_all(uts));