tracer: Use GST_TIME_ARGS when printing with GST_TIME_FORMAT.
authorMathieu Duponchelle <mathieu.duponchelle@opencreed.com>
Tue, 13 Jan 2015 21:11:34 +0000 (22:11 +0100)
committerStefan Sauer <ensonic@users.sf.net>
Mon, 5 Oct 2015 18:59:39 +0000 (20:59 +0200)
plugins/tracers/gstlog.c

index 172535f..5b5e52e 100644 (file)
@@ -68,7 +68,7 @@ do_push_buffer_pre (GstTracer * self, guint64 ts, GstPad * pad,
 {
   do_log (GST_CAT_BUFFER,
       "%" GST_TIME_FORMAT ", pad=%" GST_PTR_FORMAT ", buffer=%" GST_PTR_FORMAT,
-      ts, pad, buffer);
+      GST_TIME_ARGS (ts), pad, buffer);
 }
 
 static void
@@ -76,7 +76,8 @@ do_push_buffer_post (GstTracer * self, guint64 ts, GstPad * pad,
     GstFlowReturn res)
 {
   do_log (GST_CAT_BUFFER,
-      "%" GST_TIME_FORMAT ", pad=%" GST_PTR_FORMAT ", res=%d", ts, pad, res);
+      "%" GST_TIME_FORMAT ", pad=%" GST_PTR_FORMAT ", res=%d",
+      GST_TIME_ARGS (ts), pad, res);
 }
 
 static void
@@ -84,7 +85,8 @@ do_push_buffer_list_pre (GstTracer * self, guint64 ts, GstPad * pad,
     GstBufferList * list)
 {
   do_log (GST_CAT_BUFFER_LIST,
-      "%" GST_TIME_FORMAT ", pad=%" GST_PTR_FORMAT ", list=%p", ts, pad, list);
+      "%" GST_TIME_FORMAT ", pad=%" GST_PTR_FORMAT ", list=%p",
+      GST_TIME_ARGS (ts), pad, list);
 }
 
 static void
@@ -92,7 +94,8 @@ do_push_buffer_list_post (GstTracer * self, guint64 ts, GstPad * pad,
     GstFlowReturn res)
 {
   do_log (GST_CAT_BUFFER_LIST,
-      "%" GST_TIME_FORMAT ", pad=%" GST_PTR_FORMAT ", res=%d", ts, pad, res);
+      "%" GST_TIME_FORMAT ", pad=%" GST_PTR_FORMAT ", res=%d",
+      GST_TIME_ARGS (ts), pad, res);
 }
 
 static void
@@ -101,7 +104,7 @@ do_pull_range_pre (GstTracer * self, guint64 ts, GstPad * pad, guint64 offset,
 {
   do_log (GST_CAT_BUFFER,
       "%" GST_TIME_FORMAT ", pad=%" GST_PTR_FORMAT ", offset=%" G_GUINT64_FORMAT
-      ", size=%u", ts, pad, offset, size);
+      ", size=%u", GST_TIME_ARGS (ts), pad, offset, size);
 }
 
 static void
@@ -110,7 +113,7 @@ do_pull_range_post (GstTracer * self, guint64 ts, GstPad * pad,
 {
   do_log (GST_CAT_BUFFER,
       "%" GST_TIME_FORMAT ", pad=%" GST_PTR_FORMAT ", buffer=%" GST_PTR_FORMAT
-      ", res=%d", ts, pad, buffer, res);
+      ", res=%d", GST_TIME_ARGS (ts), pad, buffer, res);
 }
 
 static void
@@ -118,14 +121,15 @@ do_push_event_pre (GstTracer * self, guint64 ts, GstPad * pad, GstEvent * event)
 {
   do_log (GST_CAT_EVENT,
       "%" GST_TIME_FORMAT ", pad=%" GST_PTR_FORMAT ", event=%" GST_PTR_FORMAT,
-      ts, pad, event);
+      GST_TIME_ARGS (ts), pad, event);
 }
 
 static void
 do_push_event_post (GstTracer * self, guint64 ts, GstPad * pad, gboolean res)
 {
   do_log (GST_CAT_EVENT,
-      "%" GST_TIME_FORMAT ", pad=%" GST_PTR_FORMAT ", res=%d", ts, pad, res);
+      "%" GST_TIME_FORMAT ", pad=%" GST_PTR_FORMAT ", res=%d",
+      GST_TIME_ARGS (ts), pad, res);
 }
 
 static void
@@ -134,7 +138,7 @@ do_post_message_pre (GstTracer * self, guint64 ts, GstElement * elem,
 {
   do_log (GST_CAT_EVENT,
       "%" GST_TIME_FORMAT ", element=%" GST_PTR_FORMAT ", message=%"
-      GST_PTR_FORMAT, ts, elem, msg);
+      GST_PTR_FORMAT, GST_TIME_ARGS (ts), elem, msg);
 }
 
 static void
@@ -142,8 +146,8 @@ do_post_message_post (GstTracer * self, guint64 ts, GstElement * elem,
     gboolean res)
 {
   do_log (GST_CAT_EVENT,
-      "%" GST_TIME_FORMAT ", element=%" GST_PTR_FORMAT ", res=%d", ts, elem,
-      res);
+      "%" GST_TIME_FORMAT ", element=%" GST_PTR_FORMAT ", res=%d",
+      GST_TIME_ARGS (ts), elem, res);
 }
 
 static void
@@ -151,15 +155,15 @@ do_query_pre (GstTracer * self, guint64 ts, GstElement * elem, GstQuery * query)
 {
   do_log (GST_CAT_QUERY,
       "%" GST_TIME_FORMAT ", element=%" GST_PTR_FORMAT ", query=%"
-      GST_PTR_FORMAT, ts, elem, query);
+      GST_PTR_FORMAT, GST_TIME_ARGS (ts), elem, query);
 }
 
 static void
 do_query_post (GstTracer * self, guint64 ts, GstElement * elem, gboolean res)
 {
   do_log (GST_CAT_QUERY,
-      "%" GST_TIME_FORMAT ", element=%" GST_PTR_FORMAT ", res=%d", ts, elem,
-      res);
+      "%" GST_TIME_FORMAT ", element=%" GST_PTR_FORMAT ", res=%d",
+      GST_TIME_ARGS (ts), elem, res);
 }