Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Use aprint_debug_dev() instead of printf() in wm...



details:   https://anonhg.NetBSD.org/src/rev/65a5e4e64a00
branches:  trunk
changeset: 457996:65a5e4e64a00
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Fri Jul 26 09:26:56 2019 +0000

description:
Use aprint_debug_dev() instead of printf() in wm_ulp_disable().

diffstat:

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

diffs (28 lines):

diff -r 23bb0bab5c0b -r 65a5e4e64a00 sys/dev/pci/if_wm.c
--- a/sys/dev/pci/if_wm.c       Fri Jul 26 08:18:47 2019 +0000
+++ b/sys/dev/pci/if_wm.c       Fri Jul 26 09:26:56 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_wm.c,v 1.643 2019/07/25 08:35:36 tnn Exp $  */
+/*     $NetBSD: if_wm.c,v 1.644 2019/07/26 09:26:56 msaitoh Exp $      */
 
 /*
  * Copyright (c) 2001, 2002, 2003, 2004 Wasabi Systems, Inc.
@@ -82,7 +82,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.643 2019/07/25 08:35:36 tnn Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.644 2019/07/26 09:26:56 msaitoh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_net_mpsafe.h"
@@ -14648,7 +14648,8 @@
        if (rv != 0) {
                uint32_t reg2;
 
-               printf("%s: Force SMBus first.\n", __func__);
+               aprint_debug_dev(sc->sc_dev, "%s: Force SMBus first.\n",
+                       __func__);
                reg2 = CSR_READ(sc, WMREG_CTRL_EXT);
                reg2 |= CTRL_EXT_FORCE_SMBUS;
                CSR_WRITE(sc, WMREG_CTRL_EXT, reg2);



Home | Main Index | Thread Index | Old Index