projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f43d1b8
)
annotate vfprintf-like 'vcomplain' function
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sun, 14 Aug 2016 18:28:43 +0000
(20:28 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sun, 14 Aug 2016 18:28:43 +0000
(20:28 +0200)
utils_complain.c:56:40: warning: format string is not a string literal
[-Wformat-nonliteral]
vsnprintf (message, sizeof (message), format, ap);
^~~~~~
src/daemon/utils_complain.c
patch
|
blob
|
history
diff --git
a/src/daemon/utils_complain.c
b/src/daemon/utils_complain.c
index
d028c06
..
69909bb
100644
(file)
--- a/
src/daemon/utils_complain.c
+++ b/
src/daemon/utils_complain.c
@@
-32,6
+32,7
@@
#include "plugin.h"
/* vcomplain returns 0 if it did not report, 1 else */
+__attribute__ ((format (printf, 3, 0)))
static int vcomplain (int level, c_complain_t *c,
const char *format, va_list ap)
{