diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /fs/smbfs/smb_debug.h |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'fs/smbfs/smb_debug.h')
-rw-r--r-- | fs/smbfs/smb_debug.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/fs/smbfs/smb_debug.h b/fs/smbfs/smb_debug.h new file mode 100644 index 000000000000..734972b92694 --- /dev/null +++ b/fs/smbfs/smb_debug.h | |||
@@ -0,0 +1,34 @@ | |||
1 | /* | ||
2 | * Defines some debug macros for smbfs. | ||
3 | */ | ||
4 | |||
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 | ||
8 | |||
9 | /* | ||
10 | * safety checks that should never happen ??? | ||
11 | * these are normally enabled. | ||
12 | */ | ||
13 | #ifdef SMBFS_PARANOIA | ||
14 | # define PARANOIA(f, a...) printk(KERN_NOTICE "%s: " f, __FUNCTION__ , ## a) | ||
15 | #else | ||
16 | # define PARANOIA(f, a...) do { ; } while(0) | ||
17 | #endif | ||
18 | |||
19 | /* lots of debug messages */ | ||
20 | #ifdef SMBFS_DEBUG_VERBOSE | ||
21 | # define VERBOSE(f, a...) printk(KERN_DEBUG "%s: " f, __FUNCTION__ , ## a) | ||
22 | #else | ||
23 | # define VERBOSE(f, a...) do { ; } while(0) | ||
24 | #endif | ||
25 | |||
26 | /* | ||
27 | * "normal" debug messages, but not with a normal DEBUG define ... way | ||
28 | * too common name. | ||
29 | */ | ||
30 | #ifdef SMBFS_DEBUG | ||
31 | #define DEBUG1(f, a...) printk(KERN_DEBUG "%s: " f, __FUNCTION__ , ## a) | ||
32 | #else | ||
33 | #define DEBUG1(f, a...) do { ; } while(0) | ||
34 | #endif | ||