Don't print verbose messages by default
Apply the same logic as ALOGV from cutils/log.h does. Change-Id: Ia372ae760a23ad193c33a9bdb30296122b6d8a3f Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/4432230 Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
This commit is contained in:
parent
3af863ad23
commit
b23bfa5a70
1 changed files with 4 additions and 0 deletions
4
drv.h
4
drv.h
|
|
@ -225,7 +225,11 @@ enum drv_log_level {
|
|||
} while (0)
|
||||
|
||||
#define drv_loge(format, ...) _drv_log(DRV_LOGE, format, ##__VA_ARGS__)
|
||||
#ifdef NDEBUG
|
||||
#define drv_logv(format, ...)
|
||||
#else
|
||||
#define drv_logv(format, ...) _drv_log(DRV_LOGV, format, ##__VA_ARGS__)
|
||||
#endif
|
||||
#define drv_logd(format, ...) _drv_log(DRV_LOGD, format, ##__VA_ARGS__)
|
||||
#define drv_logi(format, ...) _drv_log(DRV_LOGI, format, ##__VA_ARGS__)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue