projects
/
platform
/
core
/
system
/
sensord.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c9813c
)
sensorctl: clean up log macros of sensorctl
81/143581/1
author
kibak.yoon
<kibak.yoon@samsung.com>
Thu, 10 Aug 2017 10:23:25 +0000
(19:23 +0900)
committer
kibak.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
patch
|
blob
|
history
diff --git
a/src/sensorctl/log.h
b/src/sensorctl/log.h
index
00cefbd
..
6bb1130
100644
(file)
--- a/
src/sensorctl/log.h
+++ b/
src/sensorctl/log.h
@@
-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...) \