From 0c575e46ec7eacb90709525fadf47e80d236b064 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Fri, 12 Jul 2013 12:25:32 +0300 Subject: [PATCH] input: Add some extra debug statements to clarify connection flow --- profiles/input/device.c | 6 ++++++ profiles/input/server.c | 2 ++ 2 files changed, 8 insertions(+) diff --git a/profiles/input/device.c b/profiles/input/device.c index 7c3130c1b..57667cc0e 100644 --- a/profiles/input/device.c +++ b/profiles/input/device.c @@ -728,6 +728,8 @@ int input_device_connect(struct btd_service *service) { struct input_device *idev; + DBG(""); + idev = btd_service_get_user_data(service); if (idev->ctrl_io) @@ -744,6 +746,8 @@ int input_device_disconnect(struct btd_service *service) struct input_device *idev; int err; + DBG(""); + idev = btd_service_get_user_data(service); err = connection_disconnect(idev, 0); @@ -931,6 +935,8 @@ int input_device_set_channel(const bdaddr_t *src, const bdaddr_t *dst, int psm, { struct input_device *idev = find_device(src, dst); + DBG("idev %p psm %d", idev, psm); + if (!idev) return -ENOENT; diff --git a/profiles/input/server.c b/profiles/input/server.c index 5c98573bd..65631e6b8 100644 --- a/profiles/input/server.c +++ b/profiles/input/server.c @@ -156,6 +156,8 @@ static void confirm_event_cb(GIOChannel *chan, gpointer user_data) char addr[18]; guint ret; + DBG(""); + bt_io_get(chan, &err, BT_IO_OPT_SOURCE_BDADDR, &src, BT_IO_OPT_DEST_BDADDR, &dst, -- 2.47.3