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-05-02 10:58:10 +0200
commitdab43bc463a25109f6d86d64722f5e9c60d465e5 (patch)
treed10a2b1d3816e080ecb37bee4562f0017ccc1fd5 /src/tools
parent0a3246795b7ec49d6a2de4bebd82810b9b0cd08e (diff)
downloadsssd-dab43bc463a25109f6d86d64722f5e9c60d465e5.tar.gz
sssd-dab43bc463a25109f6d86d64722f5e9c60d465e5.tar.xz
sssd-dab43bc463a25109f6d86d64722f5e9c60d465e5.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> (cherry picked from commit fb0332565892bc10998ca98b567d4dde2213844d)
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 8eb19a236..efa182d2e 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);
}