[gnome-bluetooth] lib: Print more debug for killswitches init
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] lib: Print more debug for killswitches init
- Date: Thu, 26 Jul 2012 15:56:00 +0000 (UTC)
commit 06efa521814e8e383e05589093f0980ab2f11a3f
Author: Bastien Nocera <hadess hadess net>
Date: Mon Jul 23 17:48:15 2012 +0100
lib: Print more debug for killswitches init
lib/bluetooth-killswitch.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/lib/bluetooth-killswitch.c b/lib/bluetooth-killswitch.c
index d363cb4..07ae2f0 100644
--- a/lib/bluetooth-killswitch.c
+++ b/lib/bluetooth-killswitch.c
@@ -412,9 +412,14 @@ bluetooth_killswitch_init (BluetoothKillswitch *killswitch)
if (event.op != RFKILL_OP_ADD)
continue;
+ state = event_to_state (event.soft, event.hard);
+
+ g_debug ("Read killswitch of type '%s' (idx=%d): %s",
+ type_to_string (event.type),
+ event.idx, bluetooth_killswitch_state_to_string (state));
+
if (event.type != RFKILL_TYPE_BLUETOOTH)
continue;
- state = event_to_state (event.soft, event.hard);
add_killswitch (killswitch, event.idx, state);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]