diff options
author | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2016-03-12 12:17:48 -0800 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2016-03-15 18:23:30 +0100 |
commit | 31575f6391912ff32eca4b990de55e771662998b (patch) | |
tree | c39c9b2740d926e3dfc7dd00211cbc5487e961c0 /payloads/coreinfo | |
parent | 1e6b86b8b664e05f5b2672dce46fd2fec8a47c71 (diff) |
coreinfo: Pretty print RAM addresses
Instead of 500, print 0x00000500 in the ram dump module.
Change-Id: Id250bd99f36dad4088ab88953fb371c400b4231b
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-on: https://review.coreboot.org/14072
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'payloads/coreinfo')
-rw-r--r-- | payloads/coreinfo/ramdump_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/payloads/coreinfo/ramdump_module.c b/payloads/coreinfo/ramdump_module.c index a0ccc4f8f2..8401a61ab1 100644 --- a/payloads/coreinfo/ramdump_module.c +++ b/payloads/coreinfo/ramdump_module.c @@ -30,7 +30,7 @@ static void dump_ram(WINDOW *win, uint32_t addr, int row, int col) int i, x = 0, y = 0, count = 0; volatile uint8_t *ptr = (void *)(addr); - mvwprintw(win, 0, col + 54, "RAM address: %10x", addr); + mvwprintw(win, 0, col + 54, "RAM address: 0x%08x", addr); /* Dump 256 bytes of RAM. */ for (i = 1; i < 257; i++) { |