[coreboot-gerrit] New patch to review for coreboot: coreinfo/nvram: Print correct line numbers
Jonathan Neuschäfer
gerrit at coreboot.org
Thu Mar 10 14:52:03 CET 2016
Jonathan Neuschäfer just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/14028
-gerrit
commit 3cddd9273fc7dda8721eb2793213ffaa99ecd562
Author: Jonathan Neuschäfer <j.neuschaefer at gmx.net>
Date: Thu Mar 10 09:57:28 2016 +0100
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 at gmx.net>
---
payloads/coreinfo/nvram_module.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/payloads/coreinfo/nvram_module.c b/payloads/coreinfo/nvram_module.c
index c2d4672..7997911 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);
}
More information about the coreboot-gerrit
mailing list