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:
Roman Stratiienko 2023-04-14 19:20:28 +03:00 committed by Chromeos LUCI
parent 3af863ad23
commit b23bfa5a70

4
drv.h
View file

@ -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__)