2 * Defines some debug macros for smbfs.
5 /* This makes a dentry parent/child name pair. Useful for debugging printk's */
6 #define DENTRY_PATH(dentry) \
7 (dentry)->d_parent->d_name.name,(dentry)->d_name.name
10 * safety checks that should never happen ???
11 * these are normally enabled.
14 # define PARANOIA(f, a...) printk(KERN_NOTICE "%s: " f, __FUNCTION__ , ## a)
16 # define PARANOIA(f, a...) do { ; } while(0)
19 /* lots of debug messages */
20 #ifdef SMBFS_DEBUG_VERBOSE
21 # define VERBOSE(f, a...) printk(KERN_DEBUG "%s: " f, __FUNCTION__ , ## a)
23 # define VERBOSE(f, a...) do { ; } while(0)
27 * "normal" debug messages, but not with a normal DEBUG define ... way
31 #define DEBUG1(f, a...) printk(KERN_DEBUG "%s: " f, __FUNCTION__ , ## a)
33 #define DEBUG1(f, a...) do { ; } while(0)