mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-16 01:44:34 +00:00
bootstd: Avoid showing an invalid buffer address
When the buffer address is not set, say so, rather than showing an address which looks very strange, on sandbox. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
bdf4269f39
commit
482eedf9f3
1 changed files with 5 additions and 1 deletions
|
@ -393,7 +393,11 @@ static int do_bootflow_info(struct cmd_tbl *cmdtp, int flag, int argc,
|
|||
printf("Partition: %d\n", bflow->part);
|
||||
printf("Subdir: %s\n", bflow->subdir ? bflow->subdir : "(none)");
|
||||
printf("Filename: %s\n", bflow->fname);
|
||||
printf("Buffer: %lx\n", (ulong)map_to_sysmem(bflow->buf));
|
||||
printf("Buffer: ");
|
||||
if (bflow->buf)
|
||||
printf("%lx\n", (ulong)map_to_sysmem(bflow->buf));
|
||||
else
|
||||
printf("(not loaded)\n");
|
||||
printf("Size: %x (%d bytes)\n", bflow->size, bflow->size);
|
||||
printf("OS: %s\n", bflow->os_name ? bflow->os_name : "(none)");
|
||||
printf("Cmdline: ");
|
||||
|
|
Loading…
Add table
Reference in a new issue