Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/fdt Quiet chatty printfs



details:   https://anonhg.NetBSD.org/src/rev/4d3414d194c0
branches:  trunk
changeset: 1006088:4d3414d194c0
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Wed Jan 01 12:46:44 2020 +0000

description:
Quiet chatty printfs

diffstat:

 sys/dev/fdt/fdt_port.c |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (49 lines):

diff -r 8ae68b2256ac -r 4d3414d194c0 sys/dev/fdt/fdt_port.c
--- a/sys/dev/fdt/fdt_port.c    Wed Jan 01 12:18:18 2020 +0000
+++ b/sys/dev/fdt/fdt_port.c    Wed Jan 01 12:46:44 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fdt_port.c,v 1.5 2019/12/15 14:18:16 jakllsch Exp $    */
+/*     $NetBSD: fdt_port.c,v 1.6 2020/01/01 12:46:44 jmcneill Exp $    */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(1, "$NetBSD: fdt_port.c,v 1.5 2019/12/15 14:18:16 jakllsch Exp $");
+__KERNEL_RCSID(1, "$NetBSD: fdt_port.c,v 1.6 2020/01/01 12:46:44 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -190,7 +190,7 @@
                return EBUSY;
 
        rdp = rep->ep_port->port_dp;
-       device_printf(rdp->dp_dev, "activating port %d endpoint %d\n",
+       aprint_debug_dev(rdp->dp_dev, "activating port %d endpoint %d\n",
            fdt_endpoint_port_index(rep), fdt_endpoint_index(rep));
        if (rdp->dp_ep_activate)
                error = rdp->dp_ep_activate(rdp->dp_dev, rep, activate);
@@ -207,8 +207,8 @@
        int error = 0;
 
        dp = ep->ep_port->port_dp;
-device_printf(dp->dp_dev, "activating port %d endpoint %d (direct)\n",
-    fdt_endpoint_port_index(ep), fdt_endpoint_index(ep));
+       aprint_debug_dev(dp->dp_dev, "activating port %d endpoint %d (direct)\n",
+           fdt_endpoint_port_index(ep), fdt_endpoint_index(ep));
        if (dp->dp_ep_activate)
                error = dp->dp_ep_activate(dp->dp_dev, ep, activate);
 
@@ -372,8 +372,8 @@
                } else if (rep != NULL) {
                        rep->ep_rep = ep;
                        rep->ep_rphandle = child;
-                       aprint_verbose("%s ", ep_name(ep, buf, sizeof(buf)));
-                       aprint_verbose("connected to %s\n",
+                       aprint_debug("%s ", ep_name(ep, buf, sizeof(buf)));
+                       aprint_debug("connected to %s\n",
                            ep_name(rep, buf, sizeof(buf)));
                        if (rep->ep_type == EP_OTHER)
                                rep->ep_type = ep->ep_type;



Home | Main Index | Thread Index | Old Index