diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2013-07-16 13:59:17 +0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2013-07-16 13:59:17 +0300 |
commit | 55a7d81123b795a64d5bdf909f421a6e66d4634a (patch) | |
tree | 59d83fc81ebb8efd181d7558ff2169d24d1561dd | |
parent | d8773c56f0bb11910117473aeadd41b4b36116b7 (diff) |
input: Add debug logs for attio connection status in HoG code
-rw-r--r-- | profiles/input/hog.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/profiles/input/hog.c b/profiles/input/hog.c index 93e65668c..cab70e947 100644 --- a/profiles/input/hog.c +++ b/profiles/input/hog.c @@ -647,6 +647,8 @@ static void attio_connected_cb(GAttrib *attrib, gpointer user_data) struct gatt_primary *prim = hogdev->hog_primary; GSList *l; + DBG("HoG connected"); + hogdev->attrib = g_attrib_ref(attrib); if (hogdev->reports == NULL) { @@ -671,6 +673,8 @@ static void attio_disconnected_cb(gpointer user_data) struct hog_device *hogdev = user_data; GSList *l; + DBG("HoG disconnected"); + for (l = hogdev->reports; l; l = l->next) { struct report *r = l->data; |