From 173815bb6d0094a2c0464548b7381e941ce8b9ec Mon Sep 17 00:00:00 2001 From: Josep Torra Valles Date: Tue, 25 Sep 2012 01:02:03 +0100 Subject: [PATCH] benchmarks: printf format fixes to make intel compiler happy https://bugzilla.gnome.org/show_bug.cgi?id=552657 --- tests/benchmarks/complexity.c | 4 ++-- tests/benchmarks/gstpollstress.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/benchmarks/complexity.c b/tests/benchmarks/complexity.c index 3599a097c5..e275811d36 100644 --- a/tests/benchmarks/complexity.c +++ b/tests/benchmarks/complexity.c @@ -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 (); diff --git a/tests/benchmarks/gstpollstress.c b/tests/benchmarks/gstpollstress.c index dc25c604d5..707be0b6b9 100644 --- a/tests/benchmarks/gstpollstress.c +++ b/tests/benchmarks/gstpollstress.c @@ -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); }