mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-09-03 07:45:30 +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:
@@ -282,9 +282,14 @@ int main(int argc, char *argv[])
|
|||||||
if (bank >= 0)
|
if (bank >= 0)
|
||||||
oldbank = set_bank(flat, addrreg, datareg, bank, bankreg);
|
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");
|
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) {
|
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
|
/* It was noticed that Winbond Super-I/O chips
|
||||||
would leave the configuration mode after
|
would leave the configuration mode after
|
||||||
|
Reference in New Issue
Block a user