From: Hyeongsik Min Date: Tue, 13 Jun 2017 04:12:05 +0000 (+0900) Subject: Remove unnecessary EOL in log message X-Git-Tag: submit/tizen/20170613.105843^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f7bb29309bbfc320b6824c92435a7cc0760fe45e;p=platform%2Fcore%2Fapi%2Fperipheral-io.git Remove unnecessary EOL in log message Change-Id: Ibd4a653e4ef1b77a13c0efbb866ade6249db04ff Signed-off-by: Hyeongsik Min --- diff --git a/src/peripheral_gdbus_adc.c b/src/peripheral_gdbus_adc.c index e9a2513..f52c0b8 100644 --- a/src/peripheral_gdbus_adc.c +++ b/src/peripheral_gdbus_adc.c @@ -65,7 +65,7 @@ int peripheral_gdbus_adc_read(unsigned int device, unsigned int channel, int *da &ret, NULL, &error) == FALSE) { - _E("Error in %s() : %s\n", __func__, error->message); + _E("Error in %s() : %s", __func__, error->message); g_error_free(error); return PERIPHERAL_ERROR_UNKNOWN; } diff --git a/src/peripheral_gdbus_gpio.c b/src/peripheral_gdbus_gpio.c index 6550360..1c1fb1c 100644 --- a/src/peripheral_gdbus_gpio.c +++ b/src/peripheral_gdbus_gpio.c @@ -74,8 +74,6 @@ void handle_gpio_changed( if (!gpio) return; - _D("gpio=%d state=%d", pin, state); - peripheral_gpio_isr_callback(pin); } @@ -93,7 +91,7 @@ int peripheral_gdbus_gpio_open(peripheral_gpio_h gpio) &ret, NULL, &error) == FALSE) { - _E("Error in %s() : %s\n", __func__, error->message); + _E("Error in %s() : %s", __func__, error->message); g_error_free(error); return PERIPHERAL_ERROR_UNKNOWN; } @@ -114,7 +112,7 @@ int peripheral_gdbus_gpio_close(peripheral_gpio_h gpio) &ret, NULL, &error) == FALSE) { - _E("Error in %s() : %s\n", __func__, error->message); + _E("Error in %s() : %s", __func__, error->message); g_error_free(error); return PERIPHERAL_ERROR_UNKNOWN; } @@ -137,7 +135,7 @@ int peripheral_gdbus_gpio_get_direction(peripheral_gpio_h gpio, peripheral_gpio_ &ret, NULL, &error) == FALSE) { - _E("Error in %s() : %s\n", __func__, error->message); + _E("Error in %s() : %s", __func__, error->message); g_error_free(error); } @@ -163,7 +161,7 @@ int peripheral_gdbus_gpio_set_direction(peripheral_gpio_h gpio, peripheral_gpio_ &ret, NULL, &error) == FALSE) { - _E("Error in %s() : %s\n", __func__, error->message); + _E("Error in %s() : %s", __func__, error->message); g_error_free(error); return PERIPHERAL_ERROR_UNKNOWN; } @@ -185,7 +183,7 @@ int peripheral_gdbus_gpio_read(peripheral_gpio_h gpio, int *value) &ret, NULL, &error) == FALSE) { - _E("Error in %s() : %s\n", __func__, error->message); + _E("Error in %s() : %s", __func__, error->message); g_error_free(error); return PERIPHERAL_ERROR_UNKNOWN; } @@ -207,7 +205,7 @@ int peripheral_gdbus_gpio_write(peripheral_gpio_h gpio, int value) &ret, NULL, &error) == FALSE) { - _E("Error in %s() : %s\n", __func__, error->message); + _E("Error in %s() : %s", __func__, error->message); g_error_free(error); return PERIPHERAL_ERROR_UNKNOWN; } @@ -230,7 +228,7 @@ int peripheral_gdbus_gpio_get_edge_mode(peripheral_gpio_h gpio, peripheral_gpio_ &ret, NULL, &error) == FALSE) { - _E("Error in %s() : %s\n", __func__, error->message); + _E("Error in %s() : %s", __func__, error->message); g_error_free(error); return PERIPHERAL_ERROR_UNKNOWN; } @@ -257,7 +255,7 @@ int peripheral_gdbus_gpio_set_edge_mode(peripheral_gpio_h gpio, peripheral_gpio_ &ret, NULL, &error) == FALSE) { - _E("Error in %s() : %s\n", __func__, error->message); + _E("Error in %s() : %s", __func__, error->message); g_error_free(error); return PERIPHERAL_ERROR_UNKNOWN; } @@ -278,7 +276,7 @@ int peripheral_gdbus_gpio_register_cb(peripheral_gpio_h gpio, gpio_isr_cb callba &ret, NULL, &error) == FALSE) { - _E("Error in %s() : %s\n", __func__, error->message); + _E("Error in %s() : %s", __func__, error->message); g_error_free(error); return PERIPHERAL_ERROR_UNKNOWN; } @@ -299,7 +297,7 @@ int peripheral_gdbus_gpio_unregister_cb(peripheral_gpio_h gpio) &ret, NULL, &error) == FALSE) { - _E("Error in %s() : %s\n", __func__, error->message); + _E("Error in %s() : %s", __func__, error->message); g_error_free(error); return PERIPHERAL_ERROR_UNKNOWN; } diff --git a/src/peripheral_gdbus_i2c.c b/src/peripheral_gdbus_i2c.c index 875df8c..cc3de07 100644 --- a/src/peripheral_gdbus_i2c.c +++ b/src/peripheral_gdbus_i2c.c @@ -67,7 +67,7 @@ int peripheral_gdbus_i2c_open(peripheral_i2c_h i2c, int bus, int address) &ret, NULL, &error) == FALSE) { - _E("Error in %s() : %s\n", __func__, error->message); + _E("Error in %s() : %s", __func__, error->message); g_error_free(error); return PERIPHERAL_ERROR_UNKNOWN; } @@ -88,7 +88,7 @@ int peripheral_gdbus_i2c_close(peripheral_i2c_h i2c) &ret, NULL, &error) == FALSE) { - _E("Error in %s() : %s\n", __func__, error->message); + _E("Error in %s() : %s", __func__, error->message); g_error_free(error); return PERIPHERAL_ERROR_UNKNOWN; } @@ -115,7 +115,7 @@ int peripheral_gdbus_i2c_read(peripheral_i2c_h i2c, uint8_t *data, int length) &ret, NULL, &error) == FALSE) { - _E("Error in %s() : %s\n", __func__, error->message); + _E("Error in %s() : %s", __func__, error->message); g_error_free(error); return PERIPHERAL_ERROR_UNKNOWN; } @@ -158,7 +158,7 @@ int peripheral_gdbus_i2c_write(peripheral_i2c_h i2c, uint8_t *data, int length) &ret, NULL, &error) == FALSE) { - _E("Error in %s() : %s\n", __func__, error->message); + _E("Error in %s() : %s", __func__, error->message); g_error_free(error); return PERIPHERAL_ERROR_UNKNOWN; } @@ -184,7 +184,7 @@ int peripheral_gdbus_i2c_smbus_ioctl(peripheral_i2c_h i2c, uint8_t read_write, u &ret, NULL, &error) == FALSE) { - _E("Error in %s() : %s\n", __func__, error->message); + _E("Error in %s() : %s", __func__, error->message); g_error_free(error); return PERIPHERAL_ERROR_UNKNOWN; } diff --git a/src/peripheral_gdbus_uart.c b/src/peripheral_gdbus_uart.c index a727f1a..81b77c1 100644 --- a/src/peripheral_gdbus_uart.c +++ b/src/peripheral_gdbus_uart.c @@ -66,7 +66,7 @@ int peripheral_gdbus_uart_open(peripheral_uart_h uart, int port) &ret, NULL, &error) == FALSE) { - _E("Error in %s() : %s\n", __func__, error->message); + _E("Error in %s() : %s", __func__, error->message); g_error_free(error); return PERIPHERAL_ERROR_UNKNOWN; } @@ -87,7 +87,7 @@ int peripheral_gdbus_uart_close(peripheral_uart_h uart) &ret, NULL, &error) == FALSE) { - _E("Error in %s() : %s\n", __func__, error->message); + _E("Error in %s() : %s", __func__, error->message); g_error_free(error); return PERIPHERAL_ERROR_UNKNOWN; } @@ -108,7 +108,7 @@ int peripheral_gdbus_uart_flush(peripheral_uart_h uart) &ret, NULL, &error) == FALSE) { - _E("Error in %s() : %s\n", __func__, error->message); + _E("Error in %s() : %s", __func__, error->message); g_error_free(error); return PERIPHERAL_ERROR_UNKNOWN; } @@ -130,7 +130,7 @@ int peripheral_gdbus_uart_set_baudrate(peripheral_uart_h uart, peripheral_uart_b &ret, NULL, &error) == FALSE) { - _E("Error in %s() : %s\n", __func__, error->message); + _E("Error in %s() : %s", __func__, error->message); g_error_free(error); return PERIPHERAL_ERROR_UNKNOWN; } @@ -154,7 +154,7 @@ int peripheral_gdbus_uart_set_mode(peripheral_uart_h uart, peripheral_uart_bytes &ret, NULL, &error) == FALSE) { - _E("Error in %s() : %s\n", __func__, error->message); + _E("Error in %s() : %s", __func__, error->message); g_error_free(error); return PERIPHERAL_ERROR_UNKNOWN; } @@ -177,7 +177,7 @@ int peripheral_gdbus_uart_set_flowcontrol(peripheral_uart_h uart, bool xonxoff, &ret, NULL, &error) == FALSE) { - _E("Error in %s() : %s\n", __func__, error->message); + _E("Error in %s() : %s", __func__, error->message); g_error_free(error); return PERIPHERAL_ERROR_UNKNOWN; } @@ -204,7 +204,7 @@ int peripheral_gdbus_uart_read(peripheral_uart_h uart, uint8_t *data, int length &ret, NULL, &error) == FALSE) { - _E("Error in %s() : %s\n", __func__, error->message); + _E("Error in %s() : %s", __func__, error->message); g_error_free(error); return PERIPHERAL_ERROR_UNKNOWN; } @@ -247,7 +247,7 @@ int peripheral_gdbus_uart_write(peripheral_uart_h uart, uint8_t *data, int lengt &ret, NULL, &error) == FALSE) { - _E("Error in %s() : %s\n", __func__, error->message); + _E("Error in %s() : %s", __func__, error->message); g_error_free(error); return PERIPHERAL_ERROR_UNKNOWN; }