diff --git a/CHANGES b/CHANGES index cd0ecfa4..6a5e731e 100644 --- a/CHANGES +++ b/CHANGES @@ -24,6 +24,7 @@ SVN HEAD Fix a memory leak when daemonizing Fix memory leaks in command line parsing Add w83793 support + Log the error code on failure Program sensors: Fix a memory leak on error (with -u) Add sch311x support Hide error on missing dme1737 fan and pwm diff --git a/prog/sensord/sensord.c b/prog/sensord/sensord.c index 85baf7c4..68ff48e5 100644 --- a/prog/sensord/sensord.c +++ b/prog/sensord/sensord.c @@ -117,7 +117,10 @@ sensord } } - sensorLog (LOG_INFO, "sensord %s", ret ? "failed" : "stopped"); + if (ret) + sensorLog (LOG_INFO, "sensord failed (%d)", ret); + else + sensorLog (LOG_INFO, "sensord stopped"); return ret; }