On Sat, Nov 11, 2023 at 05:09:00PM -0700, Simon Glass wrote: > The same error message is printed in two places. Move it out to the > caller so we can avoid passing in the command name. Leave the bootstage > handling where it is. > > Signed-off-by: Simon Glass <s...@chromium.org> [snip] > @@ -322,9 +316,12 @@ static int bootm_find_os(struct cmd_tbl *cmdtp, int > flag, int argc, > int ret; > > /* get kernel image header, start address and length */ > - ret = boot_get_kernel("bootm", argv[0], &images, &images.os.image_start, > + ret = boot_get_kernel(argv[0], &images, &images.os.image_start, > &images.os.image_len, &os_hdr); > if (ret) { > + if (ret == -EPROTOTYPE) > + printf("Wrong Image Type for bootm command\n");
This compounds what I said on the earlier patch, yes? Or can we not actually get here via booti/bootz as their header checking kicks in earlier? -- Tom
signature.asc
Description: PGP signature