summaryrefslogtreecommitdiff
path: root/src/intel_batchbuffer_dump.c
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2011-09-19 15:07:02 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2011-09-19 15:35:41 +0800
commit196d496aa60ac03233e1341a2b7880ee08861df2 (patch)
tree48d1ca133255a8aed2c8691694f75598659332b7 /src/intel_batchbuffer_dump.c
parent397b303bf5ad4e7c1997d0fa3a879ba5e254ec9d (diff)
silence compiler warning
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Diffstat (limited to 'src/intel_batchbuffer_dump.c')
-rw-r--r--src/intel_batchbuffer_dump.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/intel_batchbuffer_dump.c b/src/intel_batchbuffer_dump.c
index 99c2c1c..1953b22 100644
--- a/src/intel_batchbuffer_dump.c
+++ b/src/intel_batchbuffer_dump.c
@@ -6,6 +6,8 @@
#include "intel_driver.h"
#include "intel_batchbuffer_dump.h"
+#ifdef I965_DEBUG
+
#define BUFFER_FAIL(_count, _len, _name) do { \
fprintf(gout, "Buffer size too small in %s (%d < %d)\n", \
(_name), (_count), (_len)); \
@@ -769,3 +771,5 @@ int intel_batchbuffer_dump(unsigned int *data, unsigned int offset, int count, u
return failures;
}
+
+#endif