89caf5e New DEBUG facility - SSSDBG_UNRESOLVED changed from -1 to 0

30 files Authored by pbrezina 10 years ago, Committed by sgallagh 10 years ago,
    New DEBUG facility - SSSDBG_UNRESOLVED changed from -1 to 0
    
    Removed:
        SSS_UNRESOLVED_DEBUG_LEVEL (completely replaced with SSSDBG_UNRESOLVED)
    
    Added new macro:
        CONVERT_AND_SET_DEBUG_LEVEL(new_value)
    
    Changes unresolved debug level value (SSSDBG_UNRESOLVED) from -1 to 0
    so DEBUG macro could be reduced by one condition. Anyway, it has a minor
    effect, every time you want to load debug_level from command line parameters,
    you have to use following pattern:
    
        /* Set debug level to invalid value so we can deside if -d 0 was used. */
        debug_level = SSSDBG_INVALID;
    
        pc = poptGetContext(argv[0], argc, argv, long_options, 0);
        while((opt = poptGetNextOpt(pc)) != -1) { ... }
    
        CONVERT_AND_SET_DEBUG_LEVEL(debug_level);
    
        
file modified
+7 -3
file modified
+4 -1
file modified
+4 -1
file modified
+4 -1
file modified
+4 -1
file modified
+2 -8
file modified
+5 -1
file modified
+5 -1
file modified
+4 -1
file modified
+5 -1
file modified
+5 -1
file modified
+4 -1
file modified
+4 -1
file modified
+4 -1
file modified
+1 -1
file modified
+1 -1
file modified
+1 -1
file modified
+1 -1
file modified
+1 -1
file modified
+1 -1
file modified
+1 -1
file modified
+1 -1
file modified
+1 -8
file modified
+1 -1
file modified
+9 -4