summaryrefslogtreecommitdiff
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorgdt <gdt@NetBSD.org>2021-03-02 00:01:27 +0000
committergdt <gdt@NetBSD.org>2021-03-02 00:01:27 +0000
commit20ef7ff235266b28574f3d1fc7fb8fd3f927aaae (patch)
tree1b9d2be6da05e8a7b1bd51ac35d9ddc0be1913ea /sys/dev/usb
parent55e1e87fd5f5c3c69b24954605cce53b2a06a99d (diff)
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 (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/ukbd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/ukbd.c b/sys/dev/usb/ukbd.c
index e3e01893414..70fc6fb27b4 100644
--- a/sys/dev/usb/ukbd.c
+++ b/sys/dev/usb/ukbd.c
@@ -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 @@ ukbd_attach(device_t parent, device_t self, void *aux)
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)