Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/i386 Add patchable "pnpbiosdebug" global if PNPBIOS...



details:   https://anonhg.NetBSD.org/src/rev/4d225fec2a0c
branches:  trunk
changeset: 486791:4d225fec2a0c
user:      jhawk <jhawk%NetBSD.org@localhost>
date:      Sun May 28 21:46:04 2000 +0000

description:
Add patchable "pnpbiosdebug" global if PNPBIOSDEBUG is compiled in,
and add PNPBIOSDEBUG_VALUE to initialize its value, defaulting to 1.

diffstat:

 sys/arch/i386/conf/GENERIC      |  6 +++---
 sys/arch/i386/pnpbios/pnpbios.c |  9 +++++++--
 2 files changed, 10 insertions(+), 5 deletions(-)

diffs (49 lines):

diff -r 382d8badf740 -r 4d225fec2a0c sys/arch/i386/conf/GENERIC
--- a/sys/arch/i386/conf/GENERIC        Sun May 28 21:14:11 2000 +0000
+++ b/sys/arch/i386/conf/GENERIC        Sun May 28 21:46:04 2000 +0000
@@ -1,11 +1,11 @@
-#      $NetBSD: GENERIC,v 1.345 2000/05/28 21:12:00 jhawk Exp $
+#      $NetBSD: GENERIC,v 1.346 2000/05/28 21:46:04 jhawk Exp $
 #
 #      GENERIC -- everything that's currently supported
 #
 
 include "arch/i386/conf/std.i386"
 
-#ident                 "GENERIC-$Revision: 1.345 $"
+#ident                 "GENERIC-$Revision: 1.346 $"
 
 maxusers       32              # estimated number of users
 
@@ -158,7 +158,7 @@
 options        SCSIVERBOSE     # human readable SCSI error messages
 options        USBVERBOSE      # verbose USB device autoconfig messages
 #options       PNPBIOSVERBOSE  # verbose PnP BIOS messages
-
+#options       PNPBIOSDEBUG    # more fullsome Pnp BIOS debugging messages
 options        NFS_BOOT_DHCP,NFS_BOOT_BOOTPARAM
 
 #
diff -r 382d8badf740 -r 4d225fec2a0c sys/arch/i386/pnpbios/pnpbios.c
--- a/sys/arch/i386/pnpbios/pnpbios.c   Sun May 28 21:14:11 2000 +0000
+++ b/sys/arch/i386/pnpbios/pnpbios.c   Sun May 28 21:46:04 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pnpbios.c,v 1.17 2000/05/11 15:26:23 jhawk Exp $ */
+/* $NetBSD: pnpbios.c,v 1.18 2000/05/28 21:46:05 jhawk Exp $ */
 
 /*
  * Copyright (c) 2000 Jason R. Thorpe.  All rights reserved.
@@ -70,7 +70,12 @@
 #endif
 
 #ifdef PNPBIOSDEBUG
-#define        DPRINTF(x) printf x
+#ifdef PNPBIOSDEBUG_VALUE
+int    pnpbiosdebug = PNPBIOSDEBUG_VALUE;
+#else
+int    pnpbiosdebug = 1;
+#endif
+#define        DPRINTF(x) if (pnpbiosdebug) printf x
 #else
 #define        DPRINTF(x)
 #endif



Home | Main Index | Thread Index | Old Index