summaryrefslogtreecommitdiff
path: root/drivers/core
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-05-08 13:39:21 +0300
committerSimon Glass <sjg@chromium.org>2022-06-28 05:09:52 +0300
commitc625666ea10d88141546807f1b720703ba710eea (patch)
tree2c9c18eb46aa1081bd88c6d40e094dd675b41f89 /drivers/core
parentdee2f5ae5cde41a5f9da7f154b47bfe92f531957 (diff)
downloadu-boot-c625666ea10d88141546807f1b720703ba710eea.tar.xz
dm: core: Fix addresses in the dm static command
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>
Diffstat (limited to 'drivers/core')
-rw-r--r--drivers/core/dump.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/core/dump.c b/drivers/core/dump.c
index 994e308f05..e434fe0472 100644
--- a/drivers/core/dump.c
+++ b/drivers/core/dump.c
@@ -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);
}