[gnome-power-manager] Only print the DeviceKit-power device data when debugging



commit 88edf36dd14aedb8fd87f82fb375fa8f9a9697af
Author: Richard Hughes <richard hughsie com>
Date:   Tue Sep 8 15:46:53 2009 +0100

    Only print the DeviceKit-power device data when debugging

 src/gpm-engine.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gpm-engine.c b/src/gpm-engine.c
index 78dce27..cff507b 100644
--- a/src/gpm-engine.c
+++ b/src/gpm-engine.c
@@ -703,7 +703,8 @@ gpm_engine_update_composite_device (GpmEngine *engine, DkpDevice *original_devic
 		      "percentage", percentage,
 		      "state", state,
 		      NULL);
-	dkp_device_print (device);
+	if (debug)
+		dkp_device_print (device);
 
 	/* force update of icon */
 	gpm_engine_recalculate_state_icon (engine);



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