From eabdfe8b945f56b4158a66ff8db542bc16ee1d69 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Fri, 30 Sep 2005 17:30:55 +0000 Subject: [PATCH] Display the real addresses (rather than offsets thereto) in flat mode. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3111 7894878c-1315-0410-8ee3-d5d059ff63e0 --- prog/dump/isadump.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/prog/dump/isadump.c b/prog/dump/isadump.c index a88a60bc..92d48444 100644 --- a/prog/dump/isadump.c +++ b/prog/dump/isadump.c @@ -282,9 +282,14 @@ int main(int argc, char *argv[]) if (bank >= 0) oldbank = set_bank(flat, addrreg, datareg, bank, bankreg); + if (flat) + printf(" "); printf(" 0 1 2 3 4 5 6 7 8 9 a b c d e f\n"); for (i = 0; i < range; i += 16) { - printf("%c0: ", hexchar(i/16)); + if (flat) + printf("%04x: ", addrreg + i); + else + printf("%02x: ", i); /* It was noticed that Winbond Super-I/O chips would leave the configuration mode after