pad: Remove unneeded 64bit upcast in debug trace
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Fri, 25 Jan 2019 18:46:59 +0000 (13:46 -0500)
committerNicolas Dufresne <nicolas@ndufresne.ca>
Sat, 26 Jan 2019 01:42:22 +0000 (01:42 +0000)
The hook->hook_id is a gulong for which there are no portability issues
when tracing in printf format with %lu. So use %lu and remove the upcast
to 64 bit. This makes the code more consistent with everything else
tracing that hook_id and other gulong id.

gst/gstpad.c

index d5faaef..98aec5f 100644 (file)
@@ -1373,8 +1373,7 @@ cleanup_hook (GstPad * pad, GHook * hook)
   GstPadProbeType type;
 
   GST_DEBUG_OBJECT (pad,
-      "cleaning up hook %" G_GUINT64_FORMAT " with flags %08x",
-      (guint64) hook->hook_id, hook->flags);
+      "cleaning up hook %lu with flags %08x", hook->hook_id, hook->flags);
 
   if (!G_HOOK_IS_VALID (hook))
     return;