Changeset 5073

Show
Ignore:
Timestamp:
12/15/07 23:33:37 (4 years ago)
Author:
khali
Message:

Return the correct error code on I2C block read failure.

Location:
i2c-tools/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • i2c-tools/trunk/CHANGES

    r5029 r5073  
    88               Print the asset tag 
    99               Fix the timestamp decoding 
     10  i2cdump: Fix I2C block mode error code 
    1011  i2cset: Final status messages go to stdout 
    1112          Return success even when readback fails or doesn't match 
  • i2c-tools/trunk/tools/i2cdump.c

    r4948 r5073  
    314314                                        i = i2c_smbus_read_i2c_block_data(file, 
    315315                                                res, 32, cblock + res); 
    316                                         if (i <= 0) 
     316                                        if (i <= 0) { 
     317                                                res = i; 
    317318                                                break; 
     319                                        } 
    318320                                } 
    319321                        }