From 7084cb01088490fcd869cafa6824cc05cbf8d46d Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Mon, 21 Sep 2015 17:21:16 +0100 Subject: [PATCH] kinetic-scroll-view: Include timestamps in debug messages This makes debugging problems in the MxKineticScrollView a lot easier. Note that _KINETIC_DEBUG must be defined to enable debug messages. https://github.com/clutter-project/mx/pull/98 --- mx/mx-kinetic-scroll-view.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mx/mx-kinetic-scroll-view.c b/mx/mx-kinetic-scroll-view.c index 5444c414..39bf90b1 100644 --- a/mx/mx-kinetic-scroll-view.c +++ b/mx/mx-kinetic-scroll-view.c @@ -163,11 +163,11 @@ _log_debug (MxKineticScrollView *scroll, const gchar *fmt, ...) va_start (args, fmt); - new_fmt = g_strdup_printf ("%s(%p): %s", + new_fmt = g_strdup_printf ("%s(%p): %" G_GINT64_FORMAT ": %s", (scroll->priv->scroll_policy == MX_SCROLL_POLICY_VERTICAL) ? "vert" : ((scroll->priv->scroll_policy == MX_SCROLL_POLICY_HORIZONTAL) ? "hori" : "both"), - scroll, fmt); + scroll, g_get_monotonic_time (), fmt); g_logv ("Mx", G_LOG_LEVEL_MESSAGE, new_fmt, args);