summaryrefslogtreecommitdiffstats
path: root/src/providers
diff options
context:
space:
mode:
authorNikolai Kondrashov <Nikolai.Kondrashov@redhat.com>2013-12-20 16:51:37 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-02-12 22:31:13 +0100
commit5c233380e1ebf641f6106a34d7b94f9e9a606589 (patch)
tree421a41bd27f02d5cca480c0241f38feddbc7b1d4 /src/providers
parentdfdc99afd56b605632adc265bfb1f55cd52b3dbe (diff)
downloadsssd-5c233380e1ebf641f6106a34d7b94f9e9a606589.tar.gz
sssd-5c233380e1ebf641f6106a34d7b94f9e9a606589.tar.xz
sssd-5c233380e1ebf641f6106a34d7b94f9e9a606589.zip
Remove DEBUG macro support for old debug levels
Remove support for specifying old debug levels to the DEBUG macro: * remove debug_get_level function which was used for conversion, * remove debug_get_level tests, * remove mentions of old/new levels from DEBUG and DEBUG_IS_SET macro descriptions, * rename "newlevel" argument of debug_fn to just "level". 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/providers')
-rw-r--r--src/providers/data_provider.h2
-rw-r--r--src/providers/proxy/proxy_id.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/providers/data_provider.h b/src/providers/data_provider.h
index 55891c9f2..f88637c2d 100644
--- a/src/providers/data_provider.h
+++ b/src/providers/data_provider.h
@@ -165,7 +165,7 @@
/* AUTH related common data and functions */
#define DEBUG_PAM_DATA(level, pd) do { \
- if (DEBUG_IS_SET(debug_get_level(level))) pam_print_data(level, pd); \
+ if (DEBUG_IS_SET(level)) pam_print_data(level, pd); \
} while(0)
diff --git a/src/providers/proxy/proxy_id.c b/src/providers/proxy/proxy_id.c
index f78c4c630..d867ec45f 100644
--- a/src/providers/proxy/proxy_id.c
+++ b/src/providers/proxy/proxy_id.c
@@ -498,7 +498,7 @@ done:
/* =Save-group-utilities=================================================*/
#define DEBUG_GR_MEM(level, grp) \
do { \
- if (DEBUG_IS_SET(debug_get_level(level))) { \
+ if (DEBUG_IS_SET(level)) { \
if (!grp->gr_mem || !grp->gr_mem[0]) { \
DEBUG(level, "Group %s has no members!\n", \
grp->gr_name); \