summaryrefslogtreecommitdiff
path: root/android/health.c
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2014-06-27 18:16:10 +0300
committerSzymon Janc <szymon.janc@tieto.com>2014-06-29 14:17:19 +0200
commit31cee75db5cb21db166f3201d988a497119c8050 (patch)
treefbe8cd8296e451d145c041ded0acfc2addb90077 /android/health.c
parent82a47009208521d42390be81d5cdcfe58ab99b78 (diff)
downloadbluez-31cee75db5cb21db166f3201d988a497119c8050.tar.gz
android/health: Improve debug
Diffstat (limited to 'android/health.c')
-rw-r--r--android/health.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/android/health.c b/android/health.c
index 9c9fce442..79b59fddb 100644
--- a/android/health.c
+++ b/android/health.c
@@ -164,6 +164,8 @@ static void free_health_channel(void *data)
{
struct health_channel *channel = data;
+ DBG("channel %p", channel);
+
if (!channel)
return;
@@ -1147,12 +1149,13 @@ static void mcap_mdl_deleted_cb(struct mcap_mdl *mdl, void *data)
struct health_channel *channel = data;
struct health_device *dev;
- DBG("");
-
if (!channel)
return;
dev = channel->dev;
+
+ DBG("device %p channel %p mdl %p", dev, channel, mdl);
+
/* mdl == NULL means, delete all mdls */
if (!mdl) {
queue_foreach(dev->channels, notify_channel, NULL);
@@ -1270,6 +1273,8 @@ static struct health_channel *connect_channel(struct mcap_mcl *mcl,
struct health_channel *channel = NULL;
bdaddr_t addr;
+ DBG("mcl %p mdepid %u", mcl, mdepid);
+
mcap_mcl_get_addr(mcl, &addr);
/* TODO: Search app for mdepid */
@@ -1568,7 +1573,7 @@ static void get_mdep_cb(sdp_list_t *recs, int err, gpointer user_data)
if (!get_mdep_from_rec(recs->data, mdep->role, mdep->data_type,
&mdep_id)) {
- error("health: no matching MDEP found");
+ error("health: no matching MDEP: %u", channel->mdep_id);
goto fail;
}