diff options
author | Joe Perches <joe@perches.com> | 2012-12-05 15:42:58 -0500 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2012-12-05 15:58:36 -0500 |
commit | 471b1f98719a8e8f34f3a696d488e50754f8cf73 (patch) | |
tree | d8982249d05ffc79299de08bee775b49423963c7 /fs/cifs | |
parent | bde98197310fd085ee4bb00ab310abcbe55b0664 (diff) |
cifs: Add CONFIG_CIFS_DEBUG and rename use of CIFS_DEBUG
This can reduce the size of the module by ~120KB which
could be useful for embedded systems.
$ size fs/cifs/built-in.o*
text data bss dec hex filename
388567 34459 100440 523466 7fcca fs/cifs/built-in.o.new
495970 34599 117904 648473 9e519 fs/cifs/built-in.o.old
Signed-off-by: Joe Perches <joe@perches.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Diffstat (limited to 'fs/cifs')
-rw-r--r-- | fs/cifs/Kconfig | 10 | ||||
-rw-r--r-- | fs/cifs/cifs_debug.h | 3 |
2 files changed, 10 insertions, 3 deletions
diff --git a/fs/cifs/Kconfig b/fs/cifs/Kconfig index 2075ddfffa7..21ff76c22a1 100644 --- a/fs/cifs/Kconfig +++ b/fs/cifs/Kconfig | |||
@@ -122,9 +122,17 @@ config CIFS_ACL | |||
122 | Allows fetching CIFS/NTFS ACL from the server. The DACL blob | 122 | Allows fetching CIFS/NTFS ACL from the server. The DACL blob |
123 | is handed over to the application/caller. | 123 | is handed over to the application/caller. |
124 | 124 | ||
125 | config CIFS_DEBUG | ||
126 | bool "Enable CIFS debugging routines" | ||
127 | default y | ||
128 | depends on CIFS | ||
129 | help | ||
130 | Enabling this option adds helpful debugging messages to | ||
131 | the cifs code which increases the size of the cifs module. | ||
132 | If unsure, say Y. | ||
125 | config CIFS_DEBUG2 | 133 | config CIFS_DEBUG2 |
126 | bool "Enable additional CIFS debugging routines" | 134 | bool "Enable additional CIFS debugging routines" |
127 | depends on CIFS | 135 | depends on CIFS_DEBUG |
128 | help | 136 | help |
129 | Enabling this option adds a few more debugging routines | 137 | Enabling this option adds a few more debugging routines |
130 | to the cifs code which slightly increases the size of | 138 | to the cifs code which slightly increases the size of |
diff --git a/fs/cifs/cifs_debug.h b/fs/cifs/cifs_debug.h index 4d12fe48fb5..86e92ef2abc 100644 --- a/fs/cifs/cifs_debug.h +++ b/fs/cifs/cifs_debug.h | |||
@@ -18,7 +18,6 @@ | |||
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 | * | 19 | * |
20 | */ | 20 | */ |
21 | #define CIFS_DEBUG /* BB temporary */ | ||
22 | 21 | ||
23 | #ifndef _H_CIFS_DEBUG | 22 | #ifndef _H_CIFS_DEBUG |
24 | #define _H_CIFS_DEBUG | 23 | #define _H_CIFS_DEBUG |
@@ -44,7 +43,7 @@ extern int cifsERROR; | |||
44 | * debug ON | 43 | * debug ON |
45 | * -------- | 44 | * -------- |
46 | */ | 45 | */ |
47 | #ifdef CIFS_DEBUG | 46 | #ifdef CONFIG_CIFS_DEBUG |
48 | 47 | ||
49 | /* information message: e.g., configuration, major event */ | 48 | /* information message: e.g., configuration, major event */ |
50 | #define cifsfyi(fmt, ...) \ | 49 | #define cifsfyi(fmt, ...) \ |