summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>2016-03-10 09:57:28 +0100
committerMartin Roth <martinroth@google.com>2016-03-11 18:44:04 +0100
commit71d3101259b5a057d5fd34c2e7c029492c4dcc6a (patch)
treec1fbf9acd9dfb3bef9bcc95dd19ce74ce15d229b
parentff099529216cc4a72409a52cfaacfbcec7797f9b (diff)
coreinfo/nvram: Print correct line numbers
With this patch the numbers are the "base" addresses for the lines, which is consistent with the PCI configuration space view. Change-Id: I2c70d976f6f9f9f615d13bc7a634d6f8037e0c7b Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net> Reviewed-on: https://review.coreboot.org/14028 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
-rw-r--r--payloads/coreinfo/nvram_module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/payloads/coreinfo/nvram_module.c b/payloads/coreinfo/nvram_module.c
index c2d467234c..799791134a 100644
--- a/payloads/coreinfo/nvram_module.c
+++ b/payloads/coreinfo/nvram_module.c
@@ -26,7 +26,7 @@ static void dump_nvram(WINDOW *win, int row, int col)
/* Print vertical and horizontal index numbers. */
for (i = 0; i < 16; i++) {
- mvwprintw(win, ((i < 8) ? 4 : 5) + i, 1, "%2.2X ", i);
+ mvwprintw(win, ((i < 8) ? 4 : 5) + i, 1, "%2.2X ", i * 0x10);
mvwprintw(win, 2, 4 + (i * 3), "%2.2X ", i);
}