Changeset 4316

Show
Ignore:
Timestamp:
02/04/07 21:54:02 (7 years ago)
Author:
khali
Message:

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.

Location:
lm-sensors/trunk
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/CHANGES

    r4315 r4316  
    44SVN HEAD 
    55  Man page i2cdetect.8: Scanning range can be restricted 
     6  Programs i2cdetect, i2cdump, isadump: Flush output in real time 
    67  Program sensors-detect: Only probe relevant I2C addresses 
    78                          Drop ARP-capable device detection 
  • lm-sensors/trunk/prog/detect/i2cdetect.c

    r4230 r4316  
    6262                printf("%02x: ", i); 
    6363                for(j = 0; j < 16; j++) { 
     64                        fflush(stdout); 
     65 
    6466                        /* Skip unwanted addresses */ 
    6567                        if (i+j < first || i+j > last) { 
  • lm-sensors/trunk/prog/dump/i2cdump.c

    r4256 r4316  
    346346                        printf("%02x: ", i); 
    347347                        for (j = 0; j < 16; j++) { 
     348                                fflush(stdout); 
    348349                                if (size == I2C_SMBUS_BYTE_DATA) { 
    349350                                        block[i+j] = res = 
  • lm-sensors/trunk/prog/dump/isadump.c

    r4256 r4316  
    299299 
    300300                for (j = 0; j < 16; j++) { 
     301                        fflush(stdout); 
    301302                        if (flat) { 
    302303                                res = inb(addrreg + i + j);