sensorctl: clean up log macros of sensorctl 81/143581/1
authorkibak.yoon <kibak.yoon@samsung.com>
Thu, 10 Aug 2017 10:23:25 +0000 (19:23 +0900)
committerkibak.yoon <kibak.yoon@samsung.com>
Thu, 10 Aug 2017 10:25:13 +0000 (19:25 +0900)
Change-Id: I7aff53066afae3659700f37ac32a536d39c53c62
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
src/sensorctl/log.h

index 00cefbd..6bb1130 100644 (file)
@@ -39,12 +39,17 @@ do { \
 
 #define _E(fmt, args...) \
 do { \
-       g_print("\x1B[31m" fmt "\033[0m", ##args); \
+       g_print(_RED fmt _RST, ##args); \
 } while (0)
 
 #define _I(fmt, args...) \
 do { \
-       g_print("\x1B[32m" fmt "\033[0m", ##args); \
+       g_print(_GRN fmt _RST, ##args); \
+} while (0)
+
+#define _W(fmt, args...) \
+do { \
+       g_print(_YEL fmt _RST, ##args); \
 } while (0)
 
 #define WARN_IF(expr, fmt, arg...) \