summaryrefslogtreecommitdiff
path: root/libcli/security/security_token.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-09-17 15:23:19 +1000
committerAndrew Bartlett <abartlet@samba.org>2010-10-12 02:54:16 +0000
commit0487ef0a70a9758da31cff0832ee8decbeb92e82 (patch)
treeae221f1bce1c523e84b75a1e53c585b84af11dc9 /libcli/security/security_token.c
parentd406e511a5f46b7212584b23d17e97508e7f537b (diff)
downloadsamba-0487ef0a70a9758da31cff0832ee8decbeb92e82.tar.gz
samba-0487ef0a70a9758da31cff0832ee8decbeb92e82.tar.bz2
samba-0487ef0a70a9758da31cff0832ee8decbeb92e82.zip
libcli/security Add debug class to security_token_debug() et al
This will allow it to replace functions in source3 that use debug classes. Andrew Bartlett
Diffstat (limited to 'libcli/security/security_token.c')
-rw-r--r--libcli/security/security_token.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libcli/security/security_token.c b/libcli/security/security_token.c
index 4e5aff87da..03dc528b93 100644
--- a/libcli/security/security_token.c
+++ b/libcli/security/security_token.c
@@ -44,13 +44,13 @@ struct security_token *security_token_initialise(TALLOC_CTX *mem_ctx)
/****************************************************************************
prints a struct security_token to debug output.
****************************************************************************/
-void security_token_debug(int dbg_lev, const struct security_token *token)
+void security_token_debug(int dbg_class, int dbg_lev, const struct security_token *token)
{
TALLOC_CTX *mem_ctx;
uint32_t i;
if (!token) {
- DEBUG(dbg_lev, ("Security token: (NULL)\n"));
+ DEBUGC(dbg_class, dbg_lev, ("Security token: (NULL)\n"));
return;
}
@@ -59,14 +59,14 @@ void security_token_debug(int dbg_lev, const struct security_token *token)
return;
}
- DEBUG(dbg_lev, ("Security token SIDs (%lu):\n",
+ DEBUGC(dbg_class, dbg_lev, ("Security token SIDs (%lu):\n",
(unsigned long)token->num_sids));
for (i = 0; i < token->num_sids; i++) {
- DEBUGADD(dbg_lev, (" SID[%3lu]: %s\n", (unsigned long)i,
+ DEBUGADDC(dbg_class, dbg_lev, (" SID[%3lu]: %s\n", (unsigned long)i,
dom_sid_string(mem_ctx, &token->sids[i])));
}
- security_token_debug_privileges(dbg_lev, token);
+ security_token_debug_privileges(dbg_class, dbg_lev, token);
talloc_free(mem_ctx);
}