Skip to content

Commit 647f2e7

Browse files
Jean DelvareLinus Torvalds
authored andcommitted
nvidiafb: Enable debugging messages a Kconfig option
Let the user enable debugging messages in nvidiafb. Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Antonino Daplas <adaplas@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 213b8a9 commit 647f2e7

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

‎drivers/video/Kconfig‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -796,6 +796,15 @@ config FB_NVIDIA_I2C
796796
independently validate video mode parameters, you should say Y
797797
here.
798798

799+
config FB_NVIDIA_DEBUG
800+
bool "Lots of debug output"
801+
depends on FB_NVIDIA
802+
default n
803+
help
804+
Say Y here if you want the nVidia driver to output all sorts
805+
of debugging information to provide to the maintainer when
806+
something goes wrong.
807+
799808
config FB_NVIDIA_BACKLIGHT
800809
bool "Support for backlight control"
801810
depends on FB_NVIDIA
@@ -835,7 +844,7 @@ config FB_RIVA_I2C
835844
here.
836845

837846
config FB_RIVA_DEBUG
838-
bool "Lots of debug output from Riva(nVidia) driver"
847+
bool "Lots of debug output"
839848
depends on FB_RIVA
840849
default n
841850
help

‎drivers/video/nvidia/nvidia.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
#include "nv_proto.h"
3838
#include "nv_dma.h"
3939

40-
#undef CONFIG_FB_NVIDIA_DEBUG
4140
#ifdef CONFIG_FB_NVIDIA_DEBUG
4241
#define NVTRACE printk
4342
#else

0 commit comments

Comments
 (0)