summaryrefslogtreecommitdiffstats
path: root/src/plugins_d.c
diff options
context:
space:
mode:
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2016-06-11 22:26:17 +0300
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2016-06-11 22:26:17 +0300
commit56529fd082e321b1ea82cf3b6eef3795dc073b6d (patch)
tree8549c73a0fa5d0c1d3d18dc32006513e73369471 /src/plugins_d.c
parent51f7287f1e3061296e309b000bddb3dddce33dc8 (diff)
added gcc printf checking to debug(), error(), fatal(), info(), web_sprintf() and fixed all the occurences reported by the compiler
Diffstat (limited to 'src/plugins_d.c')
-rw-r--r--src/plugins_d.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins_d.c b/src/plugins_d.c
index d7815433e4..23757bbe7d 100644
--- a/src/plugins_d.c
+++ b/src/plugins_d.c
@@ -423,7 +423,7 @@ void *pluginsd_worker_thread(void *arg)
sleep((unsigned int) (cd->update_every * 10));
}
else {
- error("PLUGINSD: '%s' exited with error code %d, but has given useful output in the past (%zu times). We tried %d times to restart it, but it failed to generate data. Disabling it.", cd->fullfilename, code, cd->successful_collections, cd->serial_failures);
+ error("PLUGINSD: '%s' exited with error code %d, but has given useful output in the past (%zu times). We tried %zu times to restart it, but it failed to generate data. Disabling it.", cd->fullfilename, code, cd->successful_collections, cd->serial_failures);
cd->enabled = 0;
}
}
@@ -439,7 +439,7 @@ void *pluginsd_worker_thread(void *arg)
sleep((unsigned int) (cd->update_every * 10));
}
else {
- error("PLUGINSD: '%s' (pid %d) does not generate useful output, although it reports success (exits with 0), but we have tried %d times to collect something. Disabling it.", cd->fullfilename, cd->pid, cd->serial_failures);
+ error("PLUGINSD: '%s' (pid %d) does not generate useful output, although it reports success (exits with 0), but we have tried %zu times to collect something. Disabling it.", cd->fullfilename, cd->pid, cd->serial_failures);
cd->enabled = 0;
}
}