changeset 1035:04a8e8a26fff

Improve debug messages.
author zas_
date Wed, 03 Sep 2008 21:13:02 +0000
parents 210c86b914ce
children ab24c46aa6e4
files src/pixbuf-renderer.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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;
 }