ping plugin: Refactor "ping_thread": Move iteration over hosts into a function.
[collectd.git] / src / rrdtool.c
index 01fca30..2b384d0 100644 (file)
@@ -185,7 +185,7 @@ static int srrd_update (char *filename, char *template,
        if (status != 0)
        {
                WARNING ("rrdtool plugin: rrd_update_r failed: %s: %s",
-                               argv[1], rrd_get_error ());
+                               filename, rrd_get_error ());
        }
 
        sfree (new_argv);
@@ -679,7 +679,7 @@ static int rrd_cache_insert (const char *filename,
        if (rc->last_value >= value_time)
        {
                pthread_mutex_unlock (&cache_lock);
-               WARNING ("rrdtool plugin: (rc->last_value = %u) >= (value_time = %u)",
+               DEBUG ("rrdtool plugin: (rc->last_value = %u) >= (value_time = %u)",
                                (unsigned int) rc->last_value,
                                (unsigned int) value_time);
                return (-1);