summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2002-09-09 21:38:42 +0000
committerJelmer Vernooij <jelmer@samba.org>2002-09-09 21:38:42 +0000
commiteaa4ee9bc07b0a2d412c7a73103f404b10d81dda (patch)
tree07f001eee155dfc3b8d16536228ebdb5348cb534 /examples
parent9a3542b80e6290f45fcba4a698a2ef0fd3260127 (diff)
downloadsamba-eaa4ee9bc07b0a2d412c7a73103f404b10d81dda.tar.gz
samba-eaa4ee9bc07b0a2d412c7a73103f404b10d81dda.tar.bz2
samba-eaa4ee9bc07b0a2d412c7a73103f404b10d81dda.zip
Use SAM debug class in skeleton - patch from metze
Shouldn't we use dynamic debug classes here? (This used to be commit db0f742e0ea619e69457f15cdb3740ae7c85cebd)
Diffstat (limited to 'examples')
-rw-r--r--examples/sam/sam_skel.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/examples/sam/sam_skel.c b/examples/sam/sam_skel.c
index 5dae5a5843..a3b8f13391 100644
--- a/examples/sam/sam_skel.c
+++ b/examples/sam/sam_skel.c
@@ -21,7 +21,7 @@
#include "includes.h"
-static int sam_skel_debug_level = DBGC_ALL;
+static int sam_skel_debug_level = DBGC_SAM;
#undef DBGC_CLASS
#define DBGC_CLASS sam_skel_debug_level
@@ -189,7 +189,7 @@ NTSTATUS sam_skel_get_groups_of_sid(const SAM_METHODS *sam_method, const NT_USER
return NT_STATUS_NOT_IMPLEMENTED;
}
-NTSTATUS sam_init(const SAM_CONTEXT *sam_context, SAM_METHODS **sam_method, const char *location)
+NTSTATUS sam_init(const SAM_CONTEXT *sam_context, SAM_METHODS **sam_method, const DOM_SID *domain, const char *module_params)
{
NTSTATUS nt_status;
@@ -245,13 +245,14 @@ NTSTATUS sam_init(const SAM_CONTEXT *sam_context, SAM_METHODS **sam_method, cons
sam_skel_debug_level = debug_add_class("sam_skel");
if (sam_skel_debug_level == -1) {
- sam_skel_debug_level = DBGC_ALL;
+ sam_skel_debug_level = DBGC_SAM;
DEBUG(0, ("sam_skel: Couldn't register custom debugging class!\n"));
- } else DEBUG(0, ("sam_skel: Debug class number of 'sam_skel': %d\n", sam_skel_debug_level));
+ } else DEBUG(2, ("sam_skel: Debug class number of 'sam_skel': %d\n", sam_skel_debug_level));
- DEBUG(0, ("Initializing sam_skel\n"));
- if (location)
- DEBUG(10, ("Location: %s\n", location));
+ if(module_params)
+ DEBUG(0, ("Starting 'sam_skel' with parameters '%s' for domain %s\n", module_params, sid_string_static(domain)));
+ else
+ DEBUG(0, ("Starting 'sam_skel' for domain %s without paramters\n", sid_string_static(domain)));
return NT_STATUS_OK;
}