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
vanhempi 790eda032e
commit c5d2fba4e7
2 muutettua tiedostoa jossa 5 lisäystä ja 5 poistoa

Näytä tiedosto

@@ -49,7 +49,7 @@
*/
#define SDE_DEBUG(fmt, ...) \
do { \
if (unlikely(drm_debug & DRM_UT_KMS)) \
if (drm_debug_enabled(DRM_UT_KMS)) \
DRM_DEBUG(fmt, ##__VA_ARGS__); \
else \
pr_debug(fmt, ##__VA_ARGS__); \
@@ -61,7 +61,7 @@
*/
#define SDE_INFO(fmt, ...) \
do { \
if (unlikely(drm_debug & DRM_UT_KMS)) \
if (drm_debug_enabled(DRM_UT_KMS)) \
DRM_INFO(fmt, ##__VA_ARGS__); \
else \
pr_info(fmt, ##__VA_ARGS__); \
@@ -73,7 +73,7 @@
*/
#define SDE_DEBUG_DRIVER(fmt, ...) \
do { \
if (unlikely(drm_debug & DRM_UT_DRIVER)) \
if (drm_debug_enabled(DRM_UT_DRIVER)) \
DRM_ERROR(fmt, ##__VA_ARGS__); \
else \
pr_debug(fmt, ##__VA_ARGS__); \