diff options
author | Nikolai Kondrashov <Nikolai.Kondrashov@redhat.com> | 2013-10-10 13:16:36 +0300 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-05-02 10:58:10 +0200 |
commit | dab43bc463a25109f6d86d64722f5e9c60d465e5 (patch) | |
tree | d10a2b1d3816e080ecb37bee4562f0017ccc1fd5 /src/krb5_plugin | |
parent | 0a3246795b7ec49d6a2de4bebd82810b9b0cd08e (diff) | |
download | sssd-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/krb5_plugin')
-rw-r--r-- | src/krb5_plugin/sssd_krb5_locator_plugin.c | 4 |
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; |