summaryrefslogtreecommitdiffstats
path: root/contrib/openpam/lib/openpam_log.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/openpam/lib/openpam_log.c')
-rw-r--r--contrib/openpam/lib/openpam_log.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/openpam/lib/openpam_log.c b/contrib/openpam/lib/openpam_log.c
index 899a6f7..4ce7751 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:
OpenPOWER on IntegriCloud