ext: printf format fixes in debug and error messages
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Mon, 8 Apr 2013 16:40:14 +0000 (17:40 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Mon, 8 Apr 2013 16:40:14 +0000 (17:40 +0100)
ext/fluidsynth/gstfluiddec.c
ext/mimic/gstmimenc.c
ext/srtp/gstsrtpdec.c
ext/srtp/gstsrtpenc.c

index 2cef7c7..392f383 100644 (file)
@@ -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);
 
index 8001d31..59f2913 100644 (file)
@@ -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 */
index 7319371..e38dc3e 100644 (file)
@@ -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);
index 5335a25..8936e19 100644 (file)
@@ -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;
   }