# HG changeset patch # User zas_ # Date 1220476382 0 # Node ID 04a8e8a26ffffe7eee5362d83eab434e4c93b797 # Parent 210c86b914ceeda066113380c937f8bcdad4114f Improve debug messages. diff -r 210c86b914ce -r 04a8e8a26fff src/pixbuf-renderer.c --- a/src/pixbuf-renderer.c Wed Sep 03 20:43:10 2008 +0000 +++ b/src/pixbuf-renderer.c Wed Sep 03 21:13:02 2008 +0000 @@ -2711,7 +2711,7 @@ if (!pr->loading) { /* 2pass prio */ - DEBUG_2("redraw priority 2pass\n"); + DEBUG_2("redraw priority: 2pass"); pr->draw_idle_id = g_idle_add_full(G_PRIORITY_DEFAULT_IDLE, pr_queue_draw_idle_cb, pr, NULL); return FALSE; } @@ -2729,7 +2729,7 @@ if (percent > 10.0) { /* we have enough data for starting intensive redrawing */ - DEBUG_2("redraw priority high %f\n", percent); + DEBUG_2("redraw priority: high %.2f %%", percent); pr->draw_idle_id = g_idle_add_full(GDK_PRIORITY_REDRAW, pr_queue_draw_idle_cb, pr, NULL); return FALSE; } @@ -2737,13 +2737,13 @@ if (percent < 1.0 || force_set) { /* queue is (almost) empty, wait 50 ms*/ - DEBUG_2("redraw priority wait %f\n", percent); + DEBUG_2("redraw priority: wait %.2f %%", percent); pr->draw_idle_id = g_timeout_add_full(G_PRIORITY_DEFAULT_IDLE, 50, pr_queue_draw_idle_cb, pr, NULL); return FALSE; } /* keep the same priority as before */ - DEBUG_2("redraw priority no change %f\n", percent); + DEBUG_2("redraw priority: no change %.2f %%", percent); return TRUE; }