summaryrefslogtreecommitdiff
path: root/va/va_trace.h
diff options
context:
space:
mode:
authorElaine Wang <elaine.wang@intel.com>2013-04-18 00:02:10 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2013-06-19 14:33:22 +0800
commit9171d06d687b1074433650ea137819bbdfd20118 (patch)
treeaed669d72537d7e6bd607455db6ab0884338a198 /va/va_trace.h
parent6af4c9bc68fe63bb6e776bc954f07312856217db (diff)
va_trace: refine the log format
Signed-off-by: Elaine Wang <elaine.wang@intel.com> (cherry picked from commit 15a0fca64456d8c7de1f7aca2cb747c4929690cd)
Diffstat (limited to 'va/va_trace.h')
-rw-r--r--va/va_trace.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/va/va_trace.h b/va/va_trace.h
index a211c82..29599ea 100644
--- a/va/va_trace.h
+++ b/va/va_trace.h
@@ -41,17 +41,13 @@ extern int trace_flag;
VA_TRACE_FLAG_SURFACE_ENCODE | \
VA_TRACE_FLAG_SURFACE_JPEG)
-#define VA_TRACE_FUNC(trace_func,...) \
- if (trace_flag) { \
- trace_func(__VA_ARGS__); \
- }
#define VA_TRACE_LOG(trace_func,...) \
- if (trace_flag & VA_TRACE_FLAG_LOG) { \
+ if (trace_flag & VA_TRACE_FLAG_LOG) { \
trace_func(__VA_ARGS__); \
}
-#define VA_TRACE_SURFACE(trace_func,...) \
- if (trace_flag & (VA_TRACE_FLAG_SURFACE | VA_TRACE_FLAG_CODEDBUF)) { \
- trace_func(__VA_ARGS__); \
+#define VA_TRACE_SURFACE(trace_func,...) \
+ if (trace_flag & (VA_TRACE_FLAG_SURFACE | VA_TRACE_FLAG_CODEDBUF)) { \
+ trace_func(__VA_ARGS__); \
}
void va_TraceInit(VADisplay dpy);