summaryrefslogtreecommitdiffstats
path: root/src/krb5_plugin
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/krb5_plugin
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/krb5_plugin')
-rw-r--r--src/krb5_plugin/sssd_krb5_locator_plugin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/krb5_plugin/sssd_krb5_locator_plugin.c b/src/krb5_plugin/sssd_krb5_locator_plugin.c
index 725687ddc..a3a07d642 100644
--- a/src/krb5_plugin/sssd_krb5_locator_plugin.c
+++ b/src/krb5_plugin/sssd_krb5_locator_plugin.c
@@ -48,7 +48,7 @@
#define DEBUG_KEY "[sssd_krb5_locator] "
#define PLUGIN_DEBUG(body) do { \
if (ctx->debug) { \
- debug_fn body; \
+ plugin_debug_fn body; \
} \
} while(0)
@@ -61,7 +61,7 @@ struct sssd_ctx {
bool debug;
};
-void debug_fn(const char *format, ...)
+void plugin_debug_fn(const char *format, ...)
{
va_list ap;
char *s = NULL;