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>
This commit is contained in:
Jonathan Neuschäfer 2016-03-10 09:57:28 +01:00 committed by Martin Roth
parent ff09952921
commit 71d3101259
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}