]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
dm: core: Fix addresses in the dm static command
authorSimon Glass <sjg@chromium.org>
Sun, 8 May 2022 10:39:21 +0000 (04:39 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 28 Jun 2022 02:09:52 +0000 (03:09 +0100)
This command converts pointers to addresses, but the pointers being
converted are in the image's rodata region. For sandbox this means it
is not in DRAM so it does not make sense to do this conversion.

Fix this by showing a simple pointer instead. Drop the unnecessary
@ and hex prefixes.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/core/dump.c

index 994e308f0572cd4df4cd4901143e66a26ff483c2..e434fe04728b0d79ab733fa2281534e8ce19e044 100644 (file)
@@ -169,8 +169,6 @@ void dm_dump_static_driver_info(void)
 
        puts("Driver                    Address\n");
        puts("---------------------------------\n");
-       for (entry = drv; entry != drv + n_ents; entry++) {
-               printf("%-25.25s @%08lx\n", entry->name,
-                      (ulong)map_to_sysmem(entry->plat));
-       }
+       for (entry = drv; entry != drv + n_ents; entry++)
+               printf("%-25.25s %p\n", entry->name, entry->plat);
 }