Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci device_printf() instead of aprint_error_dev() wh...



details:   https://anonhg.NetBSD.org/src/rev/0f48f88b3f85
branches:  trunk
changeset: 955586:0f48f88b3f85
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Sun Oct 04 16:23:04 2020 +0000

description:
device_printf() instead of aprint_error_dev() where appropriate

diffstat:

 sys/dev/pci/if_msk.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r b337d7a3d2e1 -r 0f48f88b3f85 sys/dev/pci/if_msk.c
--- a/sys/dev/pci/if_msk.c      Sun Oct 04 16:09:12 2020 +0000
+++ b/sys/dev/pci/if_msk.c      Sun Oct 04 16:23:04 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_msk.c,v 1.113 2020/05/11 23:47:45 jakllsch Exp $ */
+/* $NetBSD: if_msk.c,v 1.114 2020/10/04 16:23:04 jakllsch Exp $ */
 /*     $OpenBSD: if_msk.c,v 1.79 2009/10/15 17:54:56 deraadt Exp $     */
 
 /*
@@ -52,7 +52,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_msk.c,v 1.113 2020/05/11 23:47:45 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_msk.c,v 1.114 2020/10/04 16:23:04 jakllsch Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -255,7 +255,7 @@
        }
 
        if (i == SK_TIMEOUT) {
-               aprint_error_dev(sc_if->sk_dev, "phy failed to come ready\n");
+               device_printf(sc_if->sk_dev, "phy failed to come ready\n");
                return ETIMEDOUT;
        }
 
@@ -289,7 +289,7 @@
        }
 
        if (i == SK_TIMEOUT) {
-               aprint_error_dev(sc_if->sk_dev, "phy write timed out\n");
+               device_printf(sc_if->sk_dev, "phy write timed out\n");
                return ETIMEDOUT;
        }
 
@@ -2035,7 +2035,7 @@
         */
        msk_txeof(sc_if);
        if (sc_if->sk_cdata.sk_tx_cnt != 0) {
-               aprint_error_dev(sc_if->sk_dev, "watchdog timeout\n");
+               device_printf(sc_if->sk_dev, "watchdog timeout\n");
 
                if_statinc(ifp, if_oerrors);
 



Home | Main Index | Thread Index | Old Index