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:
parent
ff09952921
commit
71d3101259
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue