aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/lib/bluetooth
diff options
context:
space:
mode:
authorJonathan Aillet <jonathan.aillet@iot.bzh>2018-09-19 11:18:29 +0200
committerJonathan Aillet <jonathan.aillet@iot.bzh>2018-10-08 15:57:27 +0200
commitdaff7a6ee4900e54dee42f5528a32ef50bd5bcab (patch)
tree88e042d277f255807d7e01dd9eee6f80d75cc6cf /plugins/lib/bluetooth
parent5e00458411e8bbfa146c0f6c256d740830cc0396 (diff)
Remove unnecessary 'function' string in prints
Function's names was printed using '__func__' when calling application framework prints functions. But, as the application framework prints functions already prints them, '__func__' has been removed from print calls to avoid duplicated information. Change-Id: I0dea49a9d84b7ccdbdaecec67ced6c98b5ed26d6 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to 'plugins/lib/bluetooth')
-rw-r--r--plugins/lib/bluetooth/hal-bt.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/lib/bluetooth/hal-bt.c b/plugins/lib/bluetooth/hal-bt.c
index 0e84b3d..1148d21 100644
--- a/plugins/lib/bluetooth/hal-bt.c
+++ b/plugins/lib/bluetooth/hal-bt.c
@@ -57,7 +57,7 @@ CTLP_ONLOAD(plugin, callbacks)
}
if(! (localHalBtPluginData.currentHalData = (struct SpecificHalData *) ctrlConfig->external)) {
- AFB_ApiError(plugin->api, "%s: Can't get current hal controller data", __func__);
+ AFB_ApiError(plugin->api, "Can't get current hal controller data");
return -2;
}
@@ -158,7 +158,7 @@ CTLP_CAPI(init, source, argsJ, queryJ)
(void *) &localHalBtPluginData,
NULL,
0)) {
- AFB_ApiError(source->api, "%s: error while creating verb for bluetooth plugin : '%s'", __func__, HAL_BT_GET_STREAMING_STATUS_VERB);
+ AFB_ApiError(source->api, "Error while creating verb for bluetooth plugin : '%s'", HAL_BT_GET_STREAMING_STATUS_VERB);
return -1;
}
@@ -169,7 +169,7 @@ CTLP_CAPI(init, source, argsJ, queryJ)
(void *) &localHalBtPluginData,
NULL,
0)) {
- AFB_ApiError(source->api, "%s: error while creating verb for bluetooth plugin : '%s'", __func__, HAL_BT_SET_STREAMING_STATUS_VERB);
+ AFB_ApiError(source->api, "Error while creating verb for bluetooth plugin : '%s'", HAL_BT_SET_STREAMING_STATUS_VERB);
return -2;
}
@@ -180,7 +180,7 @@ CTLP_CAPI(init, source, argsJ, queryJ)
(void *) &localHalBtPluginData,
NULL,
0)) {
- AFB_ApiError(source->api, "%s: error while creating verb for bluetooth plugin : '%s'", __func__, HAL_BT_GET_CONNECTED_A2DP_DEVICES_VERB);
+ AFB_ApiError(source->api, "Error while creating verb for bluetooth plugin : '%s'", HAL_BT_GET_CONNECTED_A2DP_DEVICES_VERB);
return -3;
}
@@ -191,7 +191,7 @@ CTLP_CAPI(init, source, argsJ, queryJ)
(void *) &localHalBtPluginData,
NULL,
0)) {
- AFB_ApiError(source->api, "%s: error while creating verb for bluetooth plugin : '%s'", __func__, HAL_BT_GET_SELECTED_A2DP_DEVICE_VERB);
+ AFB_ApiError(source->api, "Error while creating verb for bluetooth plugin : '%s'", HAL_BT_GET_SELECTED_A2DP_DEVICE_VERB);
return -4;
}
@@ -202,7 +202,7 @@ CTLP_CAPI(init, source, argsJ, queryJ)
(void *) &localHalBtPluginData,
NULL,
0)) {
- AFB_ApiError(source->api, "%s: error while creating verb for bluetooth plugin : '%s'", __func__, HAL_BT_SET_SELECTED_A2DP_DEVICE_VERB);
+ AFB_ApiError(source->api, "Error while creating verb for bluetooth plugin : '%s'", HAL_BT_SET_SELECTED_A2DP_DEVICE_VERB);
return -5;
}