From: Lubos Stanek Date: Mon, 11 Dec 2006 22:33:55 +0000 (+0100) Subject: sensors plugin: syslog() and DBG() calls unification X-Git-Tag: collectd-3.11.0~7^2~3 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=4c3b690f915df7b56170cee189096949adedefe5;p=collectd.git sensors plugin: syslog() and DBG() calls unification Signed-off-by: Stanek Lubos --- diff --git a/src/sensors.c b/src/sensors.c index ff8b580d..93f93fc3 100644 --- a/src/sensors.c +++ b/src/sensors.c @@ -199,7 +199,7 @@ static int sensors_config (char *key, char *value) { if (ignorelist_add (sensor_list, value)) { - syslog (LOG_EMERG, "Cannot add value to ignorelist."); + syslog (LOG_EMERG, MODULE_NAME": Cannot add value to ignorelist."); return (1); } } @@ -260,7 +260,7 @@ static void collectd_sensors_init (void) if (sensors_init (fh)) { fclose (fh); - syslog (LOG_ERR, "sensors: Cannot initialize sensors. " + syslog (LOG_ERR, MODULE_NAME": Cannot initialize sensors. " "Data will not be collected."); return; } @@ -299,9 +299,8 @@ static void collectd_sensors_init (void) if ((new_feature = (featurelist_t *) malloc (sizeof (featurelist_t))) == NULL) { - DBG ("sensors plugin: malloc: %s", - strerror (errno)); - syslog (LOG_ERR, "sensors plugin: malloc: %s", + DBG ("malloc: %s", strerror (errno)); + syslog (LOG_ERR, MODULE_NAME": malloc: %s", strerror (errno)); break; }