summaryrefslogtreecommitdiff
path: root/tools/emulator/opengl/shared/OpenglCodecCommon/ErrorLog.h
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@android.com>2011-08-23 16:59:35 +0200
committerDavid 'Digit' Turner <digit@android.com>2011-08-24 16:06:21 +0200
commit47cbdfb29145a2cbaec31b657f6c4cfef10dbd02 (patch)
treecb12444d7ab23182be99317b2226eb4e05421810 /tools/emulator/opengl/shared/OpenglCodecCommon/ErrorLog.h
parentcecb6a0e36bbbf85843b50bb1c9e2f8635e5ffe3 (diff)
emulator: opengl: remove debug traces.
You can still re-enable them by uncommenting one line in development/tools/emulator/opengl/Android.mk Change-Id: Ie0a640b6f3359b437aba40b124da0892defb00ef
Diffstat (limited to 'tools/emulator/opengl/shared/OpenglCodecCommon/ErrorLog.h')
-rw-r--r--tools/emulator/opengl/shared/OpenglCodecCommon/ErrorLog.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/tools/emulator/opengl/shared/OpenglCodecCommon/ErrorLog.h b/tools/emulator/opengl/shared/OpenglCodecCommon/ErrorLog.h
index 8502bb0e5..5e9c7b386 100644
--- a/tools/emulator/opengl/shared/OpenglCodecCommon/ErrorLog.h
+++ b/tools/emulator/opengl/shared/OpenglCodecCommon/ErrorLog.h
@@ -19,11 +19,19 @@
#if (HAVE_ANDROID_OS == 1)
# include <cutils/log.h>
# define ERR(...) LOGE(__VA_ARGS__)
-# define DBG(...) LOGD(__VA_ARGS__)
+# ifdef EMUGL_DEBUG
+# define DBG(...) LOGD(__VA_ARGS__)
+# else
+# define DBG(...) ((void)0)
+# endif
#else
# include <stdio.h>
# define ERR(...) fprintf(stderr, __VA_ARGS__)
-# define DBG(...) fprintf(stderr, __VA_ARGS__)
+# ifdef EMUGL_DEBUG
+# define DBG(...) fprintf(stderr, __VA_ARGS__)
+# else
+# define DBG(...) ((void)0)
+# endif
#endif
#endif