Skip to contentSkip to conversation

configurable debug info from radeonfb old driver

PATCH In review Michael Iatrou 2 participants 3 messages Aug 13, 2005 – Aug 14, 2005 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configurable debug info from radeonfb old driver

Hi,

Currently, radeonfb old driver always prints debugging informations. This patch makes debug info reporting configurable.

drivers/video/Kconfig 2005-08-14 00:54:10.000000000 +0300 renamed from drivers/video/Kconfig 2005-08-14 00:48:34.000000000 +0300 +9 -0
diff -urN linux-2.6.13-rc6/drivers/video/Kconfig linux-2.6.13-rc6.new/drivers/video/Kconfig
@@ -936,6 +936,15 @@
          There is a product page at
          <http://www.ati.com/na/pages/products/pc/radeon32/index.html>.
 
+config FB_RADEON_OLD_DEBUG
+    bool "Enable debug output from Old Radeon driver"
+    depends on FB_RADEON_OLD
+    default n
+    help
+      Say Y here if you want the Radeon driver to output all sorts
+      of debugging informations to provide to the maintainer when
+      something goes wrong.
+
 config FB_RADEON
        tristate "ATI Radeon display support"
        depends on FB && PCI
drivers/video/radeonfb.c 2005-08-14 00:55:16.000000000 +0300 renamed from drivers/video/radeonfb.c 2005-06-19 14:49:29.000000000 +0300 +5 -1
diff -urN linux-2.6.13-rc6/drivers/video/radeonfb.c linux-2.6.13-rc6.new/drivers/video/radeonfb.c
@@ -80,7 +80,11 @@
 #include <video/radeon.h>
 #include <linux/radeonfb.h>
 
-#define DEBUG  1
+#ifdef CONFIG_FB_RADEON_OLD_DEBUG
+#define DEBUG       1
+#else
+#define DEBUG       0
+#endif
 
 #if DEBUG
 #define RTRACE         printk
Signature · 1 line
 Michael Iatrou
#1 lore raw
Quoted 32 lines · Michael Iatrou

Hi,

Currently, radeonfb old driver always prints debugging informations. This patch makes debug info reporting configurable.

diff -urN linux-2.6.13-rc6/drivers/video/Kconfig linux-2.6.13-rc6.new/drivers/video/Kconfig

drivers/video/Kconfig 2005-08-14 00:54:10.000000000 +0300 renamed from drivers/video/Kconfig 2005-08-14 00:48:34.000000000 +0300 +9 -0
@@ -936,6 +936,15 @@
          There is a product page at
          <http://www.ati.com/na/pages/products/pc/radeon32/index.html>.
 
+config FB_RADEON_OLD_DEBUG
+    bool "Enable debug output from Old Radeon driver"
+    depends on FB_RADEON_OLD
+    default n
+    help
+      Say Y here if you want the Radeon driver to output all sorts
+      of debugging informations to provide to the maintainer when
+      something goes wrong.
+
 config FB_RADEON
        tristate "ATI Radeon display support"
        depends on FB && PCI

diff -urN linux-2.6.13-rc6/drivers/video/radeonfb.c linux-2.6.13-rc6.new/drivers/video/radeonfb.c

drivers/video/radeonfb.c 2005-08-14 00:55:16.000000000 +0300 renamed from drivers/video/radeonfb.c 2005-06-19 14:49:29.000000000 +0300 +0 -0
@@ -80,7 +80,11 @@
 #include <video/radeon.h>
 #include <linux/radeonfb.h>

drivers/video/radeonfb.c 2005-08-14 00:55:16.000000000 +0300 line 90

Quoted 10 lines
drivers/video/radeonfb.c 2005-08-14 00:55:16.000000000 +0300 renamed from drivers/video/radeonfb.c 2005-06-19 14:49:29.000000000 +0300 +5 -1
 
-#define DEBUG  1
+#ifdef CONFIG_FB_RADEON_OLD_DEBUG
+#define DEBUG       1
+#else
+#define DEBUG       0
+#endif
 
 #if DEBUG
 #define RTRACE         printk

That's probably a bit fancier than we really need. How about we just set DEBUG to zero?

#2 lore raw
Quoted 41 lines · Andrew Morton
Quoted 40 lines · Michael Iatrou

Hi,

Currently, radeonfb old driver always prints debugging informations. This patch makes debug info reporting configurable.

diff -urN linux-2.6.13-rc6/drivers/video/Kconfig linux-2.6.13-rc6.new/drivers/video/Kconfig

drivers/video/Kconfig 2005-08-14 00:54:10.000000000 +0300 renamed from drivers/video/Kconfig 2005-08-14 00:48:34.000000000 +0300 +9 -0
@@ -936,6 +936,15 @@
          There is a product page at
          <http://www.ati.com/na/pages/products/pc/radeon32/index.html>.
 
+config FB_RADEON_OLD_DEBUG
+    bool "Enable debug output from Old Radeon driver"
+    depends on FB_RADEON_OLD
+    default n
+    help
+      Say Y here if you want the Radeon driver to output all sorts
+      of debugging informations to provide to the maintainer when
+      something goes wrong.
+
 config FB_RADEON
        tristate "ATI Radeon display support"
        depends on FB && PCI

diff -urN linux-2.6.13-rc6/drivers/video/radeonfb.c linux-2.6.13-rc6.new/drivers/video/radeonfb.c

drivers/video/radeonfb.c 2005-08-14 00:55:16.000000000 +0300 renamed from drivers/video/radeonfb.c 2005-06-19 14:49:29.000000000 +0300 +5 -1
@@ -80,7 +80,11 @@
 #include <video/radeon.h>
 #include <linux/radeonfb.h>
 
-#define DEBUG  1
+#ifdef CONFIG_FB_RADEON_OLD_DEBUG
+#define DEBUG       1
+#else
+#define DEBUG       0
+#endif
 
Quoted 5 lines

drivers/video/radeonfb.c 2005-08-14 00:55:16.000000000 +0300 line 90

Quoted 2 lines
drivers/video/radeonfb.c 2005-08-14 00:55:16.000000000 +0300 renamed from drivers/video/radeonfb.c 2005-06-19 14:49:29.000000000 +0300 +0 -0
 #if DEBUG
 #define RTRACE         printk

That's probably a bit fancier than we really need. How about we just set DEBUG to zero?

That's an option too.

drivers/video/radeonfb.c 2005-08-14 12:58:10.000000000 +0300 renamed from drivers/video/radeonfb.c 2005-06-19 14:49:29.000000000 +0300 +1 -1
diff -urN linux-2.6.13-rc6/drivers/video/radeonfb.c linux-2.6.13-rc6.new/drivers/video/radeonfb.c
@@ -80,7 +80,7 @@
 #include <video/radeon.h>
 #include <linux/radeonfb.h>
 
-#define DEBUG  1
+#define DEBUG  0
 
 #if DEBUG
 #define RTRACE         printk
Signature · 1 line
 Michael Iatrou