From b875ea321e49baa78e10221f2fa271ab130a1a95 Mon Sep 17 00:00:00 2001 From: gdt Date: Tue, 2 Mar 2021 00:01:27 +0000 Subject: [PATCH] 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. --- sys/dev/usb/ukbd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/usb/ukbd.c b/sys/dev/usb/ukbd.c index e3e018934149..70fc6fb27b47 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 -__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)