aboutsummaryrefslogtreecommitdiffstats
path: root/4a-hal/4a-hal-controllers/4a-hal-controllers-value-handler.c
diff options
context:
space:
mode:
authorJonathan Aillet <jonathan.aillet@iot.bzh>2018-09-19 11:18:29 +0200
committerJonathan Aillet <jonathan.aillet@iot.bzh>2018-10-08 15:57:27 +0200
commitdaff7a6ee4900e54dee42f5528a32ef50bd5bcab (patch)
tree88e042d277f255807d7e01dd9eee6f80d75cc6cf /4a-hal/4a-hal-controllers/4a-hal-controllers-value-handler.c
parent5e00458411e8bbfa146c0f6c256d740830cc0396 (diff)
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 <jonathan.aillet@iot.bzh>
Diffstat (limited to '4a-hal/4a-hal-controllers/4a-hal-controllers-value-handler.c')
-rw-r--r--4a-hal/4a-hal-controllers/4a-hal-controllers-value-handler.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/4a-hal/4a-hal-controllers/4a-hal-controllers-value-handler.c b/4a-hal/4a-hal-controllers/4a-hal-controllers-value-handler.c
index 3ab8178..f66c7ca 100644
--- a/4a-hal/4a-hal-controllers/4a-hal-controllers-value-handler.c
+++ b/4a-hal/4a-hal-controllers/4a-hal-controllers-value-handler.c
@@ -76,7 +76,7 @@ int HalCtlsNormalizeJsonValues(AFB_ApiT apiHandle, struct CtlHalAlsaCtlPropertie
case json_type_null:
case json_type_object:
count = 0;
- AFB_ApiWarning(apiHandle, "%s: can't normalize json values :\n-- %s", __func__, json_object_get_string(toConvertJ));
+ AFB_ApiWarning(apiHandle, "Can't normalize json values :\n-- %s", json_object_get_string(toConvertJ));
*ConvertedJ = json_object_get(toConvertJ);
return -1;
@@ -99,8 +99,7 @@ int HalCtlsNormalizeJsonValues(AFB_ApiT apiHandle, struct CtlHalAlsaCtlPropertie
if(! json_object_is_type(toConvertObjectJ, json_type_int)) {
err += -10*idx;
AFB_ApiWarning(apiHandle,
- "%s: Try normalize an integer control but value sent in json is not an integer : '%s'",
- __func__,
+ "Try normalize an integer control but value sent in json is not an integer : '%s'",
json_object_get_string(toConvertObjectJ));
convertedValueJ = toConvertObjectJ;
break;
@@ -110,8 +109,7 @@ int HalCtlsNormalizeJsonValues(AFB_ApiT apiHandle, struct CtlHalAlsaCtlPropertie
convertedValue = HalCtlsConvertPercentageToValue(initialValue, alsaCtlProperties->minval, alsaCtlProperties->maxval);
if(convertedValue == -INT_MAX) {
AFB_ApiWarning(apiHandle,
- "%s: Can't normalize %i (using min %i et max %i), value set to 0",
- __func__,
+ "Can't normalize %i (using min %i et max %i), value set to 0",
initialValue,
alsaCtlProperties->minval,
alsaCtlProperties->maxval);
@@ -132,8 +130,7 @@ int HalCtlsNormalizeJsonValues(AFB_ApiT apiHandle, struct CtlHalAlsaCtlPropertie
json_object_is_type(toConvertObjectJ, json_type_boolean))) {
err += -1000*idx;
AFB_ApiWarning(apiHandle,
- "%s: Try normalize a boolean control but value sent in json is not a boolean/integer : '%s'",
- __func__,
+ "Try normalize a boolean control but value sent in json is not a boolean/integer : '%s'",
json_object_get_string(toConvertObjectJ));
convertedValueJ = toConvertObjectJ;
break;
@@ -145,8 +142,7 @@ int HalCtlsNormalizeJsonValues(AFB_ApiT apiHandle, struct CtlHalAlsaCtlPropertie
default:
AFB_ApiWarning(apiHandle,
- "%s: Normalization not handle for the alsa control type %i, sending back the object as it was '%s'",
- __func__,
+ "Normalization not handle for the alsa control type %i, sending back the object as it was '%s'",
(int) alsaCtlProperties->type,
json_object_get_string(toConvertJ));
convertedValueJ = toConvertObjectJ;