From 55a7d81123b795a64d5bdf909f421a6e66d4634a Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Tue, 16 Jul 2013 13:59:17 +0300 Subject: [PATCH] input: Add debug logs for attio connection status in HoG code --- profiles/input/hog.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.47.3