diff options
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2013-04-08 17:34:41 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2013-04-08 17:34:41 +0100 |
commit | 86ae538ca2a999fd8e8eed7a764f9a0f798c232b (patch) | |
tree | 7f3f3024fdf12aabdc60338cae7b2a4929cb774c /sys | |
parent | 98265d0b28c4f33c321cce6f6198e97eacbd5007 (diff) | |
download | gstreamer-plugins-bad-86ae538ca2a999fd8e8eed7a764f9a0f798c232b.tar.gz |
sys: print format fixes in debug messages
Diffstat (limited to 'sys')
-rw-r--r-- | sys/bluez/gstavdtpsink.c | 2 | ||||
-rw-r--r-- | sys/dvb/parsechannels.c | 2 | ||||
-rw-r--r-- | sys/mfc/gstmfcdec.c | 9 | ||||
-rw-r--r-- | sys/vdpau/gstvdpdecoder.c | 2 | ||||
-rw-r--r-- | sys/vdpau/gstvdpvideomemory.c | 3 |
5 files changed, 10 insertions, 8 deletions
diff --git a/sys/bluez/gstavdtpsink.c b/sys/bluez/gstavdtpsink.c index 42ad50284..b549caaa1 100644 --- a/sys/bluez/gstavdtpsink.c +++ b/sys/bluez/gstavdtpsink.c @@ -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; diff --git a/sys/dvb/parsechannels.c b/sys/dvb/parsechannels.c index 8bf59d9cb..f2ffcef54 100644 --- a/sys/dvb/parsechannels.c +++ b/sys/dvb/parsechannels.c @@ -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; diff --git a/sys/mfc/gstmfcdec.c b/sys/mfc/gstmfcdec.c index 8911ce1c0..20ac1379f 100644 --- a/sys/mfc/gstmfcdec.c +++ b/sys/mfc/gstmfcdec.c @@ -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 = diff --git a/sys/vdpau/gstvdpdecoder.c b/sys/vdpau/gstvdpdecoder.c index 264cee1ac..5837da90e 100644 --- a/sys/vdpau/gstvdpdecoder.c +++ b/sys/vdpau/gstvdpdecoder.c @@ -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); diff --git a/sys/vdpau/gstvdpvideomemory.c b/sys/vdpau/gstvdpvideomemory.c index d6e141b78..3f15a8c58 100644 --- a/sys/vdpau/gstvdpvideomemory.c +++ b/sys/vdpau/gstvdpvideomemory.c @@ -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; |