summaryrefslogtreecommitdiffstats
path: root/plugins/lib/bluetooth/hal-bt.c
diff options
context:
space:
mode:
authorJonathan Aillet <jonathan.aillet@iot.bzh>2018-09-26 20:23:44 +0200
committerJonathan Aillet <jonathan.aillet@iot.bzh>2018-10-08 15:57:27 +0200
commit40b5fca57111f5dba5487b8e7d5160c68afdb830 (patch)
tree2174bb29a258ce80ee9d7497c3c704ee4f470090 /plugins/lib/bluetooth/hal-bt.c
parent44ba7ada737c6a2725e70c72948fc1abcb8c613b (diff)
hal-bt: Use plugin name definition in prints
Use hal-bluetooth plugin name definition in prints instead of plain text. Change-Id: Idafbead6bdc510115ac0f7ebc06cfad79ceeceed Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to 'plugins/lib/bluetooth/hal-bt.c')
-rw-r--r--plugins/lib/bluetooth/hal-bt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/lib/bluetooth/hal-bt.c b/plugins/lib/bluetooth/hal-bt.c
index a145df3..1fb4180 100644
--- a/plugins/lib/bluetooth/hal-bt.c
+++ b/plugins/lib/bluetooth/hal-bt.c
@@ -61,7 +61,7 @@ CTLP_INIT(plugin, callbacks)
json_object *actionsToAdd, *returnedJ, *halMixerJ, *halOrigCaptureJ, *halNewCaptureJ, *halOrigStreamJ, *halNewStreamJ, *btCaptureJ, *btCaptureParamsJ, *btStreamJ;
- AFB_ApiInfo(plugin->api, "Plugin initialization of HAL-BT plugin");
+ AFB_ApiInfo(plugin->api, "Plugin initialization of %s plugin", HAL_BT_PLUGIN_NAME);
if(AFB_RequireApi(plugin->api, BT_MANAGER_API, 1)) {
AFB_ApiWarning(plugin->api, "Didn't succeed to require %s api, bluetooth is disable because not reachable", BT_MANAGER_API);
@@ -105,7 +105,7 @@ CTLP_INIT(plugin, callbacks)
if((! json_object_is_type(plugin->paramsJ, json_type_object)) ||
(wrap_json_unpack(plugin->paramsJ, "{s:i, s:s}", "channels", &btChannelsNumber, "zone", &btStreamZone))) {
- AFB_ApiError(plugin->api, "Can't get HAL-BT plugin parameters from json ('%s')", json_object_get_string(plugin->paramsJ));
+ AFB_ApiError(plugin->api, "Can't get %s plugin parameters from json ('%s')", HAL_BT_PLUGIN_NAME, json_object_get_string(plugin->paramsJ));
return -5;
}
@@ -203,7 +203,7 @@ CTLP_INIT(plugin, callbacks)
localHalBtPluginData.halBtPluginEnabled = 1;
- AFB_ApiNotice(plugin->api, "Plugin initialization of HAL-BT plugin correctly done");
+ AFB_ApiNotice(plugin->api, "Plugin initialization of %s plugin correctly done", HAL_BT_PLUGIN_NAME);
return 0;
}