sys: print format fixes in debug messages
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Mon, 8 Apr 2013 16:34:41 +0000 (17:34 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Mon, 8 Apr 2013 16:34:41 +0000 (17:34 +0100)
sys/bluez/gstavdtpsink.c
sys/dvb/parsechannels.c
sys/mfc/gstmfcdec.c
sys/vdpau/gstvdpdecoder.c
sys/vdpau/gstvdpvideomemory.c

index 42ad502..b549caa 100644 (file)
@@ -283,7 +283,7 @@ gst_avdtp_sink_start (GstBaseSink * basesink)
     return FALSE;
   }
 
-  GST_DEBUG_OBJECT (self, "Got connection caps: " GST_PTR_FORMAT,
+  GST_DEBUG_OBJECT (self, "Got connection caps: %" GST_PTR_FORMAT,
       self->dev_caps);
 
   return TRUE;
index 8bf59d9..f2ffcef 100644 (file)
@@ -141,7 +141,7 @@ parse_channels_conf_from_file (GstElement * dvbbasebin, const gchar * filename)
 open_fail:
   {
     GST_ELEMENT_ERROR (dvbbasebin, RESOURCE, READ, (NULL),
-        ("Opening channels configuration file failed : %s", filename,
+        ("Opening channels configuration file '%s' failed : %s", filename,
             err->message));
     g_clear_error (&err);
     return NULL;
index 8911ce1..20ac137 100644 (file)
@@ -397,7 +397,8 @@ dequeue_error:
 too_small_inbuf:
   {
     GST_ELEMENT_ERROR (self, STREAM, FORMAT, ("Too large input frames"),
-        ("Maximum size %d, got %d", mfc_inbuf_max_size, map.size));
+        ("Maximum size %d, got %" G_GSIZE_FORMAT, mfc_inbuf_max_size,
+            map.size));
     ret = GST_FLOW_ERROR;
     gst_buffer_unmap (inbuf, &map);
     goto done;
@@ -542,7 +543,7 @@ gst_mfc_dec_fill_outbuf (GstMFCDec * self, GstBuffer * outbuf,
       }
     }
   }
-  
+
   has_cropping = self->has_cropping && (self->width != self->crop_width
       || self->height != self->crop_height);
 
@@ -817,7 +818,7 @@ gst_mfc_dec_dequeue_output (GstMFCDec * self)
 
     g_assert (mfc_outbuf != NULL);
 
-    GST_DEBUG_OBJECT (self, "Got output buffer with ID %d", timestamp.tv_sec);
+    GST_DEBUG_OBJECT (self, "Got output buffer with ID %ld", timestamp.tv_sec);
 
     frame = NULL;
     if (timestamp.tv_sec != -1)
@@ -847,7 +848,7 @@ gst_mfc_dec_dequeue_output (GstMFCDec * self)
 
       outbuf = frame->output_buffer;
     } else {
-      GST_WARNING_OBJECT (self, "Didn't find a frame for ID %d",
+      GST_WARNING_OBJECT (self, "Didn't find a frame for ID %ld",
           timestamp.tv_sec);
 
       outbuf =
index 264cee1..5837da9 100644 (file)
@@ -137,7 +137,7 @@ gst_vdp_decoder_init_decoder (GstVdpDecoder * vdp_decoder,
   }
 
   GST_DEBUG_OBJECT (vdp_decoder,
-      "device:%p, profile:%d, width:%d, height:%d, max_references:%d",
+      "device:%u, profile:%d, width:%d, height:%d, max_references:%d",
       device->device, profile, output_state->info.width,
       output_state->info.height, max_references);
 
index d6e141b..3f15a8c 100644 (file)
@@ -152,7 +152,8 @@ release_data (GstVdpVideoMemory * vmem)
 static gpointer
 _vdp_video_mem_map (GstVdpVideoMemory * vmem, gsize maxsize, GstMapFlags flags)
 {
-  GST_DEBUG ("surface:%d, maxsize:%d, flags:%d", vmem->surface, maxsize, flags);
+  GST_DEBUG ("surface:%d, maxsize:%" G_GSIZE_FORMAT ", flags:%d",
+      vmem->surface, maxsize, flags);
 
   if (!ensure_data (vmem))
     return NULL;