[Xfce4-commits] <xfce4-power-manager:nick/upower-session> Add some debug lines.
Nick Schermer
noreply at xfce.org
Fri Mar 23 21:12:01 CET 2012
Updating branch refs/heads/nick/upower-session
to ebeb8ae0d4c33f917453ac713bfbf20593ea3f1d (commit)
from cdb7543fc11febd36de28b8b1fb37c2e14930272 (commit)
commit ebeb8ae0d4c33f917453ac713bfbf20593ea3f1d
Author: Nick Schermer <nick at xfce.org>
Date: Fri Mar 23 21:11:00 2012 +0100
Add some debug lines.
src/xfpm-power.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/src/xfpm-power.c b/src/xfpm-power.c
index b2794f8..0f96cf6 100644
--- a/src/xfpm-power.c
+++ b/src/xfpm-power.c
@@ -524,7 +524,7 @@ xfpm_power_add_device (XfpmPower *power, UpDevice *device)
g_object_get (device, "kind", &kind, NULL);
- XFPM_DEBUG (" device added");
+ XFPM_DEBUG ("Device added %s", up_device_get_object_path (device));
switch (kind)
{
@@ -591,6 +591,8 @@ xfpm_power_remove_device (XfpmPower *power, UpDevice *device)
{
GSList *li;
+ XFPM_DEBUG ("Device removed %s", up_device_get_object_path (device));
+
for (li = power->batteries; li != NULL; li = li->next)
{
if (xfpm_battery_get_device (XFPM_BATTERY (li->data)) == device)
@@ -952,6 +954,8 @@ xfpm_power_suspend (XfpmPower *power,
if (!force && xfpm_power_check_inhibited (power, _("Suspend")))
return TRUE;
+ XFPM_DEBUG ("Ask UPower to Suspend");
+
return up_client_suspend_sync (power->up_client, NULL, error);
}
@@ -964,6 +968,8 @@ xfpm_power_hibernate (XfpmPower *power,
if (!force && xfpm_power_check_inhibited (power, _("Hibernate")))
return TRUE;
+ XFPM_DEBUG ("Ask UPower to Hibernate");
+
return up_client_hibernate_sync (power->up_client, NULL, error);
}
More information about the Xfce4-commits
mailing list