[Concept,01/22] bdinfo: Show the flags

Message ID 20250925174753.3429102-2-sjg@u-boot.org
State New
Headers
Series efi: Tidy up some commands and provide a keyboard driver |

Commit Message

Simon Glass Sept. 25, 2025, 5:47 p.m. UTC
  From: Simon Glass <sjg@chromium.org>

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>
---

 cmd/bdinfo.c      | 1 +
 test/cmd/bdinfo.c | 1 +
 2 files changed, 2 insertions(+)
  

Patch

diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c
index a70a1c59f51..69d9c3cfe4d 100644
--- a/cmd/bdinfo.c
+++ b/cmd/bdinfo.c
@@ -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))
diff --git a/test/cmd/bdinfo.c b/test/cmd/bdinfo.c
index 03d9846de10..6b4cfa96e4d 100644
--- a/test/cmd/bdinfo.c
+++ b/test/cmd/bdinfo.c
@@ -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));