[gnome-power-manager] Increase the usefullness of debugging



commit 6d5025a4018a29289f74a7d39c4af77cdd6ff4db
Author: Richard Hughes <richard hughsie com>
Date:   Tue Jun 9 12:15:41 2009 +0100

    Increase the usefullness of debugging

 src/gpm-idle.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gpm-idle.c b/src/gpm-idle.c
index b0a0f03..2f82103 100644
--- a/src/gpm-idle.c
+++ b/src/gpm-idle.c
@@ -229,7 +229,7 @@ gpm_idle_evaluate (GpmIdle *idle)
 	 * but only if we actually want to blank. */
 	if (idle->priv->timeout_blank_id == 0 &&
 	    idle->priv->timeout_blank != 0) {
-		egg_debug ("setting up blank callback");
+		egg_debug ("setting up blank callback for %is", idle->priv->timeout_blank);
 		idle->priv->timeout_blank_id = g_timeout_add_seconds (idle->priv->timeout_blank, (GSourceFunc) gpm_idle_blank_cb, idle);
 	}
 
@@ -237,7 +237,7 @@ gpm_idle_evaluate (GpmIdle *idle)
 	if (is_idle) {
 		if (idle->priv->timeout_sleep_id == 0 &&
 		    idle->priv->timeout_sleep != 0) {
-			egg_debug ("setting up sleep callback = %i", idle->priv->timeout_blank);
+			egg_debug ("setting up sleep callback %is", idle->priv->timeout_sleep);
 			idle->priv->timeout_sleep_id = g_timeout_add_seconds (idle->priv->timeout_sleep, (GSourceFunc) gpm_idle_sleep_cb, idle);
 		}
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]