From 2503dcddfba3d06f4e2afc01641b44ad5353c5df Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Sat, 14 Apr 2012 10:23:49 +0200 Subject: [PATCH] buffer: improve debug --- gst/gstbuffer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst/gstbuffer.c b/gst/gstbuffer.c index 3fc06d4..019810f 100644 --- a/gst/gstbuffer.c +++ b/gst/gstbuffer.c @@ -235,7 +235,8 @@ _get_merged_memory (GstBuffer * buffer, guint idx, guint length) gst_memory_map (mem[i], &sinfo, GST_MAP_READ); tocopy = MIN (sinfo.size, left); GST_CAT_DEBUG (GST_CAT_PERFORMANCE, - "memcpy for merge %p from memory %p", result, mem[i]); + "memcpy %" G_GSIZE_FORMAT " bytes for merge %p from memory %p", + tocopy, result, mem[i]); memcpy (ptr, (guint8 *) sinfo.data, tocopy); left -= tocopy; ptr += tocopy; -- 2.7.4