mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-14 19:03:13 +00:00
i2cdetect, i2cdump, isadump: Flush the output in real time. That way it's
easier to find out which specific address causes problem if the system freezes or the SMBus locks itself, for example. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4316 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
669ce901d1
commit
a441a7710c
4 files changed
+5
No files matched your search
@@ -3,6 +3,7 @@ lm_sensors CHANGES file
|
||||
|
||||
SVN HEAD
|
||||
Man page i2cdetect.8: Scanning range can be restricted
|
||||
Programs i2cdetect, i2cdump, isadump: Flush output in real time
|
||||
Program sensors-detect: Only probe relevant I2C addresses
|
||||
Drop ARP-capable device detection
|
||||
Add Maxim MAX6655/MAX6656 detection
|
||||
|
||||
@@ -61,6 +61,8 @@ int scan_i2c_bus(int file, const int mode, const int first, const int last)
|
||||
for (i = 0; i < 128; i += 16) {
|
||||
printf("%02x: ", i);
|
||||
for(j = 0; j < 16; j++) {
|
||||
fflush(stdout);
|
||||
|
||||
/* Skip unwanted addresses */
|
||||
if (i+j < first || i+j > last) {
|
||||
printf(" ");
|
||||
|
||||
@@ -345,6 +345,7 @@ int main(int argc, char *argv[])
|
||||
for (i = 0; i < 256; i+=16) {
|
||||
printf("%02x: ", i);
|
||||
for (j = 0; j < 16; j++) {
|
||||
fflush(stdout);
|
||||
if (size == I2C_SMBUS_BYTE_DATA) {
|
||||
block[i+j] = res =
|
||||
i2c_smbus_read_byte_data(file, i+j);
|
||||
|
||||
@@ -298,6 +298,7 @@ int main(int argc, char *argv[])
|
||||
superio_write_key(addrreg, enter_key);
|
||||
|
||||
for (j = 0; j < 16; j++) {
|
||||
fflush(stdout);
|
||||
if (flat) {
|
||||
res = inb(addrreg + i + j);
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user