Module Name:    src
Committed By:   dyoung
Date:           Tue Sep 13 17:58:43 UTC 2011

Modified Files:
        src/sys/arch/x86/pci: pci_machdep.c

Log Message:
Bracket a debugging printf() with #ifdef DEBUG.


To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/sys/arch/x86/pci/pci_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/x86/pci/pci_machdep.c
diff -u src/sys/arch/x86/pci/pci_machdep.c:1.50 src/sys/arch/x86/pci/pci_machdep.c:1.51
--- src/sys/arch/x86/pci/pci_machdep.c:1.50	Thu Sep  1 15:10:31 2011
+++ src/sys/arch/x86/pci/pci_machdep.c	Tue Sep 13 17:58:42 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: pci_machdep.c,v 1.50 2011/09/01 15:10:31 christos Exp $	*/
+/*	$NetBSD: pci_machdep.c,v 1.51 2011/09/13 17:58:42 dyoung Exp $	*/
 
 /*-
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -73,7 +73,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pci_machdep.c,v 1.50 2011/09/01 15:10:31 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci_machdep.c,v 1.51 2011/09/13 17:58:42 dyoung Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -783,7 +783,9 @@
 		nbits = bits & (bits - 1);
 		bit = nbits ^ bits;
 		if ((fp = bit_to_function_pointer(ov, bit)) == NULL) {
+#ifdef DEBUG
 			printf("%s: missing bit %" PRIx64 "\n", __func__, bit);
+#endif
 			goto einval;
 		}
 	}

Reply via email to