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

problems.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4887 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2007-09-26 17:11:58 +00:00
1 parent b68b3428ca
commit bdf62a3854
2 files changed
+5 -1

No files matched your search

+1
View File
@@ -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
+4 -1
View File
@@ -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;
}