Skip to contentSkip to conversation

nvidiafb: Enable debugging messages a Kconfig option

PATCH New Antonino A. Daplas 1 participant 1 message May 9, 2007 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 4/5 nvidiafb: Enable debugging messages a Kconfig option

From: Jean Delvare <[email protected]>

Let the user enable debugging messages in nvidiafb.

---

 drivers/video/Kconfig         |   11 ++++++++++-
 drivers/video/nvidia/nvidia.c |    1 -
 2 files changed, 10 insertions(+), 2 deletions(-)
drivers/video/Kconfig +10 -1
index 6f31842..3606c4f 100644
@@ -795,6 +795,15 @@ config FB_NVIDIA_I2C
 	  independently validate video mode parameters, you should say Y
 	  here.
 
+config FB_NVIDIA_DEBUG
+	bool "Lots of debug output"
+	depends on FB_NVIDIA
+	default n
+	help
+	  Say Y here if you want the nVidia driver to output all sorts
+	  of debugging information to provide to the maintainer when
+	  something goes wrong.
+
 config FB_NVIDIA_BACKLIGHT
 	bool "Support for backlight control"
 	depends on FB_NVIDIA
@@ -834,7 +843,7 @@ config FB_RIVA_I2C
 	  here.
 
 config FB_RIVA_DEBUG
-	bool "Lots of debug output from Riva(nVidia) driver"
+	bool "Lots of debug output"
 	depends on FB_RIVA
 	default n
 	help
drivers/video/nvidia/nvidia.c +0 -1
index f85edf0..41f6365 100644
@@ -37,7 +37,6 @@ #include "nv_type.h"
 #include "nv_proto.h"
 #include "nv_dma.h"
 
-#undef CONFIG_FB_NVIDIA_DEBUG
 #ifdef CONFIG_FB_NVIDIA_DEBUG
 #define NVTRACE          printk
 #else

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/