summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-09-06 11:58:18 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-09-06 11:58:18 +0000
commit2d881357149c4cec6c109b801cef487ae0955126 (patch)
tree6f5758c475df8f7468b6cbb45e08976d614622e3 /source3
parenta92724025a877241b7ee25d6e9cd7c72bdfa2974 (diff)
downloadsamba-2d881357149c4cec6c109b801cef487ae0955126.tar.gz
samba-2d881357149c4cec6c109b801cef487ae0955126.tar.bz2
samba-2d881357149c4cec6c109b801cef487ae0955126.zip
patch from metze: add a 'vfs' debug class
(This used to be commit 601b56e04fddd9ddfb9be5b0a625d6d279df7f4c)
Diffstat (limited to 'source3')
-rw-r--r--source3/include/debug.h2
-rw-r--r--source3/lib/debug.c1
-rw-r--r--source3/smbd/vfs-wrap.c4
-rw-r--r--source3/smbd/vfs.c4
4 files changed, 10 insertions, 1 deletions
diff --git a/source3/include/debug.h b/source3/include/debug.h
index a926143701..4b0b4b1ac4 100644
--- a/source3/include/debug.h
+++ b/source3/include/debug.h
@@ -92,7 +92,7 @@ extern int DEBUGLEVEL;
#define DBGC_SAM 9
#define DBGC_AUTH 10
#define DBGC_WINBIND 11
-
+#define DBGC_VFS 12
/* So you can define DBGC_CLASS before including debug.h */
#ifndef DBGC_CLASS
diff --git a/source3/lib/debug.c b/source3/lib/debug.c
index c8a4721bce..f4f3ee2f9f 100644
--- a/source3/lib/debug.c
+++ b/source3/lib/debug.c
@@ -156,6 +156,7 @@ static const char *default_classname_table[] = {
"sam", /* DBGC_SAM */
"auth", /* DBGC_AUTH */
"winbind", /* DBGC_WINBIND */
+ "vfs", /* DBGC_VFS */
NULL
};
diff --git a/source3/smbd/vfs-wrap.c b/source3/smbd/vfs-wrap.c
index 394086dc07..6878a42b48 100644
--- a/source3/smbd/vfs-wrap.c
+++ b/source3/smbd/vfs-wrap.c
@@ -20,6 +20,10 @@
#include "includes.h"
+#undef DBGC_CLASS
+#define DBGC_CLASS DBGC_VFS
+
+
/* Check for NULL pointer parameters in vfswrap_* functions */
/* We don't want to have NULL function pointers lying around. Someone
diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c
index 686499288d..6869c61861 100644
--- a/source3/smbd/vfs.c
+++ b/source3/smbd/vfs.c
@@ -24,6 +24,10 @@
#include "includes.h"
+#undef DBGC_CLASS
+#define DBGC_CLASS DBGC_VFS
+
+
/* Some structures to help us initialise the vfs operations table */
struct vfs_syminfo {