disp: msm: use drm_debug_enabled for printing

Commit 959b077f26a1 ("drm/print: move drm_debug
variable to drm_print.[ch]") moves drm_debug variable used
for debug pring messages. This change updates the msm driver
to leverage drm_debug_enabled for printing logs.

Change-Id: If7ba8e10c2890ef1353097338b15ad391c0d2336
Signed-off-by: Samantha Tran <samtran@codeaurora.org>y
Signed-off-by: Nilaan Gunabalachandran <ngunabal@codeaurora.org>
This commit is contained in:
Samantha Tran
2020-07-28 16:49:46 -07:00
committed by Nilaan Gunabalachandran
parent 790eda032e
commit c5d2fba4e7
2 changed files with 5 additions and 5 deletions

View File

@@ -15,7 +15,7 @@
#define DP_DEBUG(fmt, ...) \
do { \
if (unlikely(drm_debug & DRM_UT_KMS)) \
if (drm_debug_enabled(DRM_UT_KMS)) \
DRM_DEBUG("[msm-dp-debug][%-4d]"fmt, current->pid, \
##__VA_ARGS__); \
else \
@@ -25,7 +25,7 @@
#define DP_INFO(fmt, ...) \
do { \
if (unlikely(drm_debug & DRM_UT_KMS)) \
if (drm_debug_enabled(DRM_UT_KMS)) \
DRM_INFO("[msm-dp-info][%-4d]"fmt, current->pid, \
##__VA_ARGS__); \
else \