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

+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;
}