From cf695c6da9a8e4a680129ead65236423568ea5d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Fri, 25 Jan 2013 12:24:55 +0000 Subject: [PATCH] insertbin, tests: fix printf format compiler warnings --- gst-libs/gst/insertbin/gstinsertbin.c | 4 ++-- tests/check/elements/autoconvert.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gst-libs/gst/insertbin/gstinsertbin.c b/gst-libs/gst/insertbin/gstinsertbin.c index 295d2bc1bd..1aa5c0889c 100644 --- a/gst-libs/gst/insertbin/gstinsertbin.c +++ b/gst-libs/gst/insertbin/gstinsertbin.c @@ -622,7 +622,7 @@ gst_insert_bin_do_change (GstInsertBin * self, GstPad * pad) } else { if (!gst_ghost_pad_set_target (GST_GHOST_PAD (self->priv->sinkpad), sinkpad)) { - GST_WARNING_OBJECT (self, "Can not set %s:%s as target for %s", + GST_WARNING_OBJECT (self, "Can not set %s:%s as target for %s:%s", GST_DEBUG_PAD_NAME (sinkpad), GST_DEBUG_PAD_NAME (self->priv->sinkpad)); goto error; @@ -639,7 +639,7 @@ gst_insert_bin_do_change (GstInsertBin * self, GstPad * pad) } else { if (!gst_ghost_pad_set_target (GST_GHOST_PAD (self->priv->srcpad), srcpad)) { - GST_WARNING_OBJECT (self, "Can not set %s:%s as target for %s", + GST_WARNING_OBJECT (self, "Can not set %s:%s as target for %s:%s", GST_DEBUG_PAD_NAME (srcpad), GST_DEBUG_PAD_NAME (self->priv->srcpad)); goto error; diff --git a/tests/check/elements/autoconvert.c b/tests/check/elements/autoconvert.c index 02dad513d9..a6458fc34c 100644 --- a/tests/check/elements/autoconvert.c +++ b/tests/check/elements/autoconvert.c @@ -105,7 +105,7 @@ GST_START_TEST (test_autoconvert_simple) /* Push 10 items */ for (i = 0; i < 10; i++) { - GST_LOG ("Pushing test buffer %d, caps 1"); + GST_LOG ("Pushing test buffer %d, caps 1", i); fail_unless (gst_pad_push (test_src_pad, gst_buffer_new_and_alloc (4096)) == GST_FLOW_OK); } @@ -117,7 +117,7 @@ GST_START_TEST (test_autoconvert_simple) /* Push 10 more items */ for (i = 0; i < 10; i++) { - GST_LOG ("Pushing test buffer %d, caps 2"); + GST_LOG ("Pushing test buffer %d, caps 2", i); fail_unless (gst_pad_push (test_src_pad, gst_buffer_new_and_alloc (4096)) == GST_FLOW_OK); }