fix warnings
authorChristian Grothoff <christian@grothoff.org>
Mon, 18 Jan 2010 09:04:02 +0000 (09:04 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 18 Jan 2010 09:04:02 +0000 (09:04 +0000)
src/arm/test_exponential_backoff.c

index bbd0f20006c532c351d19a25f9f3e0032f64c987..a7b3b8399cccff79dd35d085ca99f23dd5c05a5d 100644 (file)
@@ -86,7 +86,7 @@ do_nothing_restarted_notify_task (void *unused,
                if ((tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN) != 0) 
                        fprintf(killLogFilePtr, "Reason is shutdown!\n");
                else if ((tc->reason & GNUNET_SCHEDULER_REASON_TIMEOUT) != 0)
-                       fprintf(killLogFilePtr, "%d.Reason is timeout!\n", trialCount);
+                 fprintf(killLogFilePtr, "%d.Reason is timeout!\n", trialCount);
                else if ((tc->reason & GNUNET_SCHEDULER_REASON_PREREQ_DONE) != 0)
                        fprintf(killLogFilePtr, "%d.Service is running!\n", trialCount);
        }
@@ -110,7 +110,11 @@ kill_task (void *cbData,
                waitedFor = GNUNET_TIME_absolute_get_duration(startedWaitingAt);
                trialCount++;
                if (trialCount >= 11) 
-                       fprintf(killLogFilePtr, "Trial no.%d, Started waiting at:%lld. Waited for: %lld\n", trialCount, startedWaitingAt.value, waitedFor.value);
+                 fprintf(killLogFilePtr,
+                         "Trial no.%d, Started waiting at: %llu. Waited for: %llu\n", 
+                         trialCount, 
+                         (unsigned long long) startedWaitingAt.value, 
+                         (unsigned long long) waitedFor.value);
        }
        
         /* Connect to the doNothing task */