From daff7a6ee4900e54dee42f5528a32ef50bd5bcab Mon Sep 17 00:00:00 2001 From: Jonathan Aillet Date: Wed, 19 Sep 2018 11:18:29 +0200 Subject: 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 --- plugins/lib/bluetooth/hal-bt.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'plugins') 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; } -- cgit 1.2.3-korg