Changeset 4853
- Timestamp:
- 09/23/07 15:48:52 (6 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/branches/lm-sensors-3.0.0/prog/sensord/lib.c
r4828 r4853 80 80 if (!reload) { 81 81 if ((ret = sensors_init (stdin))) { 82 if (ret == -SENSORS_ERR_PROC) 83 sensorLog (LOG_ERR, "Error reading /proc or /sys; modules probably not loaded"); 84 else 85 sensorLog (LOG_ERR, "Error %d loading sensors configuration file: <stdin>", ret); 82 sensorLog (LOG_ERR, "Error loading sensors configuration file <stdin>: %s", 83 sensors_strerror (ret)); 86 84 ret = 12; 87 85 } … … 99 97 ret = 11; 100 98 } else if ((ret = sensors_init (cfg))) { 101 if (ret == -SENSORS_ERR_PROC) 102 sensorLog (LOG_ERR, "Error reading /proc or /sys; modules probably not loaded"); 103 else 104 sensorLog (LOG_ERR, "Error %d loading sensors configuration file: %s", ret, cfgPath); 99 sensorLog (LOG_ERR, "Error loading sensors configuration file %s: %s", 100 cfgPath, sensors_strerror (ret)); 105 101 ret = 11; 106 102 } else {
