diff options
author | Eric Caruso <ejcaruso@chromium.org> | 2018-04-09 16:24:05 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-04-10 19:13:00 -0700 |
commit | 21ae3c1399e1bd2ec9d25c372fdd83d1770b2c89 (patch) | |
tree | 6f691f7e914e6d1ff6646878619f304a7db9ec7e | |
parent | f02fd73fffe7a2dd848abe2b4ac5070f7261af7a (diff) | |
download | platform_external_libbrillo-21ae3c1399e1bd2ec9d25c372fdd83d1770b2c89.tar.gz platform_external_libbrillo-21ae3c1399e1bd2ec9d25c372fdd83d1770b2c89.tar.bz2 platform_external_libbrillo-21ae3c1399e1bd2ec9d25c372fdd83d1770b2c89.zip |
libbrillo: use DCHECK_IS_ON() rather than DEBUG_MODE
The DEBUG_MODE symbol is gone in the new libchrome.
BUG=b:37434548
TEST=emerge
Change-Id: Ic31ca0eb9f9ee78ead1d66ec8f08edbd994e6b3a
Reviewed-on: https://chromium-review.googlesource.com/1003517
Commit-Ready: Eric Caruso <ejcaruso@chromium.org>
Tested-by: Eric Caruso <ejcaruso@chromium.org>
Reviewed-by: Dan Erat <derat@chromium.org>
-rw-r--r-- | brillo/location_logging.h | 11 |
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_ |