diff --git a/android/health.c b/android/health.c
index 183608b..f45ae51 100644
--- a/android/health.c
+++ b/android/health.c
goto fail;
if (bt_adapter_add_record(rec, SVC_HINT_HEALTH) < 0) {
- error("Failed to register HEALTH record");
+ error("health: Failed to register HEALTH record");
goto fail;
}
* multile MDEP configurations ?
*/
if (update_sdp_record(app) < 0) {
- error("Error creating HDP SDP record");
+ error("health: HDP SDP record preparation failed");
status = HAL_STATUS_FAILED;
goto fail;
}
*/
if (channel->type != type) {
/* TODO: abort mdl */
- error("abort, channel-type requested %d, preferred %d not same",
+ error("health: channel type requested %d preferred %d not same",
channel->type, type);
goto fail;
}
DBG("");
if (err) {
- error("error creating MCL : %s", err->message);
+ error("health: error creating MCL : %s", err->message);
goto fail;
}
channel->dev->mcl = mcap_mcl_ref(mcl);
channel->dev->mcl_conn = true;
- DBG("MCL connected");
+ info("MCL connected");
ret = mcap_mcl_set_cb(channel->dev->mcl, channel, &gerr,
MCAP_MDL_CB_CONNECTED, mcap_mdl_connected_cb,
MCAP_MDL_CB_REMOTE_RECONN_REQ, mcap_mdl_reconn_req_cb,
MCAP_MDL_CB_INVALID);
if (!ret) {
- error("error setting mdl callbacks on mcl");
+ error("health: error setting mdl callbacks on mcl");
if (gerr)
g_error_free(gerr);
DBG("");
if (err < 0 || !recs) {
- error("Error getting remote SDP records");
+ error("health: Error getting remote SDP records");
goto fail;
}
if (get_ccpsm(recs, &channel->dev->ccpsm) < 0) {
- error("Can't get remote PSM for control channel");
+ error("health: Can't get remote PSM for control channel");
goto fail;
}
if (get_dcpsm(recs, &channel->dev->dcpsm) < 0) {
- error("Can't get remote PSM for data channel");
+ error("health: Can't get remote PSM for data channel");
goto fail;
}
if (!mcap_create_mcl(mcap, &channel->dev->dst, channel->dev->ccpsm,
create_mcl_cb, channel, NULL, &gerr)) {
- error("error creating mcl %s", gerr->message);
+ error("health: error creating mcl %s", gerr->message);
if (gerr)
g_error_free(gerr);
if (!queue_length(dev->channels)) {
if (channel->type != CHANNEL_TYPE_RELIABLE) {
- error("error, first data shannel should be reliable");
+ error("health: first data shannel should be reliable");
goto fail;
}
}
if (!dev->mcl) {
if (connect_mcl(channel) < 0) {
- error("health:error retrieving HDP SDP record");
+ error("health: error retrieving HDP SDP record");
goto fail;
}
} else {
NULL, &err);
if (!mcap) {
- error("Error creating MCAP instance : %s", err->message);
+ error("health: MCAP instance creation failed %s", err->message);
g_error_free(err);
return false;
}