[gst-cvs] gst-openmax: base_filter: more proper printf formatting

Felipe Contreras felipec at kemper.freedesktop.org
Sat Sep 19 16:54:10 PDT 2009


Module: gst-openmax
Branch: master
Commit: 59631309c4e832f5ada0232c04b9556861360ea4
URL:    http://cgit.freedesktop.org/gstreamer/gst-openmax/commit/?id=59631309c4e832f5ada0232c04b9556861360ea4

Author: Felipe Contreras <felipe.contreras at gmail.com>
Date:   Sun Sep 20 00:22:26 2009 +0300

base_filter: more proper printf formatting

Signed-off-by: Felipe Contreras <felipe.contreras at gmail.com>

---

 omx/gstomx_base_filter.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/omx/gstomx_base_filter.c b/omx/gstomx_base_filter.c
index 2de7a85..287f50c 100644
--- a/omx/gstomx_base_filter.c
+++ b/omx/gstomx_base_filter.c
@@ -39,7 +39,12 @@ static inline void
 log_buffer (GstOmxBaseFilter *self,
             OMX_BUFFERHEADERTYPE *omx_buffer)
 {
-    GST_DEBUG_OBJECT (self, "omx_buffer: size=%lu, len=%lu, flags=%lu, offset=%lu, timestamp=%lld",
+    GST_DEBUG_OBJECT (self, "omx_buffer: "
+                      "size=%" G_GUINT32_FORMAT ", "
+                      "len=%" G_GUINT32_FORMAT ", "
+                      "flags=%" G_GUINT32_FORMAT ", "
+                      "offset=%" G_GUINT32_FORMAT ", "
+                      "timestamp=%" G_GUINT64_FORMAT,
                       omx_buffer->nAllocLen, omx_buffer->nFilledLen, omx_buffer->nFlags,
                       omx_buffer->nOffset, omx_buffer->nTimeStamp);
 }
@@ -445,7 +450,7 @@ output_loop (gpointer data)
                 }
                 else
                 {
-                    GST_WARNING_OBJECT (self, "couldn't allocate buffer of size %d",
+                    GST_WARNING_OBJECT (self, "couldn't allocate buffer of size %" G_GUINT32_FORMAT,
                                         omx_buffer->nFilledLen);
                 }
             }





More information about the Gstreamer-commits mailing list