Code

amqp plugin: Fixed format strings when printing 'interval_g'.
authorSebastian Harl <sh@tokkee.org>
Thu, 16 Jun 2011 09:42:20 +0000 (11:42 +0200)
committerSebastian Harl <sh@tokkee.org>
Thu, 16 Jun 2011 09:42:20 +0000 (11:42 +0200)
src/amqp.c

index f0abd44b461a38c5c7fade0b1e96b92f11897ec7..44f982302040effcb504021c40712207ef28302d 100644 (file)
@@ -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;