summaryrefslogtreecommitdiffstats
path: root/src/util/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/debug.c')
-rw-r--r--src/util/debug.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/util/debug.c b/src/util/debug.c
index e7ae83860..3a1b7ca2b 100644
--- a/src/util/debug.c
+++ b/src/util/debug.c
@@ -35,7 +35,6 @@ const char *debug_prg_name = "sssd";
int debug_level = SSSDBG_UNRESOLVED;
int debug_timestamps = SSSDBG_TIMESTAMP_UNRESOLVED;
-
int debug_to_file = 0;
const char *debug_log_file = "sssd";
FILE *debug_file = NULL;
@@ -63,12 +62,9 @@ int debug_convert_old_level(int old_level)
if ((old_level != 0) && !(old_level & 0x000F))
return old_level;
- if( old_level == SSS_UNRESOLVED_DEBUG_LEVEL )
- return SSSDBG_UNRESOLVED;
-
int new_level = SSSDBG_FATAL_FAILURE;
- if (old_level == 0)
+ if (old_level <= 0)
return new_level;
if (old_level >= 1)
@@ -118,9 +114,6 @@ int debug_get_level(int old_level)
if ((old_level != 0) && !(old_level & 0x000F))
return old_level;
- if( old_level == SSS_UNRESOLVED_DEBUG_LEVEL )
- return SSSDBG_UNRESOLVED;
-
if ((old_level > 9) || (old_level < 0))
return SSSDBG_FATAL_FAILURE;