Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 May 2002 06:05:09 -0700 (PDT)
From:      Dag-Erling Smorgrav <des@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 11834 for review
Message-ID:  <200205241305.g4OD59U83298@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=11834

Change 11834 by des@des.at.des.thinksec.com on 2002/05/24 06:04:27

	Conditionalize debugging messages in !STDC, !GNUC case.

Affected files ...

... //depot/projects/openpam/lib/openpam_log.c#14 edit

Differences ...

==== //depot/projects/openpam/lib/openpam_log.c#14 (text+ko) ====

@@ -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 @@
 
 	switch (level) {
 	case PAM_LOG_DEBUG:
+#ifndef DEBUG
+		return;
+#endif
 		priority = LOG_DEBUG;
 		break;
 	case PAM_LOG_VERBOSE:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205241305.g4OD59U83298>