projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce07c14
)
email plugin: Fix a format string.
author
Florian Forster
<octo@huhu.verplant.org>
Sat, 14 Jun 2008 15:51:36 +0000
(17:51 +0200)
committer
Florian Forster
<octo@huhu.verplant.org>
Sat, 14 Jun 2008 15:51:36 +0000
(17:51 +0200)
src/email.c
patch
|
blob
|
history
diff --git
a/src/email.c
b/src/email.c
index
9b82e10
..
fbdc785
100644
(file)
--- a/
src/email.c
+++ b/
src/email.c
@@
-292,8
+292,9
@@
static void *collect (void *arg)
len = strlen (line);
if (('\n' != line[len - 1]) && ('\r' != line[len - 1])) {
- log_warn ("[thread #%5lu] line too long (> %lu characters): "
- "'%s' (truncated)", self, sizeof (line) - 1, line);
+ log_warn ("[thread #%5lu] line too long (> %zu characters): "
+ "'%s' (truncated)",
+ (unsigned long) self, sizeof (line) - 1, line);
while (NULL != fgets (line, sizeof (line), this->socket))
if (('\n' == line[len - 1]) || ('\r' == line[len - 1]))