Changeset 5134
- Timestamp:
- 03/05/08 08:44:16 (9 months ago)
- Files:
-
- lm-sensors/branches/lm-sensors-3.0.0/CHANGES (modified) (1 diff)
- lm-sensors/branches/lm-sensors-3.0.0/lib/sysfs.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
lm-sensors/branches/lm-sensors-3.0.0/CHANGES
r5133 r5134 3 3 4 4 SVN-HEAD 5 libsensors: Use __func__ instead of __FUNCTION__ 5 6 sensors-detect: Add SMSC SCH5027D detection 6 7 Do not access I/O ports on PPC lm-sensors/branches/lm-sensors-3.0.0/lib/sysfs.c
r5093 r5134 2 2 sysfs.c - Part of libsensors, a library for reading Linux sensor data 3 3 Copyright (c) 2005 Mark M. Hoffman <mhoffman@lightlink.com> 4 Copyright (C) 2007 Jean Delvare <khali@linux-fr.org>4 Copyright (C) 2007-2008 Jean Delvare <khali@linux-fr.org> 5 5 6 6 This program is free software; you can redistribute it and/or modify … … 64 64 p = strndup(buf, strlen(buf) - 1); 65 65 if (!p) 66 sensors_fatal_error(__ FUNCTION__, "out of memory");66 sensors_fatal_error(__func__, "Out of memory"); 67 67 return p; 68 68 } … … 312 312 sizeof(sensors_subfeature)); 313 313 if (!all_subfeatures) 314 sensors_fatal_error(__ FUNCTION__, "Out of memory");314 sensors_fatal_error(__func__, "Out of memory"); 315 315 316 316 while ((ent = readdir(dir))) { … … 337 337 we have to ignore it */ 338 338 #ifdef DEBUG 339 sensors_fatal_error(__ FUNCTION__,339 sensors_fatal_error(__func__, 340 340 "Increase MAX_SENSORS_PER_TYPE!"); 341 341 #endif … … 362 362 if (all_subfeatures[i].name) { 363 363 #ifdef DEBUG 364 sensors_fatal_error(__FUNCTION__, 365 "Duplicate subfeature"); 364 sensors_fatal_error(__func__, "Duplicate subfeature"); 366 365 #endif 367 366 continue; … … 400 399 dyn_features = calloc(fnum, sizeof(sensors_feature)); 401 400 if (!dyn_subfeatures || !dyn_features) 402 sensors_fatal_error(__ FUNCTION__, "Out of memory");401 sensors_fatal_error(__func__, "Out of memory"); 403 402 404 403 /* Copy from the sparse array to the compact array */ … … 475 474 entry.chip.path = strdup(hwmon_path); 476 475 if (!entry.chip.path) 477 sensors_fatal_error(__ FUNCTION__, "out of memory");476 sensors_fatal_error(__func__, "Out of memory"); 478 477 479 478 /* Find bus type */
