From: Florian Forster Date: Sat, 14 Jun 2008 15:51:36 +0000 (+0200) Subject: email plugin: Fix a format string. X-Git-Tag: collectd-4.5.0~118 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=d53b685013dfe99d1ceac1d283f63ccfbc841dae;p=collectd.git email plugin: Fix a format string. --- diff --git a/src/email.c b/src/email.c index 9b82e10e..fbdc785f 100644 --- 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]))