mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Allow UDF debugging messages to be disabled in the build system
@ 2003-10-09 17:43 Bradley Chapman
  0 siblings, 0 replies; only message in thread
From: Bradley Chapman @ 2003-10-09 17:43 UTC (permalink / raw)
  To: Ben Fennema, Dave Boynton; +Cc: linux-kernel

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
--- include/linux/udf_fs.h.orig	2003-10-09 18:14:19.935562952 -0400
+++ include/linux/udf_fs.h	2003-10-09 18:16:25.896413992 -0400
@@ -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: ", \
diff -urN -X /home/bhchapm/source/dontdiff fs/Kconfig.orig fs/Kconfig
--- fs/Kconfig.orig	2003-10-09 18:16:48.056045216 -0400
+++ fs/Kconfig	2003-10-09 18:34:53.930967136 -0400
@@ -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: kakadu_croc@yahoo.com

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-10-09 17:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-09 17:43 [PATCH] Allow UDF debugging messages to be disabled in the build system Bradley Chapman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®