diff --git a/gst/asfdemux/gstasfdemux.c b/gst/asfdemux/gstasfdemux.c
index a1d94bc..38a1f3d 100644
--- a/gst/asfdemux/gstasfdemux.c
+++ b/gst/asfdemux/gstasfdemux.c
@@ -949,7 +949,7 @@ gst_asf_demux_pull_data (GstASFDemux * demux, guint64 offset, guint size,
   buffer_size = gst_buffer_get_size (*p_buf);
   if (G_UNLIKELY (buffer_size < size)) {
     GST_DEBUG_OBJECT (demux, "short read pulling buffer at %" G_GUINT64_FORMAT
-        "+%u (got only %u bytes)", offset, size, buffer_size);
+        "+%u (got only %" G_GSIZE_FORMAT " bytes)", offset, size, buffer_size);
     gst_buffer_unref (*p_buf);
     if (G_LIKELY (p_flow))
       *p_flow = GST_FLOW_UNEXPECTED;
@@ -1465,7 +1465,7 @@ gst_asf_demux_push_complete_payloads (GstASFDemux * demux, gboolean force)
     /* FIXME: we should really set durations on buffers if we can */
 
     GST_LOG_OBJECT (stream->pad, "pushing buffer, ts=%" GST_TIME_FORMAT
-        ", dur=%" GST_TIME_FORMAT " size=%u",
+        ", dur=%" GST_TIME_FORMAT " size=%" G_GSIZE_FORMAT,
         GST_TIME_ARGS (GST_BUFFER_TIMESTAMP (payload->buf)),
         GST_TIME_ARGS (GST_BUFFER_DURATION (payload->buf)),
         gst_buffer_get_size (payload->buf));
@@ -1757,7 +1757,7 @@ gst_asf_demux_chain (GstPad * pad, GstBuffer * buf)
 
   demux = GST_ASF_DEMUX (GST_PAD_PARENT (pad));
 
-  GST_LOG_OBJECT (demux, "buffer: size=%u, offset=%" G_GINT64_FORMAT ", time=%"
+  GST_LOG_OBJECT (demux, "buffer: size=%" G_GSIZE_FORMAT ", offset=%" G_GINT64_FORMAT ", time=%"
       GST_TIME_FORMAT, gst_buffer_get_size (buf), GST_BUFFER_OFFSET (buf),
       GST_TIME_ARGS (GST_BUFFER_TIMESTAMP (buf)));
 
@@ -3777,10 +3777,10 @@ gst_asf_demux_descramble_buffer (GstASFDemux * demux, AsfStream * stream,
     idx = row + col * demux->ds_packet_size / demux->ds_chunk_size;
     GST_DEBUG ("idx=%u, row=%u, col=%u, off=%u, ds_chunk_size=%u", idx, row,
         col, off, demux->ds_chunk_size);
-    GST_DEBUG ("scrambled buffer size=%u, span=%u, packet_size=%u",
+    GST_DEBUG ("scrambled buffer size=%" G_GSIZE_FORMAT ", span=%u, packet_size=%u",
         gst_buffer_get_size (scrambled_buffer), demux->span,
         demux->ds_packet_size);
-    GST_DEBUG ("gst_buffer_get_size (scrambled_buffer) = %u",
+    GST_DEBUG ("gst_buffer_get_size (scrambled_buffer) = %" G_GSIZE_FORMAT,
         gst_buffer_get_size (scrambled_buffer));
     sub_buffer =
         gst_buffer_copy_region (scrambled_buffer, GST_BUFFER_COPY_NONE,
diff --git a/gst/asfdemux/gstrtpasfdepay.c b/gst/asfdemux/gstrtpasfdepay.c
index 0d6c556..c2b8976 100644
--- a/gst/asfdemux/gstrtpasfdepay.c
+++ b/gst/asfdemux/gstrtpasfdepay.c
@@ -464,7 +464,7 @@ gst_rtp_asf_depay_process (GstBaseRTPDepayload * depayload, GstBuffer * buf)
     if (plen < depay->packet_size) {
       GstBuffer *tmp;
 
-      GST_LOG_OBJECT (depay, "padding buffer size %d to packet size %d",
+      GST_LOG_OBJECT (depay, "padding buffer size %" G_GSIZE_FORMAT " to packet size %d",
           plen, depay->packet_size);
 
       tmp = gst_buffer_new_and_alloc (depay->packet_size);
diff --git a/gst/dvdlpcmdec/gstdvdlpcmdec.c b/gst/dvdlpcmdec/gstdvdlpcmdec.c
index f99be70..217b25a 100644
--- a/gst/dvdlpcmdec/gstdvdlpcmdec.c
+++ b/gst/dvdlpcmdec/gstdvdlpcmdec.c
@@ -462,7 +462,7 @@ gst_dvdlpcmdec_chain_dvd (GstPad * pad, GstBuffer * buf)
     dvdlpcmdec->header = header;
   }
 
-  GST_LOG_OBJECT (dvdlpcmdec, "first_access %d, buffer length %d", first_access,
+  GST_LOG_OBJECT (dvdlpcmdec, "first_access %d, buffer length %" G_GSIZE_FORMAT, first_access,
       size);
 
   rate = GST_AUDIO_INFO_RATE (&dvdlpcmdec->info);
@@ -539,7 +539,7 @@ gst_dvdlpcmdec_chain_dvd (GstPad * pad, GstBuffer * buf)
       ret = gst_dvdlpcmdec_chain_raw (pad, subbuf);
     }
   } else {
-    GST_LOG_OBJECT (dvdlpcmdec, "Creating single sub-buffer off %d, len %d",
+    GST_LOG_OBJECT (dvdlpcmdec, "Creating single sub-buffer off %d, len %" G_GSIZE_FORMAT,
         off, size - off);
     subbuf = gst_buffer_copy_region (buf, GST_BUFFER_COPY_ALL, off, size - off);
     GST_BUFFER_TIMESTAMP (subbuf) = GST_BUFFER_TIMESTAMP (buf);
@@ -603,7 +603,7 @@ gst_dvdlpcmdec_chain_raw (GstPad * pad, GstBuffer * buf)
   size = gst_buffer_get_size (buf);
 
   GST_LOG_OBJECT (dvdlpcmdec,
-      "got buffer %p of size %d with ts %" GST_TIME_FORMAT,
+      "got buffer %p of size %" G_GSIZE_FORMAT " with ts %" GST_TIME_FORMAT,
       buf, size, GST_TIME_ARGS (GST_BUFFER_TIMESTAMP (buf)));
 
   rate = GST_AUDIO_INFO_RATE (&dvdlpcmdec->info);
@@ -728,7 +728,7 @@ done:
   /* ERRORS */
 drop:
   {
-    GST_DEBUG_OBJECT (dvdlpcmdec, "Buffer of size %u is too small. Dropping",
+    GST_DEBUG_OBJECT (dvdlpcmdec, "Buffer of size %" G_GSIZE_FORMAT " is too small. Dropping",
         size);
     gst_buffer_unref (buf);
     ret = GST_FLOW_OK;
diff --git a/gst/dvdsub/gstdvdsubdec.c b/gst/dvdsub/gstdvdsubdec.c
index 328c419..ddf92cd 100644
--- a/gst/dvdsub/gstdvdsubdec.c
+++ b/gst/dvdsub/gstdvdsubdec.c
@@ -806,7 +806,7 @@ gst_dvd_sub_dec_chain (GstPad * pad, GstBuffer * buf)
 
   dec = GST_DVD_SUB_DEC (GST_PAD_PARENT (pad));
 
-  GST_DEBUG_OBJECT (dec, "Have buffer of size %d, ts %"
+  GST_DEBUG_OBJECT (dec, "Have buffer of size %" G_GSIZE_FORMAT ", ts %"
       GST_TIME_FORMAT ", dur %" G_GINT64_FORMAT, gst_buffer_get_size (buf),
       GST_TIME_ARGS (GST_BUFFER_TIMESTAMP (buf)), GST_BUFFER_DURATION (buf));
 
diff --git a/gst/dvdsub/gstdvdsubparse.c b/gst/dvdsub/gstdvdsubparse.c
index adf3a6a..fc69916 100644
--- a/gst/dvdsub/gstdvdsubparse.c
+++ b/gst/dvdsub/gstdvdsubparse.c
@@ -153,7 +153,7 @@ gst_dvd_sub_parse_chain (GstPad * pad, GstBuffer * buf)
 
   adapter = parse->adapter;
 
-  GST_LOG_OBJECT (parse, "%4u bytes, ts: %" GST_TIME_FORMAT,
+  GST_LOG_OBJECT (parse, "%4" G_GSIZE_FORMAT " bytes, ts: %" GST_TIME_FORMAT,
       gst_buffer_get_size (buf), GST_TIME_ARGS (GST_BUFFER_TIMESTAMP (buf)));
 
   gst_adapter_push (adapter, buf);
