[gnome-settings-daemon] power: Better debug in idle_configure()



commit 62892735811aefe9c9821239be49a4853f24fa97
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Mar 21 14:55:07 2013 +0100

    power: Better debug in idle_configure()

 plugins/power/gsd-power-manager.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/plugins/power/gsd-power-manager.c b/plugins/power/gsd-power-manager.c
index cbc2b96..91f61d3 100644
--- a/plugins/power/gsd-power-manager.c
+++ b/plugins/power/gsd-power-manager.c
@@ -2645,7 +2645,10 @@ idle_configure (GsdPowerManager *manager)
 
         /* are we inhibited from going idle */
         if (!is_session_active (manager) || is_idle_inhibited) {
-                g_debug ("inhibited or inactive, so using normal state");
+                if (is_idle_inhibited)
+                        g_debug ("inhibited, so using normal state");
+                else
+                        g_debug ("inactive, so using normal state");
                 idle_set_mode (manager, GSD_POWER_IDLE_MODE_NORMAL);
 
                 clear_idle_watch (manager->priv->idle_monitor,


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