diff options
Diffstat (limited to 'contrib/openpam/lib/openpam_log.c')
-rw-r--r-- | contrib/openpam/lib/openpam_log.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/openpam/lib/openpam_log.c b/contrib/openpam/lib/openpam_log.c index 899a6f7ff0f8..4ce77518d0e1 100644 --- a/contrib/openpam/lib/openpam_log.c +++ b/contrib/openpam/lib/openpam_log.c @@ -31,7 +31,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $P4: //depot/projects/openpam/lib/openpam_log.c#13 $ + * $P4: //depot/projects/openpam/lib/openpam_log.c#14 $ */ #include <ctype.h> @@ -106,6 +106,9 @@ openpam_log(int level, const char *fmt, ...) switch (level) { case PAM_LOG_DEBUG: +#ifndef DEBUG + return; +#endif priority = LOG_DEBUG; break; case PAM_LOG_VERBOSE: |