summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/ukbd.c
diff options
context:
space:
mode:
authorjoe <joe@FreeBSD.org>2002-07-31 14:34:36 +0000
committerjoe <joe@FreeBSD.org>2002-07-31 14:34:36 +0000
commit9f844c45b89aea60a8007132c6198fd7a9776c4e (patch)
treefafe553431d8770eb184a810f65960276fbbcccb /sys/dev/usb/ukbd.c
parent7320c84bded7927b7c95a1ee65b5ec56efa7008d (diff)
downloadFreeBSD-src-9f844c45b89aea60a8007132c6198fd7a9776c4e.zip
FreeBSD-src-9f844c45b89aea60a8007132c6198fd7a9776c4e.tar.gz
Replace the FOO_DEBUG definitions with USB_DEBUG, and switch the
debugging levels to off by default. Now that debug levels can be tweaked by sysctl we don't need to go through hoops to get the different usb parts to produce debug data.
Diffstat (limited to 'sys/dev/usb/ukbd.c')
-rw-r--r--sys/dev/usb/ukbd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/usb/ukbd.c b/sys/dev/usb/ukbd.c
index a212d5b..11463d0 100644
--- a/sys/dev/usb/ukbd.c
+++ b/sys/dev/usb/ukbd.c
@@ -76,10 +76,10 @@
#define delay(d) DELAY(d)
-#ifdef UKBD_DEBUG
+#ifdef USB_DEBUG
#define DPRINTF(x) if (ukbddebug) logprintf x
#define DPRINTFN(n,x) if (ukbddebug>(n)) logprintf x
-int ukbddebug = 1;
+int ukbddebug = 0;
SYSCTL_INT(_debug_usb, OID_AUTO, ukbd, CTLFLAG_RW,
&ukbddebug, 0, "ukbd debug level");
#else
@@ -775,7 +775,7 @@ ukbd_interrupt(keyboard_t *kbd, void *arg)
if (state->ks_inputs <= 0)
return 0;
-#ifdef UKBD_DEBUG
+#ifdef USB_DEBUG
for (i = state->ks_inputhead, j = 0; j < state->ks_inputs; ++j,
i = (i + 1)%INPUTBUFSIZE) {
c = state->ks_input[i];
@@ -789,7 +789,7 @@ ukbd_interrupt(keyboard_t *kbd, void *arg)
DPRINTF(("%d ", ud->keycode[i]));
}
DPRINTF(("\n"));
-#endif /* UKBD_DEBUG */
+#endif /* USB_DEBUG */
if (state->ks_polling)
return 0;
@@ -1250,7 +1250,7 @@ ukbd_ioctl(keyboard_t *kbd, u_long cmd, caddr_t arg)
splx(s);
return genkbd_commonioctl(kbd, cmd, arg);
-#ifdef UKBD_DEBUG
+#ifdef USB_DEBUG
case USB_SETDEBUG:
ukbddebug = *(int *)arg;
break;
OpenPOWER on IntegriCloud