summaryrefslogtreecommitdiffstats
path: root/ahl-binding/ahl-config.c
diff options
context:
space:
mode:
authorTai Vuong <tvuong@audiokinetic.com>2017-12-22 15:08:51 -0500
committerTai Vuong <tvuong@audiokinetic.com>2018-01-03 21:57:23 +0000
commitf103d3380ee23dcce40c4a34b3517c35a7d67b29 (patch)
tree89790ee33ec37f1cfea43dc92b3ec3bf98f53e48 /ahl-binding/ahl-config.c
parent8962ec639b9f8547b8161f7688cd5ed4e8094254 (diff)
Several improvement on AHL error messages
This required a lot of changes in the code, please review carefully and decide if you want to include now or after CES Bug-AGL: SPEC-1207 Change-Id: If1aacecdd2aa9afd3ce4314c3b6334f9334faff4 Signed-off-by: Tai Vuong <tvuong@audiokinetic.com>
Diffstat (limited to 'ahl-binding/ahl-config.c')
-rw-r--r--ahl-binding/ahl-config.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/ahl-binding/ahl-config.c b/ahl-binding/ahl-config.c
index 42c836d..0bd16f2 100644
--- a/ahl-binding/ahl-config.c
+++ b/ahl-binding/ahl-config.c
@@ -147,6 +147,7 @@ int ParseHLBConfig() {
pHAL = (char *)json_object_get_string(jHAL);
char * pHALName = g_strdup( pHAL );
g_ptr_array_add( g_AHLCtx.policyCtx.pHALList, pHALName );
+ AFB_INFO("High-level binding add dependency on HAL: %s", pHALName);
// Set dependency on HAL specified
err = afb_daemon_require_api_v2(pHAL,1) ;
@@ -183,7 +184,10 @@ int ParseHLBConfig() {
if (err) {
AFB_ERROR("Invalid audio role configuration : %s", json_object_to_json_string(jAudioRole));
return AHL_FAIL;
- }
+ }
+
+ AFB_DEBUG("Parsing configuration audio role: %s", pRoleName);
+
if (jOutputDevices)
{
json_type jTypeOutputDevices = json_object_get_type(jOutputDevices);
@@ -224,7 +228,7 @@ int ParseHLBConfig() {
if (iNumInDevices) {
err = EnumerateDevices(jInputDevices,pRoleName,ENDPOINTTYPE_SOURCE,pRoleInfo->pSourceEndpoints);
if (err) {
- AFB_ERROR("Invalid input devices : %s", json_object_to_json_string(jInputDevices));
+ AFB_ERROR("Invalid input devices for role %s : %s", pRoleName, json_object_to_json_string(jInputDevices));
return AHL_FAIL;
}
}
@@ -233,7 +237,7 @@ int ParseHLBConfig() {
if (iNumOutDevices) {
err = EnumerateDevices(jOutputDevices,pRoleName,ENDPOINTTYPE_SINK,pRoleInfo->pSinkEndpoints);
if (err) {
- AFB_ERROR("Invalid output devices : %s", json_object_to_json_string(jOutputDevices));
+ AFB_ERROR("Invalid output devices for role %s: %s", pRoleName, json_object_to_json_string(jOutputDevices));
return AHL_FAIL;
}
}