- Timestamp:
- May 1, 2003, 6:18:06 PM (17 years ago)
- Location:
- trunk/lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/openpam_impl.h
r200 r209 32 32 * SUCH DAMAGE. 33 33 * 34 * $P4: //depot/projects/openpam/lib/openpam_impl.h#2 0$34 * $P4: //depot/projects/openpam/lib/openpam_impl.h#21 $ 35 35 */ 36 36 … … 44 44 extern const char *_pam_err_name[PAM_NUM_ERRORS]; 45 45 extern const char *_pam_item_name[PAM_NUM_ITEMS]; 46 47 extern int _openpam_debug; 46 48 47 49 /* -
trunk/lib/openpam_log.c
r187 r209 32 32 * SUCH DAMAGE. 33 33 * 34 * $P4: //depot/projects/openpam/lib/openpam_log.c#1 7$34 * $P4: //depot/projects/openpam/lib/openpam_log.c#18 $ 35 35 */ 36 36 … … 45 45 46 46 #include "openpam_impl.h" 47 48 int _openpam_debug = 0; 47 49 48 50 #if defined(openpam_log) … … 63 65 switch (level) { 64 66 case PAM_LOG_DEBUG: 65 #ifndef DEBUG 66 return; 67 #else 67 if (!_openpam_debug) 68 return; 68 69 priority = LOG_DEBUG; 69 70 break; 70 #endif71 71 case PAM_LOG_VERBOSE: 72 72 priority = LOG_INFO; … … 109 109 switch (level) { 110 110 case PAM_LOG_DEBUG: 111 #ifndef DEBUG 112 return; 113 #else 111 if (!_openpam_debug) 112 return; 114 113 priority = LOG_DEBUG; 115 114 break; 116 #endif117 115 case PAM_LOG_VERBOSE: 118 116 priority = LOG_INFO;
Note: See TracChangeset
for help on using the changeset viewer.