aboutsummaryrefslogtreecommitdiffstats
path: root/brillo/location_logging.h
diff options
context:
space:
mode:
Diffstat (limited to 'brillo/location_logging.h')
-rw-r--r--brillo/location_logging.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/brillo/location_logging.h b/brillo/location_logging.h
index bc3baf0..1a9929b 100644
--- a/brillo/location_logging.h
+++ b/brillo/location_logging.h
@@ -17,8 +17,13 @@
LAZY_STREAM(VLOG_LOC_STREAM(from_here, verbose_level), \
VLOG_IS_ON(verbose_level))
-#define DVLOG_LOC(from_here, verbose_level) \
- LAZY_STREAM(VLOG_LOC_STREAM(from_here, verbose_level), \
- ::logging::DEBUG_MODE && VLOG_IS_ON(verbose_level))
+#if DCHECK_IS_ON()
+
+#define DVLOG_LOC(from_here, verbose_level) VLOG_LOC(from_here, verbose_level)
+
+#else // DCHECK_IS_ON()
+
+#define DVLOG_LOC(from_here, verbose_level) EAT_STREAM_PARAMETERS
+#endif // DCHECK_IS_ON()
#endif // LIBBRILLO_BRILLO_LOCATION_LOGGING_H_