From 4c3b690f915df7b56170cee189096949adedefe5 Mon Sep 17 00:00:00 2001 From: Lubos Stanek Date: Mon, 11 Dec 2006 23:33:55 +0100 Subject: [PATCH] sensors plugin: syslog() and DBG() calls unification Signed-off-by: Stanek Lubos --- src/sensors.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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; } -- 2.30.2