[Concept,v2,07/22] boot: Improve debugging in bootm_load_os()

Message ID 20250819185900.835939-8-sjg@u-boot.org
State New
Headers
Series efi: Improvements for the EFI app on ARM |

Commit Message

Simon Glass Aug. 19, 2025, 6:58 p.m. UTC
  From: Simon Glass <sjg@chromium.org>

This shows an image type as an OS, which is not correct. Fix it up to
show both.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

Changes in v2:
- Add a colon so it is clear that 'load_os type' is not a compound term

 boot/bootm.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
  

Patch

diff --git a/boot/bootm.c b/boot/bootm.c
index d9bcb748cb1..a536737db09 100644
--- a/boot/bootm.c
+++ b/boot/bootm.c
@@ -773,7 +773,8 @@  static int bootm_load_os(struct bootm_info *bmi, int boot_progress)
 	ulong decomp_len;
 	int err;
 
-	log_debug("load_os type '%s' comp '%s'\n",
+	log_debug("load_os: type '%s' os '%s' comp '%s'\n",
+		  genimg_get_type_short_name(os.type),
 		  genimg_get_os_short_name(os.type),
 		  genimg_get_comp_short_name(os.comp));
 	/*