Changeset 4159
- Timestamp:
- 09/19/06 12:01:12 (2 years ago)
- Files:
-
- lm-sensors/trunk/CHANGES (modified) (2 diffs)
- lm-sensors/trunk/lib/sysfs.c (modified) (3 diffs)
- lm-sensors/trunk/prog/sensors/main.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
lm-sensors/trunk/CHANGES
r4154 r4159 17 17 Add support for the W83793 chip (Yuan Mu) 18 18 Map the 2.6 adm1026's fan8 to fan0 19 Missing sysfs busses and classes are not errors 19 20 Makefile: Don't grep autoconf.h on user-space targets 20 21 Fix depmod on non-running kernel version … … 60 61 The adt7463 may not have in4 (#2119) 61 62 Hide more vt1211 missing input errors 63 Clearer error messages when no sensors found 62 64 Program sensors-detect: Add ServerWorks HT-1000 SMBus detection 63 65 Add ATI IXP200/300/400 SMBus detection lm-sensors/trunk/lib/sysfs.c
r4138 r4159 113 113 114 114 if (!(bus = sysfs_open_bus("i2c"))) { 115 ret = -SENSORS_ERR_PROC; 115 if (errno && errno != ENOENT) 116 ret = -SENSORS_ERR_PROC; 116 117 goto exit0; 117 118 } 118 119 119 120 if (!(devs = sysfs_get_bus_devices(bus))) { 120 if (errno )121 if (errno && errno != ENOENT) 121 122 ret = -SENSORS_ERR_PROC; 122 123 goto exit1; … … 149 150 150 151 if (!(clsdevs = sysfs_get_class_devices(cls))) { 151 if (errno )152 if (errno && errno != ENOENT) 152 153 ret = -SENSORS_ERR_PROC; 153 154 goto exit; … … 186 187 187 188 if (!(clsdevs = sysfs_get_class_devices(cls))) { 188 if (errno )189 if (errno && errno != ENOENT) 189 190 ret = -SENSORS_ERR_PROC; 190 191 goto exit1; lm-sensors/trunk/prog/sensors/main.c
r4109 r4159 239 239 if (res == -SENSORS_ERR_PROC) 240 240 fprintf(stderr, 241 " Unable to find i2c bus information;\n"241 "Kernel interface access error\n" 242 242 "For 2.6 kernels, make sure you have mounted sysfs and libsensors\n" 243 "was compiled with sysfs support!\n" 244 "For older kernels, make sure you have done 'modprobe i2c-proc'!\n"); 243 "was compiled with sysfs support!\n"); 245 244 exit(1); 246 245 } … … 257 256 } else { 258 257 if(chips[0].prefix == SENSORS_CHIP_NAME_PREFIX_ANY) 259 fprintf(stderr,"No sensors found!\n"); 258 fprintf(stderr, 259 "No sensors found!\n" 260 "Make sure you loaded all the kernel drivers you need.\n" 261 "Try sensors-detect to find out which these are.\n"); 260 262 else 261 263 fprintf(stderr,"Specified sensor(s) not found!\n");
