From 40b5fca57111f5dba5487b8e7d5160c68afdb830 Mon Sep 17 00:00:00 2001 From: Jonathan Aillet Date: Wed, 26 Sep 2018 20:23:44 +0200 Subject: 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 --- plugins/lib/bluetooth/hal-bt.c | 6 +++--- 1 file 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; } -- cgit 1.2.3-korg