Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Add more DPRINTF()s.



details:   https://anonhg.NetBSD.org/src/rev/888e69c2aadc
branches:  trunk
changeset: 348477:888e69c2aadc
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Thu Oct 20 04:06:53 2016 +0000

description:
Add more DPRINTF()s.

diffstat:

 sys/dev/pci/if_wm.c |  13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diffs (48 lines):

diff -r d4e39baeb3a8 -r 888e69c2aadc sys/dev/pci/if_wm.c
--- a/sys/dev/pci/if_wm.c       Wed Oct 19 22:17:08 2016 +0000
+++ b/sys/dev/pci/if_wm.c       Thu Oct 20 04:06:53 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_wm.c,v 1.420 2016/10/19 08:55:23 msaitoh Exp $      */
+/*     $NetBSD: if_wm.c,v 1.421 2016/10/20 04:06:53 msaitoh Exp $      */
 
 /*
  * Copyright (c) 2001, 2002, 2003, 2004 Wasabi Systems, Inc.
@@ -84,7 +84,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.420 2016/10/19 08:55:23 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.421 2016/10/20 04:06:53 msaitoh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_net_mpsafe.h"
@@ -10047,6 +10047,9 @@
        uint32_t val;
        int usec;
 
+       DPRINTF(WM_DEBUG_NVM, ("%s: %s called\n",
+               device_xname(sc->sc_dev), __func__));
+
        for (usec = 0; usec < SPI_MAX_RETRIES; delay(5), usec += 5) {
                wm_eeprom_sendbits(sc, SPI_OPC_RDSR, 8);
                wm_eeprom_recvbits(sc, &val, 8);
@@ -10648,6 +10651,9 @@
 {
        int rv = 0;
        int i;
+       
+       DPRINTF(WM_DEBUG_NVM, ("%s: %s called\n",
+               device_xname(sc->sc_dev), __func__));
 
        for (i = 0; i < words; i++) {
                switch (offset + i) {
@@ -11086,6 +11092,9 @@
        int32_t timeout;
        uint32_t swsm;
 
+       DPRINTF(WM_DEBUG_NVM, ("%s: %s called\n",
+               device_xname(sc->sc_dev), __func__));
+
        if (sc->sc_flags & WM_F_LOCK_SWSM) {
                /* Get the SW semaphore. */
                timeout = sc->sc_nvm_wordsize + 1;



Home | Main Index | Thread Index | Old Index