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 f0abd44..44f9823 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;