Changeset 4887

Show
Ignore:
Timestamp:
09/26/07 19:11:58 (7 years ago)
Author:
khali
Message:

Log the error code on failure, to make it easier to investigate
problems.

Location:
lm-sensors/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/CHANGES

    r4880 r4887  
    2525                   Fix memory leaks in command line parsing 
    2626                   Add w83793 support 
     27                   Log the error code on failure 
    2728  Program sensors: Fix a memory leak on error (with -u) 
    2829                   Add sch311x support 
  • lm-sensors/trunk/prog/sensord/sensord.c

    r4820 r4887  
    118118  } 
    119119 
    120   sensorLog (LOG_INFO, "sensord %s", ret ? "failed" : "stopped"); 
     120  if (ret) 
     121    sensorLog (LOG_INFO, "sensord failed (%d)", ret); 
     122  else 
     123    sensorLog (LOG_INFO, "sensord stopped"); 
    121124 
    122125  return ret;