Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/pci Bracket a debugging printf() with #ifdef DE...
details: https://anonhg.NetBSD.org/src/rev/a9c6b5c77a14
branches: trunk
changeset: 769536:a9c6b5c77a14
user: dyoung <dyoung%NetBSD.org@localhost>
date: Tue Sep 13 17:58:42 2011 +0000
description:
Bracket a debugging printf() with #ifdef DEBUG.
diffstat:
sys/arch/x86/pci/pci_machdep.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r db22a4578d6e -r a9c6b5c77a14 sys/arch/x86/pci/pci_machdep.c
--- a/sys/arch/x86/pci/pci_machdep.c Tue Sep 13 14:00:08 2011 +0000
+++ b/sys/arch/x86/pci/pci_machdep.c Tue Sep 13 17:58:42 2011 +0000
@@ -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;
}
}
Home |
Main Index |
Thread Index |
Old Index