From 5beefc66cd7286d1dbe27953ed431e05f9b421b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Mon, 8 Apr 2013 17:40:14 +0100 Subject: [PATCH] ext: printf format fixes in debug and error messages --- ext/fluidsynth/gstfluiddec.c | 2 +- ext/mimic/gstmimenc.c | 5 +++-- ext/srtp/gstsrtpdec.c | 5 +++-- ext/srtp/gstsrtpenc.c | 4 ++-- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/ext/fluidsynth/gstfluiddec.c b/ext/fluidsynth/gstfluiddec.c index 2cef7c7464..392f38325d 100644 --- a/ext/fluidsynth/gstfluiddec.c +++ b/ext/fluidsynth/gstfluiddec.c @@ -367,7 +367,7 @@ produce_samples (GstFluidDec * fluiddec, GstClockTime pts, guint64 sample) return GST_FLOW_OK; GST_DEBUG_OBJECT (fluiddec, "duration %" GST_TIME_FORMAT - ", samples %u", GST_TIME_ARGS (duration), samples); + ", samples %" G_GUINT64_FORMAT, GST_TIME_ARGS (duration), samples); outbuf = gst_buffer_new_allocate (NULL, samples * FLUID_DEC_BPS, NULL); diff --git a/ext/mimic/gstmimenc.c b/ext/mimic/gstmimenc.c index 8001d31a01..59f2913965 100644 --- a/ext/mimic/gstmimenc.c +++ b/ext/mimic/gstmimenc.c @@ -323,8 +323,9 @@ gst_mim_enc_chain (GstPad * pad, GstObject * parent, GstBuffer * in) GST_BUFFER_FLAG_SET (out, GST_BUFFER_FLAG_DELTA_UNIT); - GST_LOG_OBJECT (mimenc, "incoming buf size %d, encoded size %d", - gst_buffer_get_size (in), gst_buffer_get_size (out)); + GST_LOG_OBJECT (mimenc, "incoming buf size %" G_GSIZE_FORMAT + ", encoded size %" G_GSIZE_FORMAT, gst_buffer_get_size (in), + gst_buffer_get_size (out)); ++mimenc->frames; /* now let's create that tcp header */ diff --git a/ext/srtp/gstsrtpdec.c b/ext/srtp/gstsrtpdec.c index 73193712d4..e38dc3ea35 100644 --- a/ext/srtp/gstsrtpdec.c +++ b/ext/srtp/gstsrtpdec.c @@ -832,8 +832,9 @@ gst_srtp_dec_chain (GstPad * pad, GstObject * parent, GstBuffer * buf, goto drop_buffer; } - GST_LOG_OBJECT (pad, "Received %s buffer of size %d with SSRC = %u", - is_rtcp ? "RTCP" : "RTP", gst_buffer_get_size (buf), ssrc); + GST_LOG_OBJECT (pad, "Received %s buffer of size %" G_GSIZE_FORMAT + " with SSRC = %u", is_rtcp ? "RTCP" : "RTP", gst_buffer_get_size (buf), + ssrc); /* Change buffer to remove protection */ buf = gst_buffer_make_writable (buf); diff --git a/ext/srtp/gstsrtpenc.c b/ext/srtp/gstsrtpenc.c index 5335a254d9..8936e197f2 100644 --- a/ext/srtp/gstsrtpenc.c +++ b/ext/srtp/gstsrtpenc.c @@ -331,8 +331,8 @@ check_new_stream_locked (GstSrtpEnc * filter, guint32 ssrc) if (gst_buffer_get_size (filter->key) != SRTP_MASTER_KEY_LEN) { GST_ELEMENT_ERROR (filter, LIBRARY, SETTINGS, ("Master key size is wrong"), - ("Expected master key of %d bytes, but received %d bytes", - SRTP_MASTER_KEY_LEN, gst_buffer_get_size (filter->key))); + ("Expected master key of %d bytes, but received %" G_GSIZE_FORMAT + " bytes", SRTP_MASTER_KEY_LEN, gst_buffer_get_size (filter->key))); return FALSE; }