Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb turn the success paths of FCC registration into ...



details:   https://anonhg.NetBSD.org/src/rev/768a8adb419e
branches:  trunk
changeset: 745993:768a8adb419e
user:      khorben <khorben%NetBSD.org@localhost>
date:      Thu Mar 19 07:50:27 2020 +0000

description:
turn the success paths of FCC registration into debug prints. The
(unlikely) failure path remains noisy.
discussed with claudio

>From OpenBSD.

diffstat:

 sys/dev/usb/if_umb.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (32 lines):

diff -r 47460edac9ae -r 768a8adb419e sys/dev/usb/if_umb.c
--- a/sys/dev/usb/if_umb.c      Thu Mar 19 07:49:29 2020 +0000
+++ b/sys/dev/usb/if_umb.c      Thu Mar 19 07:50:27 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_umb.c,v 1.15 2020/03/19 07:49:29 khorben Exp $ */
+/*     $NetBSD: if_umb.c,v 1.16 2020/03/19 07:50:27 khorben Exp $ */
 /*     $OpenBSD: if_umb.c,v 1.20 2018/09/10 17:00:45 gerhard Exp $ */
 
 /*
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_umb.c,v 1.15 2020/03/19 07:49:29 khorben Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_umb.c,v 1.16 2020/03/19 07:50:27 khorben Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -2569,11 +2569,11 @@
                                break;
                        case 0x555f:    /* Send FCC Authentication */
                                if (val == 0)
-                                       log(LOG_INFO, "%s: send FCC "
+                                       DPRINTF("%s: send FCC "
                                            "Authentication succeeded\n",
                                            DEVNAM(sc));
                                else if (val == 0x001a0001)
-                                       log(LOG_INFO, "%s: FCC Authentication "
+                                       DPRINTF("%s: FCC Authentication "
                                            "not required\n", DEVNAM(sc));
                                else
                                        log(LOG_INFO, "%s: send FCC "



Home | Main Index | Thread Index | Old Index