Skip to contentSkip to conversation

Allow UDF debugging messages to be disabled in the build system

PATCH New Bradley Chapman 1 participant 1 message Oct 9, 2003

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Allow UDF debugging messages to be disabled in the build system

Mr. Fennema, Mr. Boynton,

This patch to the UDF filesystem driver allows you to enable and disable the UDF debugging messages through the build system instead of editing linux/udf_fs.h.

Patch was created against 2.6.0-test7-osdl1 but it applies cleanly to 2.6.0-test6-mm4. Compile-tested and used on 2.6.0-test7-osdl1.

Please apply.

Thanks,

Brad Chapman

-----
diff -urN -X /home/bhchapm/source/dontdiff include/linux/udf_fs.h.orig include/linux/udf_fs.h

linux/udf_fs.h renamed from linux/udf_fs.h.orig +3 -3
@@ -34,15 +34,15 @@
 #ifndef _UDF_FS_H
 #define _UDF_FS_H 1
 
+#include <linux/config.h>
+
 #define UDF_PREALLOCATE
 #define UDF_DEFAULT_PREALLOC_BLOCKS	8
 
 #define UDFFS_DATE			"2002/11/15"
 #define UDFFS_VERSION			"0.9.7"
 
-#define UDFFS_DEBUG
-
-#ifdef UDFFS_DEBUG
+#ifdef CONFIG_UDF_FS_DEBUG
 #define udf_debug(f, a...) \
 	{ \
 		printk (KERN_DEBUG "UDF-fs DEBUG %s:%d:%s: ", \
Kconfig renamed from Kconfig.orig +11 -0
diff -urN -X /home/bhchapm/source/dontdiff fs/Kconfig.orig fs/Kconfig
@@ -523,6 +523,17 @@
 	  module will be called udf.
 
 	  If unsure, say N.
+	  
+config UDF_FS_DEBUG
+	bool "UDF file system debugging"
+	depends on UDF_FS
+	default y
+	help
+	  Say Y here if you want the UDF filesystem driver to output debugging
+	  messages every time a UDF volume is mounted, accessed or otherwise
+	  used.
+	  
+	  If unsure, say N.
 
 endmenu
 

=====
Brad Chapman

Permanent e-mail: [email protected]

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com