diff options
author | Jason Macnak <natsu@google.com> | 2021-11-15 10:48:58 -0800 |
---|---|---|
committer | Jason Macnak <natsu@google.com> | 2021-11-15 10:56:56 -0800 |
commit | 751c8ee01a0bf5aec985713344734e08b43520b5 (patch) | |
tree | 1d17bee7efa0120fb66cb94d779a298002fe70f4 /host-common | |
parent | 84285c7799ec53070fc1b50d3985e9fe071584d2 (diff) | |
download | vulkan-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.h | 7 |
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__); \ |