Changeset 5134

Show
Ignore:
Timestamp:
03/05/08 08:44:16 (9 months ago)
Author:
khali
Message:

Use func instead of FUNCTION. The former is standard, the latter
is not.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lm-sensors/branches/lm-sensors-3.0.0/CHANGES

    r5133 r5134  
    33 
    44SVN-HEAD 
     5  libsensors: Use __func__ instead of __FUNCTION__ 
    56  sensors-detect: Add SMSC SCH5027D detection 
    67                  Do not access I/O ports on PPC 
  • lm-sensors/branches/lm-sensors-3.0.0/lib/sysfs.c

    r5093 r5134  
    22    sysfs.c - Part of libsensors, a library for reading Linux sensor data 
    33    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> 
    55 
    66    This program is free software; you can redistribute it and/or modify 
     
    6464        p = strndup(buf, strlen(buf) - 1); 
    6565        if (!p) 
    66                 sensors_fatal_error(__FUNCTION__, "out of memory"); 
     66                sensors_fatal_error(__func__, "Out of memory"); 
    6767        return p; 
    6868} 
     
    312312                                 sizeof(sensors_subfeature)); 
    313313        if (!all_subfeatures) 
    314                 sensors_fatal_error(__FUNCTION__, "Out of memory"); 
     314                sensors_fatal_error(__func__, "Out of memory"); 
    315315 
    316316        while ((ent = readdir(dir))) { 
     
    337337                           we have to ignore it */ 
    338338#ifdef DEBUG 
    339                         sensors_fatal_error(__FUNCTION__, 
     339                        sensors_fatal_error(__func__, 
    340340                                            "Increase MAX_SENSORS_PER_TYPE!"); 
    341341#endif 
     
    362362                if (all_subfeatures[i].name) { 
    363363#ifdef DEBUG 
    364                         sensors_fatal_error(__FUNCTION__, 
    365                                             "Duplicate subfeature"); 
     364                        sensors_fatal_error(__func__, "Duplicate subfeature"); 
    366365#endif 
    367366                        continue; 
     
    400399        dyn_features = calloc(fnum, sizeof(sensors_feature)); 
    401400        if (!dyn_subfeatures || !dyn_features) 
    402                 sensors_fatal_error(__FUNCTION__, "Out of memory"); 
     401                sensors_fatal_error(__func__, "Out of memory"); 
    403402 
    404403        /* Copy from the sparse array to the compact array */ 
     
    475474        entry.chip.path = strdup(hwmon_path); 
    476475        if (!entry.chip.path) 
    477                 sensors_fatal_error(__FUNCTION__, "out of memory"); 
     476                sensors_fatal_error(__func__, "Out of memory"); 
    478477 
    479478        /* Find bus type */