summaryrefslogtreecommitdiffstats
path: root/src/tools
diff options
context:
space:
mode:
authorNikolai Kondrashov <Nikolai.Kondrashov@redhat.com>2013-10-10 13:16:36 +0300
committerJakub Hrozek <jhrozek@redhat.com>2014-02-12 22:30:44 +0100
commitfb0332565892bc10998ca98b567d4dde2213844d (patch)
treee8736a34cd632072b4be7867e236a8120c39be14 /src/tools
parentcb637a64fc51d6f4c718f75e23b19df6bdfe1c51 (diff)
downloadsssd-fb0332565892bc10998ca98b567d4dde2213844d.tar.gz
sssd-fb0332565892bc10998ca98b567d4dde2213844d.tar.xz
sssd-fb0332565892bc10998ca98b567d4dde2213844d.zip
Move DEBUG macro body to debug_fn
Move DEBUG macro body to the debug_fn function, adding "function" argument to the latter. Rename "debug_fn" in sssd_krb5_locator_plugin.c to "plugin_debug_fn" to remove conflict with the sssd debug_fn. Replace DEBUG_MSG macro usage with debug_fn function usage. Remove DEBUG_MSG macro along with tests. The above makes the total size of binaries drop by 20% for the standard Fedora build and by 44% for a build configured according to Debian packaging script. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Stephen Gallagher <sgallagh@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/selinux.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tools/selinux.c b/src/tools/selinux.c
index 4f0c8c711..4555a486f 100644
--- a/src/tools/selinux.c
+++ b/src/tools/selinux.c
@@ -121,7 +121,8 @@ static void sss_semanage_error_callback(void *varg,
return;
}
- DEBUG_MSG(level, "libsemanage", message);
+ if (DEBUG_IS_SET(level))
+ debug_fn("libsemanage", level, "%s\n", message);
free(message);
}