projects
/
platform
/
core
/
multimedia
/
media-server.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58742e4
)
Add some define for debug
02/129602/2
author
Haejeong Kim
<backto.kim@samsung.com>
Wed, 17 May 2017 06:50:03 +0000
(15:50 +0900)
committer
hj kim
<backto.kim@samsung.com>
Wed, 17 May 2017 06:50:31 +0000
(06:50 +0000)
Change-Id: I1bf7b5b39b9c4a8869761fc3137b6fe241831bda
src/common/include/media-common-dbg.h
patch
|
blob
|
history
diff --git
a/src/common/include/media-common-dbg.h
b/src/common/include/media-common-dbg.h
index
443e08e
..
df965d3
100755
(executable)
--- a/
src/common/include/media-common-dbg.h
+++ b/
src/common/include/media-common-dbg.h
@@
-74,4
+74,18
@@
LOGD(FONT_COLOR_YELLOW"<LEAVE>"FONT_COLOR_RESET); \
} } while (false)
+#define MS_DBG_RETV_IF(expr, val) do { \
+ if (expr) { \
+ LOGE(FONT_COLOR_RED""FONT_COLOR_RESET); \
+ return (val); \
+ } \
+ } while (0)
+
+#define MS_DBG_RETVM_IF(expr, val, fmt, arg...) do { \
+ if (expr) { \
+ LOGE(FONT_COLOR_RED""fmt""FONT_COLOR_RESET, ##arg); \
+ return (val); \
+ } \
+ } while (0)
+
#endif /*_MEDIA_COMMON_DBG_H_*/