From: jino.cho Date: Thu, 18 May 2017 06:28:19 +0000 (+0900) Subject: Fix gdbus error log X-Git-Tag: accepted/tizen/unified/20170602.054034~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F96%2F129796%2F2;p=platform%2Fcore%2Fapi%2Fperipheral-io.git Fix gdbus error log Change-Id: Ib2831b01f1080dba1204940c43f23bd02278d98f Signed-off-by: jino.cho --- diff --git a/src/peripheral_gdbus_pwm.c b/src/peripheral_gdbus_pwm.c index cd4f26e..8b3268c 100644 --- a/src/peripheral_gdbus_pwm.c +++ b/src/peripheral_gdbus_pwm.c @@ -65,7 +65,7 @@ int peripheral_gdbus_pwm_open(peripheral_pwm_h pwm, int device, int channel) &ret, NULL, &error) == FALSE) { - _E("Error in %s() : %s\n", __func__, error->message); + _E("%s", error->message); g_error_free(error); return PERIPHERAL_ERROR_UNKNOWN; } @@ -87,7 +87,7 @@ int peripheral_gdbus_pwm_close(peripheral_pwm_h pwm) &ret, NULL, &error) == FALSE) { - _E("Error in %s() : %s\n", __func__, error->message); + _E("%s", error->message); g_error_free(error); return PERIPHERAL_ERROR_UNKNOWN; } @@ -110,7 +110,7 @@ int peripheral_gdbus_pwm_set_period(peripheral_pwm_h pwm, int period) &ret, NULL, &error) == FALSE) { - _E("Error in %s() : %s\n", __func__, error->message); + _E("%s", error->message); g_error_free(error); return PERIPHERAL_ERROR_UNKNOWN; } @@ -133,7 +133,7 @@ int peripheral_gdbus_pwm_get_period(peripheral_pwm_h pwm, int *period) &ret, NULL, &error) == FALSE) { - _E("Error in %s() : %s\n", __func__, error->message); + _E("%s", error->message); g_error_free(error); return PERIPHERAL_ERROR_UNKNOWN; } @@ -156,7 +156,7 @@ int peripheral_gdbus_pwm_set_duty_cycle(peripheral_pwm_h pwm, int duty_cycle) &ret, NULL, &error) == FALSE) { - _E("Error in %s() : %s\n", __func__, error->message); + _E("%s", error->message); g_error_free(error); return PERIPHERAL_ERROR_UNKNOWN; } @@ -179,7 +179,7 @@ int peripheral_gdbus_pwm_get_duty_cycle(peripheral_pwm_h pwm, int *duty_cycle) &ret, NULL, &error) == FALSE) { - _E("Error in %s() : %s\n", __func__, error->message); + _E("%s", error->message); g_error_free(error); return PERIPHERAL_ERROR_UNKNOWN; } @@ -202,7 +202,7 @@ int peripheral_gdbus_pwm_set_enable(peripheral_pwm_h pwm, bool enable) &ret, NULL, &error) == FALSE) { - _E("Error in %s() : %s\n", __func__, error->message); + _E("%s", error->message); g_error_free(error); return PERIPHERAL_ERROR_UNKNOWN; }