Skip to content

Commit

Permalink
kinetic-scroll-view: Include timestamps in debug messages
Browse files Browse the repository at this point in the history
This makes debugging problems in the MxKineticScrollView a lot easier.
Note that _KINETIC_DEBUG must be defined to enable debug messages.
  • Loading branch information
Philip Withnall committed Sep 21, 2015
1 parent a1ea89a commit a78bd7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mx/mx-kinetic-scroll-view.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit a78bd7d

Please sign in to comment.