log: change file name "peripheral_common.h" to "peripheral_log.h" 67/160267/2
authorSegwon <segwon.han@samsung.com>
Wed, 15 Nov 2017 07:24:33 +0000 (16:24 +0900)
committerSegwon <segwon.han@samsung.com>
Wed, 15 Nov 2017 07:38:33 +0000 (16:38 +0900)
Change-Id: I96c150951c7cb2c5517b305e00909b0bca5cacff
Signed-off-by: Segwon <segwon.han@samsung.com>
include/gdbus/peripheral_gdbus_common.h
include/interface/peripheral_interface_common.h
include/peripheral_common.h [deleted file]
include/peripheral_log.h [new file with mode: 0644]
src/peripheral_gpio.c
src/peripheral_i2c.c
src/peripheral_pwm.c
src/peripheral_spi.c
src/peripheral_uart.c

index 6885a618ad36861b6a38acf2323a5ff321103b19..62b071798befd526e6b649a063265b72d7f1c95c 100644 (file)
@@ -23,8 +23,8 @@
 
 #include "peripheral_io.h"
 #include "peripheral_handle.h"
-#include "peripheral_common.h"
 #include "peripheral_io_gdbus.h"
+#include "peripheral_log.h"
 
 #define PERIPHERAL_GDBUS_INTERFACE     "org.tizen.peripheral_io"
 #define PERIPHERAL_GDBUS_GPIO_PATH     "/Org/Tizen/Peripheral_io/Gpio"
index 8cb2ed80d16713419ae104d477d265bfb9a24d1e..2646cc66f97611d54cf2ab5356da45e5c9968d88 100644 (file)
@@ -23,7 +23,7 @@
 
 #include "peripheral_io.h"
 #include "peripheral_handle.h"
-#include "peripheral_common.h"
+#include "peripheral_log.h"
 
 #define CHECK_ERROR(val) \
        do { \
diff --git a/include/peripheral_common.h b/include/peripheral_common.h
deleted file mode 100644 (file)
index c5702d3..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * Copyright (c) 2016-2017 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef __PERIPHERAL_COMMON_H__
-#define __PERIPHERAL_COMMON_H__
-
-#include <dlog.h>
-
-#undef LOG_TAG
-#define LOG_TAG "PERIPHERAL-IO"
-
-#define _E(fmt, arg...) LOGE(fmt, ##arg)
-#define _D(fmt, arg...) LOGD(fmt, ##arg)
-#define _W(fmt, arg...) LOGW(fmt, ##arg)
-
-#define RET_IF(expr) \
-       do { \
-               if (expr) { \
-                       _E("(%s)", #expr); \
-                       return; \
-               } \
-       } while (0)
-#define RETV_IF(expr, val) \
-       do {\
-               if (expr) { \
-                       _E("(%s)", #expr); \
-                       return (val); \
-               } \
-       } while (0)
-#define RETM_IF(expr, fmt, arg...) \
-       do {\
-               if (expr) { \
-                       _E(fmt, ##arg); \
-                       return; \
-               } \
-       } while (0)
-#define RETVM_IF(expr, val, fmt, arg...) \
-       do {\
-               if (expr) { \
-                       _E(fmt, ##arg); \
-                       return (val); \
-               } \
-       } while (0)
-
-#endif /* __PERIPHERAL_COMMON_H__ */
diff --git a/include/peripheral_log.h b/include/peripheral_log.h
new file mode 100644 (file)
index 0000000..c5702d3
--- /dev/null
@@ -0,0 +1,58 @@
+/*
+ * Copyright (c) 2016-2017 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef __PERIPHERAL_COMMON_H__
+#define __PERIPHERAL_COMMON_H__
+
+#include <dlog.h>
+
+#undef LOG_TAG
+#define LOG_TAG "PERIPHERAL-IO"
+
+#define _E(fmt, arg...) LOGE(fmt, ##arg)
+#define _D(fmt, arg...) LOGD(fmt, ##arg)
+#define _W(fmt, arg...) LOGW(fmt, ##arg)
+
+#define RET_IF(expr) \
+       do { \
+               if (expr) { \
+                       _E("(%s)", #expr); \
+                       return; \
+               } \
+       } while (0)
+#define RETV_IF(expr, val) \
+       do {\
+               if (expr) { \
+                       _E("(%s)", #expr); \
+                       return (val); \
+               } \
+       } while (0)
+#define RETM_IF(expr, fmt, arg...) \
+       do {\
+               if (expr) { \
+                       _E(fmt, ##arg); \
+                       return; \
+               } \
+       } while (0)
+#define RETVM_IF(expr, val, fmt, arg...) \
+       do {\
+               if (expr) { \
+                       _E(fmt, ##arg); \
+                       return (val); \
+               } \
+       } while (0)
+
+#endif /* __PERIPHERAL_COMMON_H__ */
index 5992d16198bb3cd4e2af86c9aa898ce0d1640191..040d862b061728f94ba22950c9b3032ed7e71d6f 100644 (file)
@@ -19,8 +19,8 @@
 
 #include "peripheral_io.h"
 #include "peripheral_gdbus_gpio.h"
-#include "peripheral_common.h"
 #include "peripheral_handle.h"
+#include "peripheral_log.h"
 
 #define PERIPHERAL_IO_GPIO_FEATURE "http://tizen.org/feature/peripheral_io.gpio"
 
index c61374ba902bf71335f4eddee45ecc85fec3796b..e89e401d01dd555b9944217ca8223ada6e05ed5c 100644 (file)
@@ -19,8 +19,8 @@
 
 #include "peripheral_io.h"
 #include "peripheral_gdbus_i2c.h"
-#include "peripheral_common.h"
 #include "peripheral_handle.h"
+#include "peripheral_log.h"
 
 #define PERIPHERAL_IO_I2C_FEATURE "http://tizen.org/feature/peripheral_io.i2c"
 
index 74f807a8272a3857201812247b105db0d1dd2ebe..fb1ed14a934b12cd147aa56c90942f34aa6b2e55 100644 (file)
@@ -19,8 +19,8 @@
 
 #include "peripheral_io.h"
 #include "peripheral_gdbus_pwm.h"
-#include "peripheral_common.h"
 #include "peripheral_handle.h"
+#include "peripheral_log.h"
 
 #define PERIPHERAL_IO_PWM_FEATURE "http://tizen.org/feature/peripheral_io.pwm"
 
index 61d3b793600949ba04746914f5de242fd2a9f6fd..13c2b059456c5eed232a1e231e8f35bdfbfb962d 100644 (file)
@@ -19,8 +19,8 @@
 
 #include "peripheral_io.h"
 #include "peripheral_gdbus_spi.h"
-#include "peripheral_common.h"
 #include "peripheral_handle.h"
+#include "peripheral_log.h"
 
 #define PERIPHERAL_IO_SPI_FEATURE "http://tizen.org/feature/peripheral_io.spi"
 
index d63c100b998c98547a2ad8f4dbd3959653f598e1..d7d3577ba0c4a74280039a2aad6291796c0bc5be 100644 (file)
@@ -19,8 +19,8 @@
 
 #include "peripheral_io.h"
 #include "peripheral_gdbus_uart.h"
-#include "peripheral_common.h"
 #include "peripheral_handle.h"
+#include "peripheral_log.h"
 
 #define PERIPHERAL_IO_UART_FEATURE "http://tizen.org/feature/peripheral_io.uart"