summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Aillet <jonathan.aillet@iot.bzh>2019-07-18 14:39:11 +0200
committerJonathan Aillet <jonathan.aillet@iot.bzh>2019-07-18 17:31:45 +0200
commit09f002d060078d53e443e0f5806e147e035ac357 (patch)
treef7be5787dde9738c938d3823e1bb134a44f9975c
parente203038e5088f3cc19feef5bca64abe89d8404e6 (diff)
Correct error level for hal-dependencies
Correct error level when a mandatory hal-dependencies is not available. BUG-AGL: SPEC-2652 Change-Id: I053913a83be8124eaac26dd4f2cd28d1e5ff5083 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
-rw-r--r--src/4a-internals-hal/4a-internals-hal-cb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/4a-internals-hal/4a-internals-hal-cb.c b/src/4a-internals-hal/4a-internals-hal-cb.c
index 6afc965..71bf464 100644
--- a/src/4a-internals-hal/4a-internals-hal-cb.c
+++ b/src/4a-internals-hal/4a-internals-hal-cb.c
@@ -1217,10 +1217,10 @@ int InternalHalHandleHalDependencies(afb_api_t apiHandle,
if(halCurrentDeviceToProbe->deviceClass == MANDATORY_PROBED_DEVICE &&
! halCurrentDeviceToProbe->deviceData) {
- AFB_API_WARNING(apiHandle,
- "Mandatory device to probe not found, uid:'%s' and request:'%s'",
- halCurrentDeviceToProbe->uid,
- json_object_get_string(halCurrentDeviceToProbe->requestedDeviceJ));
+ AFB_API_ERROR(apiHandle,
+ "Mandatory device to probe not found, uid:'%s' and request:'%s'",
+ halCurrentDeviceToProbe->uid,
+ json_object_get_string(halCurrentDeviceToProbe->requestedDeviceJ));
return -5;
}
}