OSDN Git Service

input: Add debug logs for attio connection status in HoG code
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 16 Jul 2013 10:59:17 +0000 (13:59 +0300)
committerJohan Hedberg <johan.hedberg@intel.com>
Tue, 16 Jul 2013 10:59:17 +0000 (13:59 +0300)
profiles/input/hog.c

index 93e6566..cab70e9 100644 (file)
@@ -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;