diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-10-27 13:06:02 +0200 |
---|---|---|
committer | Sean Paul <seanpaul@chromium.org> | 2017-10-30 21:59:21 +0100 |
commit | 79a5ad2fdb3cb48e9c4e9d0d7688f0401cdb85d5 (patch) | |
tree | ee9e76850a5f789827e33120e620d1dcfe7be50f /drivers/gpu/drm/drm_print.c | |
parent | gma500: mmu: unmap the correct address (diff) | |
download | linux-79a5ad2fdb3cb48e9c4e9d0d7688f0401cdb85d5.tar.xz linux-79a5ad2fdb3cb48e9c4e9d0d7688f0401cdb85d5.zip |
drm: Enable pr_debug() for drm_printer
pr_debug() is conditionally compiled and requires either
dynamic-debugging to be enabled or for the code to opt-in using #define
DEBUG. Since drm_print provides a central debugging facility using
pr_debug(), make sure it will always produce output.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Rob Clark <robdclark@gmail.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20171027110602.31519-1-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/drm_print.c')
-rw-r--r-- | drivers/gpu/drm/drm_print.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_print.c b/drivers/gpu/drm/drm_print.c index 0b3bf476dc4b..82ff327eb2df 100644 --- a/drivers/gpu/drm/drm_print.c +++ b/drivers/gpu/drm/drm_print.c @@ -23,6 +23,8 @@ * Rob Clark <robdclark@gmail.com> */ +#define DEBUG /* for pr_debug() */ + #include <stdarg.h> #include <linux/seq_file.h> #include <drm/drmP.h> |