Changeset 4895
- Timestamp:
- 09/29/07 13:57:37 (6 years ago)
- Location:
- lm-sensors/branches/lm-sensors-3.0.0
- Files:
-
- 2 modified
-
CHANGES (modified) (1 diff)
-
lib/sysfs.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/branches/lm-sensors-3.0.0/CHANGES
r4894 r4895 4 4 SVN 5 5 Makefile: Add sensors-conf-convert to make install 6 libsensors: Notify the caller when writing a value fails 6 7 sensord: Log the error code on failure 7 8 sensors: Fix spurious critical temperature alarm -
lm-sensors/branches/lm-sensors-3.0.0/lib/sysfs.c
r4879 r4895 578 578 snprintf(n, NAME_MAX, "%s/%s", name->path, subfeature->name); 579 579 if ((f = fopen(n, "w"))) { 580 int res; 580 581 value *= get_type_scaling(subfeature->type); 581 fprintf(f, "%d", (int) value); 582 fclose(f); 582 res = fprintf(f, "%d", (int) value); 583 if (fclose(f) || res < 0) 584 return -SENSORS_ERR_ACCESS_W; 583 585 } else 584 586 return -SENSORS_ERR_KERNEL;
