Skip to content

Commit a78bd7d

Browse files
author
Philip Withnall
committed
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.
1 parent a1ea89a commit a78bd7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mx/mx-kinetic-scroll-view.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,11 @@ _log_debug (MxKineticScrollView *scroll, const gchar *fmt, ...)
163163

164164
va_start (args, fmt);
165165

166-
new_fmt = g_strdup_printf ("%s(%p): %s",
166+
new_fmt = g_strdup_printf ("%s(%p): %" G_GINT64_FORMAT ": %s",
167167
(scroll->priv->scroll_policy == MX_SCROLL_POLICY_VERTICAL) ?
168168
"vert" :
169169
((scroll->priv->scroll_policy == MX_SCROLL_POLICY_HORIZONTAL) ? "hori" : "both"),
170-
scroll, fmt);
170+
scroll, g_get_monotonic_time (), fmt);
171171

172172
g_logv ("Mx", G_LOG_LEVEL_MESSAGE, new_fmt, args);
173173

0 commit comments

Comments
 (0)