From: Sebastian Harl Date: Thu, 16 Jun 2011 09:42:20 +0000 (+0200) Subject: amqp plugin: Fixed format strings when printing 'interval_g'. X-Git-Tag: collectd-5.1.0~59 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=bb29e8566cd82952561d91e741f36acb07bfb2a3;p=collectd.git amqp plugin: Fixed format strings when printing 'interval_g'. --- diff --git a/src/amqp.c b/src/amqp.c index f0abd44b..44f98230 100644 --- a/src/amqp.c +++ b/src/amqp.c @@ -551,7 +551,7 @@ static void *camqp_subscribe_thread (void *user_data) /* {{{ */ if (status != 0) { ERROR ("amqp plugin: camqp_connect failed. " - "Will sleep for %i seconds.", interval_g); + "Will sleep for %lli seconds.", (long long int)interval_g); sleep (interval_g); continue; } @@ -560,7 +560,7 @@ static void *camqp_subscribe_thread (void *user_data) /* {{{ */ if (status < 0) { ERROR ("amqp plugin: amqp_simple_wait_frame failed. " - "Will sleep for %i seconds.", interval_g); + "Will sleep for %lli seconds.", (long long int)interval_g); camqp_close_connection (conf); sleep (interval_g); continue;