Show
Ignore:
Timestamp:
09/10/05 13:38:32 (9 years ago)
Author:
khali
Message:

Add a "quiet" parameter to open_i2c_dev() to prevent it from
displaying error messages.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/prog/dump/i2cbusses.c

    r2675 r3077  
    170170} 
    171171 
    172 int open_i2c_dev(const int i2cbus, char *filename) 
     172int open_i2c_dev(const int i2cbus, char *filename, const int quiet) 
    173173{ 
    174174        int file; 
     
    182182        } 
    183183 
    184         if (file < 0) { 
     184        if (file < 0 && !quiet) { 
    185185                if (errno == ENOENT) { 
    186186                        fprintf(stderr, "Error: Could not open file "