Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb ukbd: Condition probe-time verbosity on USBVERBOSE



details:   https://anonhg.NetBSD.org/src/rev/1122d186d3f0
branches:  trunk
changeset: 953239:1122d186d3f0
user:      gdt <gdt%NetBSD.org@localhost>
date:      Tue Mar 02 00:01:27 2021 +0000

description:
ukbd: Condition probe-time verbosity on USBVERBOSE

Previously, this driver switched on more verbose messages based on
DIAGNOSTIC.  But, the messages weren't about an impossible-to-reach
condition, just extra keys.  Change the condition to USBVERBOSE,
documented as serving this purpose.

diffstat:

 sys/dev/usb/ukbd.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 98ade4c0ab7a -r 1122d186d3f0 sys/dev/usb/ukbd.c
--- a/sys/dev/usb/ukbd.c        Mon Mar 01 23:02:30 2021 +0000
+++ b/sys/dev/usb/ukbd.c        Tue Mar 02 00:01:27 2021 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: ukbd.c,v 1.147 2020/09/12 18:10:37 macallan Exp $        */
+/*      $NetBSD: ukbd.c,v 1.148 2021/03/02 00:01:27 gdt Exp $        */
 
 /*
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ukbd.c,v 1.147 2020/09/12 18:10:37 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ukbd.c,v 1.148 2021/03/02 00:01:27 gdt Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ddb.h"
@@ -435,7 +435,7 @@
                sc->sc_flags = FLAG_GDIUM_FN;
 #endif
 
-#ifdef DIAGNOSTIC
+#ifdef USBVERBOSE
        aprint_normal(": %d Variable keys, %d Array codes", sc->sc_nkeyloc,
               sc->sc_nkeycode);
        if (sc->sc_flags & FLAG_APPLE_FN)



Home | Main Index | Thread Index | Old Index