tests: fix some printf format issues in debug messages

This commit is contained in:
Tim-Philipp Müller 2013-04-11 22:53:28 +01:00
parent bda2703e88
commit a8e7cd0860
4 changed files with 5 additions and 4 deletions

View file

@ -221,7 +221,8 @@ GST_START_TEST (test_rgba32)
push_caps (create_caps_rgba32 ());
inbuffer = create_buffer_rgba32_3x4 ();
GST_DEBUG ("Created buffer of %d bytes", gst_buffer_get_size (inbuffer));
GST_DEBUG ("Created buffer of %" G_GSIZE_FORMAT " bytes",
gst_buffer_get_size (inbuffer));
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
/* pushing gives away reference */

View file

@ -209,7 +209,7 @@ got_buffer (GstElement * fakesink, GstBuffer * buf, GstPad * pad,
gst_buffer_map (buf, &map, GST_MAP_READ);
GST_LOG ("got buffer, size=%u, offset=%" G_GINT64_FORMAT, map.size, off);
GST_LOG ("size=%" G_GSIZE_FORMAT ", offset=%" G_GINT64_FORMAT, map.size, off);
fail_unless (GST_BUFFER_OFFSET_IS_VALID (buf));

View file

@ -294,7 +294,7 @@ got_buffer (GstElement * fakesink, GstBuffer * buf, GstPad * pad,
gst_buffer_map (buf, &map, GST_MAP_READ);
GST_LOG ("got buffer, size=%u, offset=%" G_GINT64_FORMAT, map.size, off);
GST_LOG ("size=%" G_GSIZE_FORMAT ", offset=%" G_GINT64_FORMAT, map.size, off);
fail_unless (GST_BUFFER_OFFSET_IS_VALID (buf));

View file

@ -36,7 +36,7 @@ _get_first_sample (GstSample * sample)
fail_unless (caps != NULL, "sample without caps");
buf = gst_sample_get_buffer (sample);
GST_DEBUG ("buffer with size=%u, caps=%" GST_PTR_FORMAT,
GST_DEBUG ("buffer with size=%" G_GSIZE_FORMAT ", caps=%" GST_PTR_FORMAT,
gst_buffer_get_size (buf), caps);
gst_buffer_map (buf, &map, GST_MAP_READ);