From 71d3101259b5a057d5fd34c2e7c029492c4dcc6a Mon Sep 17 00:00:00 2001 From: Jonathan Neuschäfer Date: Thu, 10 Mar 2016 09:57:28 +0100 Subject: coreinfo/nvram: Print correct line numbers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-on: https://review.coreboot.org/14028 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Patrick Georgi --- 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 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); } -- cgit v1.2.3