Skip to content

Commit

Permalink
elfloader: print bootloader_dtb instead of dtb
Browse files Browse the repository at this point in the history
Minor fixup, the dtb variable is always 0 when printed in
sys_boot.c as it refers to the the address the dtb is loaded
to after load_images has finished loading it from either the
bootloader_dtb or cpio archive.

Print bootloader_dtb instead, since it contains the address
to a valid dtb given by the bootloader or efi.

Signed-off-by: Viktor Sannum <[email protected]>
  • Loading branch information
sannum committed Jun 28, 2021
1 parent b9a96e9 commit 75e5c70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elfloader-tool/src/arch-arm/sys_boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ void main(UNUSED void *arg)
#endif

if (bootloader_dtb) {
printf(" dtb=%p\n", dtb);
printf(" dtb=%p\n", bootloader_dtb);
} else {
printf("No DTB passed in from boot loader.\n");
}
Expand Down

0 comments on commit 75e5c70

Please sign in to comment.