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:

committed by
Nilaan Gunabalachandran

parent
790eda032e
commit
c5d2fba4e7
@@ -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 \
|
||||
|
Reference in New Issue
Block a user