From 99dd40a885ed3d42af4bbbde7ee2fc98830544d0 Mon Sep 17 00:00:00 2001 From: Pavel Březina Date: Tue, 9 Aug 2011 13:01:05 +0200 Subject: New DEBUG facility - conversion https://fedorahosted.org/sssd/ticket/925 Conversion of the old debug_level format to the new one. (only where it was necessary) Removed: SSS_DEFAULT_DEBUG_LEVEL (completely replaced with SSSDBG_DEFAULT) --- src/providers/proxy/proxy_auth.c | 2 +- src/providers/proxy/proxy_child.c | 1 + src/providers/proxy/proxy_id.c | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src/providers/proxy') diff --git a/src/providers/proxy/proxy_auth.c b/src/providers/proxy/proxy_auth.c index f92c6471..adb0d872 100644 --- a/src/providers/proxy/proxy_auth.c +++ b/src/providers/proxy/proxy_auth.c @@ -240,7 +240,7 @@ static struct tevent_req *proxy_child_init_send(TALLOC_CTX *mem_ctx, state->child_ctx = child_ctx; state->command = talloc_asprintf(req, - "%s/proxy_child -d %d%s%s --domain %s --id %d", + "%s/proxy_child -d %#.4x%s%s --domain %s --id %d", SSSD_LIBEXEC_PATH, debug_level, (debug_timestamps ? "" : " --debug-timestamps=0"), (debug_to_file ? " --debug-to-files" : ""), diff --git a/src/providers/proxy/proxy_child.c b/src/providers/proxy/proxy_child.c index 0f588497..d19cc74c 100644 --- a/src/providers/proxy/proxy_child.c +++ b/src/providers/proxy/proxy_child.c @@ -507,6 +507,7 @@ int main(int argc, const char *argv[]) poptFreeContext(pc); + debug_level = debug_convert_old_level(debug_level); /* set up things like debug , signals, daemonization, etc... */ debug_log_file = talloc_asprintf(NULL, "proxy_child_%s", domain); diff --git a/src/providers/proxy/proxy_id.c b/src/providers/proxy/proxy_id.c index 041e25f2..ba45d7a4 100644 --- a/src/providers/proxy/proxy_id.c +++ b/src/providers/proxy/proxy_id.c @@ -395,7 +395,7 @@ done: #define DEBUG_GR_MEM(level, grp) \ do { \ - if (debug_level >= level) { \ + if (DEBUG_IS_SET(debug_get_level(level))) { \ if (!grp->gr_mem || !grp->gr_mem[0]) { \ DEBUG(level, ("Group %s has no members!\n", \ grp->gr_name)); \ -- cgit