benchmarks: printf format fixes to make intel compiler happy
authorJosep Torra Valles <n770galaxy@gmail.com>
Tue, 25 Sep 2012 00:02:03 +0000 (01:02 +0100)
committerTim-Philipp Müller <tim@centricular.net>
Tue, 25 Sep 2012 00:02:03 +0000 (01:02 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=552657

tests/benchmarks/complexity.c
tests/benchmarks/gstpollstress.c

index 3599a09..e275811 100644 (file)
@@ -90,7 +90,7 @@ main (gint argc, gchar * argv[])
   g_slist_free (new_src_list);
 
   end = gst_util_get_timestamp ();
-  g_print ("%" GST_TIME_FORMAT " - creating and linking %d elements\n",
+  g_print ("%" GST_TIME_FORMAT " - creating and linking %u elements\n",
       GST_TIME_ARGS (end - start), i);
 
   start = gst_util_get_timestamp ();
@@ -109,7 +109,7 @@ main (gint argc, gchar * argv[])
       GST_MESSAGE_EOS | GST_MESSAGE_ERROR, -1);
   end = gst_util_get_timestamp ();
   gst_message_unref (msg);
-  g_print ("%" GST_TIME_FORMAT " - putting %u buffers through\n",
+  g_print ("%" GST_TIME_FORMAT " - putting %d buffers through\n",
       GST_TIME_ARGS (end - start), BUFFER_COUNT);
 
   start = gst_util_get_timestamp ();
index dc25c60..707be0b 100644 (file)
@@ -125,7 +125,7 @@ run_test (void *threadid)
       mess_some_more ();
       if (g_timer_elapsed (timer, NULL) > 0.5) {
         g_mutex_lock (&fdlock);
-        g_print ("active fds :%d\n", g_list_length (fds));
+        g_print ("active fds :%u\n", g_list_length (fds));
         g_timer_start (timer);
         g_mutex_unlock (&fdlock);
       }