Commit 471b1f98 authored by Joe Perches's avatar Joe Perches Committed by Steve French

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: default avatarJoe Perches <joe@perches.com>
Reviewed-by: default avatarJeff Layton <jlayton@redhat.com>
parent bde98197
...@@ -122,9 +122,17 @@ config CIFS_ACL ...@@ -122,9 +122,17 @@ config CIFS_ACL
Allows fetching CIFS/NTFS ACL from the server. The DACL blob Allows fetching CIFS/NTFS ACL from the server. The DACL blob
is handed over to the application/caller. is handed over to the application/caller.
config CIFS_DEBUG
bool "Enable CIFS debugging routines"
default y
depends on CIFS
help
Enabling this option adds helpful debugging messages to
the cifs code which increases the size of the cifs module.
If unsure, say Y.
config CIFS_DEBUG2 config CIFS_DEBUG2
bool "Enable additional CIFS debugging routines" bool "Enable additional CIFS debugging routines"
depends on CIFS depends on CIFS_DEBUG
help help
Enabling this option adds a few more debugging routines Enabling this option adds a few more debugging routines
to the cifs code which slightly increases the size of to the cifs code which slightly increases the size of
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* *
*/ */
#define CIFS_DEBUG /* BB temporary */
#ifndef _H_CIFS_DEBUG #ifndef _H_CIFS_DEBUG
#define _H_CIFS_DEBUG #define _H_CIFS_DEBUG
...@@ -44,7 +43,7 @@ extern int cifsERROR; ...@@ -44,7 +43,7 @@ extern int cifsERROR;
* debug ON * debug ON
* -------- * --------
*/ */
#ifdef CIFS_DEBUG #ifdef CONFIG_CIFS_DEBUG
/* information message: e.g., configuration, major event */ /* information message: e.g., configuration, major event */
#define cifsfyi(fmt, ...) \ #define cifsfyi(fmt, ...) \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment