X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=fs%2Fcifs%2Fcifs_debug.h;h=c26cd0d2c6d525d64455dfba60e9fdd5b9a4243a;hb=97bf2856c6014879bd04983a3e9dfcdac1e7fe85;hp=32ffebb706ffee8bd56f1f595824ce829c41196a;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/fs/cifs/cifs_debug.h b/fs/cifs/cifs_debug.h index 32ffebb70..c26cd0d2c 100644 --- a/fs/cifs/cifs_debug.h +++ b/fs/cifs/cifs_debug.h @@ -24,8 +24,15 @@ #define _H_CIFS_DEBUG void cifs_dump_mem(char *label, void *data, int length); +#ifdef CONFIG_CIFS_DEBUG2 +void cifs_dump_detail(struct smb_hdr *); +void cifs_dump_mids(struct TCP_Server_Info *); +#endif extern int traceSMB; /* flag which enables the function below */ void dump_smb(struct smb_hdr *, int); +#define CIFS_INFO 0x01 +#define CIFS_RC 0x02 +#define CIFS_TIMER 0x04 /* * debug ON @@ -36,7 +43,7 @@ void dump_smb(struct smb_hdr *, int); /* information message: e.g., configuration, major event */ extern int cifsFYI; -#define cifsfyi(format,arg...) if (cifsFYI) printk(KERN_DEBUG " " __FILE__ ": " format "\n" "" , ## arg) +#define cifsfyi(format,arg...) if (cifsFYI & CIFS_INFO) printk(KERN_DEBUG " " __FILE__ ": " format "\n" "" , ## arg) #define cFYI(button,prspec) if (button) cifsfyi prspec @@ -63,18 +70,4 @@ extern int cifsERROR; #define cifserror(format,arg...) #endif /* _CIFS_DEBUG */ -/* - * statistics - * ---------- - */ -#ifdef _CIFS_STATISTICS -#define INCREMENT(x) ((x)++) -#define DECREMENT(x) ((x)--) -#define HIGHWATERMARK(x,y) x = MAX((x), (y)) -#else -#define INCREMENT(x) -#define DECREMENT(x) -#define HIGHWATERMARK(x,y) -#endif /* _CIFS_STATISTICS */ - #endif /* _H_CIFS_DEBUG */