summaryrefslogtreecommitdiff
path: root/host-common
diff options
context:
space:
mode:
authorJason Macnak <natsu@google.com>2021-11-15 10:48:58 -0800
committerJason Macnak <natsu@google.com>2021-11-15 10:56:56 -0800
commit751c8ee01a0bf5aec985713344734e08b43520b5 (patch)
tree1d17bee7efa0120fb66cb94d779a298002fe70f4 /host-common
parent84285c7799ec53070fc1b50d3985e9fe071584d2 (diff)
downloadvulkan-cereal-751c8ee01a0bf5aec985713344734e08b43520b5.tar.gz
Always generate optional decoder logging
... that is hidden behind a define so that decoder logging can be enabled without having to re-generate the decoders. Bug: b/189133053 Test: enable logging on Cuttlefish Change-Id: I519188704e77fbdb065adc1d7ef9f0f5f731a60f
Diffstat (limited to 'host-common')
-rw-r--r--host-common/logging.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/host-common/logging.h b/host-common/logging.h
index 22d0581b..b4563e90 100644
--- a/host-common/logging.h
+++ b/host-common/logging.h
@@ -19,6 +19,13 @@
#define GL_LOG(...) ((void)0)
#endif
+//#define ENABLE_DECODER_LOG 1
+#if defined(ENABLE_DECODER_LOG)
+#define DECODER_DEBUG_LOG(...) GFXSTREAM_LOG(stderr, "I", __VA_ARGS__)
+#else
+#define DECODER_DEBUG_LOG(...) ((void)0)
+#endif
+
#define ERR(...) \
do { \
GFXSTREAM_LOG(stderr, "E", __VA_ARGS__); \