2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-31 06:15:15 +00:00

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
This commit is contained in:
Jean Delvare
2005-09-30 17:30:55 +00:00
parent 40a778e313
commit eabdfe8b94

View File

@@ -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