All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] hw/arm/boot: Report error msg if loading elf/dtb failed
@ 2024-08-30 10:53 ` Changbin Du via
  0 siblings, 0 replies; 7+ messages in thread
From: Changbin Du via @ 2024-08-30 10:53 UTC (permalink / raw)
  To: Peter Maydell; +Cc: qemu-arm, qemu-devel, Changbin Du

Print errors before exit. Do not exit silently.

Signed-off-by: Changbin Du <changbin.du@huawei.com>

---
v2: remove msg for arm_load_dtb.
---
 hw/arm/boot.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hw/arm/boot.c b/hw/arm/boot.c
index d480a7da02cf..e15bf097a559 100644
--- a/hw/arm/boot.c
+++ b/hw/arm/boot.c
@@ -839,6 +839,7 @@ static ssize_t arm_load_elf(struct arm_boot_info *info, uint64_t *pentry,
                       1, data_swab, as);
     if (ret <= 0) {
         /* The header loaded but the image didn't */
+        error_report("could not load elf '%s'", info->kernel_filename);
         exit(1);
     }
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-09-03 14:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-30 10:53 [PATCH v2] hw/arm/boot: Report error msg if loading elf/dtb failed Changbin Du via
2024-08-30 10:53 ` Changbin Du via
2024-09-02 19:55 ` Philippe Mathieu-Daudé
2024-09-02 20:00   ` Philippe Mathieu-Daudé
2024-09-03  9:20     ` Peter Maydell
2024-09-03 13:40       ` Philippe Mathieu-Daudé
2024-09-03 13:39   ` duchangbin via

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.