Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci #ifdef a variable like their use



details:   https://anonhg.NetBSD.org/src/rev/3aa0e8d07cc6
branches:  trunk
changeset: 789943:3aa0e8d07cc6
user:      martin <martin%NetBSD.org@localhost>
date:      Fri Sep 13 21:13:08 2013 +0000

description:
#ifdef a variable like their use

diffstat:

 sys/dev/pci/if_sk.c |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (32 lines):

diff -r cf4785949f9f -r 3aa0e8d07cc6 sys/dev/pci/if_sk.c
--- a/sys/dev/pci/if_sk.c       Fri Sep 13 21:09:40 2013 +0000
+++ b/sys/dev/pci/if_sk.c       Fri Sep 13 21:13:08 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_sk.c,v 1.74 2013/06/11 16:37:10 msaitoh Exp $       */
+/*     $NetBSD: if_sk.c,v 1.75 2013/09/13 21:13:08 martin Exp $        */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -115,7 +115,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_sk.c,v 1.74 2013/06/11 16:37:10 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_sk.c,v 1.75 2013/09/13 21:13:08 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -2304,9 +2304,12 @@
 void
 sk_intr_yukon(struct sk_if_softc *sc_if)
 {
+#ifdef SK_DEBUG
        int status;
 
-       status = SK_IF_READ_2(sc_if, 0, SK_GMAC_ISR);
+       status = 
+#endif
+               SK_IF_READ_2(sc_if, 0, SK_GMAC_ISR);
 
        DPRINTFN(3, ("sk_intr_yukon status=%#x\n", status));
 }



Home | Main Index | Thread Index | Old Index