Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Fix bonehead bug for compiles w/o DEBUG set



details:   https://anonhg.NetBSD.org/src/rev/19cca3cb3ca7
branches:  trunk
changeset: 495655:19cca3cb3ca7
user:      mjacob <mjacob%NetBSD.org@localhost>
date:      Wed Aug 02 17:39:50 2000 +0000

description:
Fix bonehead bug for compiles w/o DEBUG set
(thanks to KANETA Shin'ichi <kaneta%cr.chiba-u.ac.jp@localhost>)

diffstat:

 sys/dev/pci/isp_pci.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 8df950a1b60d -r 19cca3cb3ca7 sys/dev/pci/isp_pci.c
--- a/sys/dev/pci/isp_pci.c     Wed Aug 02 17:37:57 2000 +0000
+++ b/sys/dev/pci/isp_pci.c     Wed Aug 02 17:39:50 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: isp_pci.c,v 1.53 2000/08/01 23:55:14 mjacob Exp $ */
+/* $NetBSD: isp_pci.c,v 1.54 2000/08/02 17:39:50 mjacob Exp $ */
 /*
  * PCI specific probe and attach routines for Qlogic ISP SCSI adapters.
  * Matthew Jacob (mjacob%nas.nasa.gov@localhost)
@@ -451,12 +451,14 @@
        isp->isp_dblev |= ISP_LOGINFO;
 #endif
 #endif
+#ifdef DEBUG
        if (oneshot) {
                oneshot = 0;
                isp_prt(isp, ISP_LOGCONFIG, vstring,
                    ISP_PLATFORM_VERSION_MAJOR, ISP_PLATFORM_VERSION_MINOR,
                    ISP_CORE_VERSION_MAJOR, ISP_CORE_VERSION_MINOR);
        }
+#endif
 
        isp->isp_revision = rev;
 



Home | Main Index | Thread Index | Old Index