sys: print format fixes in debug messages

This commit is contained in:
Tim-Philipp Müller 2013-04-08 17:34:41 +01:00
parent 98265d0b28
commit 86ae538ca2
5 changed files with 10 additions and 8 deletions

View 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;

View 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;

View 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 =

View 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);

View 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;