Changeset 648
- Timestamp:
- 12/01/99 16:47:11 (13 years ago)
- Files:
-
- 1 modified
-
lm-sensors/trunk/prog/detect/i2cdetect.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/prog/detect/i2cdetect.c
r500 r648 37 37 int i,j,res,i2cbus,file; 38 38 char filename[20]; 39 long funcs; 39 40 40 41 … … 60 61 fprintf(stderr,"Error: Could not open file `%s': %s\n",filename, 61 62 strerror(errno)); 63 exit(1); 64 } 65 66 if (ioctl(file,I2C_FUNCS,&funcs) < 0) { 67 fprintf(stderr, 68 "Error: Could not get the adapter functionality maxtrix: %s\n", 69 strerror(errno)); 70 exit(1); 71 } 72 if (! (funcs & I2C_FUNC_SMBUS_QUICK)) { 73 fprintf(stderr, 74 "Error: Can't use SMBus Quick Write command " 75 "on this bus (ISA bus?)\n"); 62 76 exit(1); 63 77 }
