From c816ec4f0e1bfa837bf30544374131f89f0e71b2 Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Fri, 25 Jan 2019 13:46:59 -0500 Subject: [PATCH] pad: Remove unneeded 64bit upcast in debug trace 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 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gst/gstpad.c b/gst/gstpad.c index d5faaef046..98aec5f883 100644 --- a/gst/gstpad.c +++ b/gst/gstpad.c @@ -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;