diff options
author | 2000-09-07 22:17:48 +0000 | |
---|---|---|
committer | 2000-09-07 22:17:48 +0000 | |
commit | 6a8e1c8abcc59e150e8c0deb4a06bb190ac1284d (patch) | |
tree | c457c06c37fcc6cb380bc5380b22443285406b88 | |
parent | Remove unwanted MANSUBDIR that crept in from my private tree (diff) | |
download | wireguard-openbsd-6a8e1c8abcc59e150e8c0deb4a06bb190ac1284d.tar.xz wireguard-openbsd-6a8e1c8abcc59e150e8c0deb4a06bb190ac1284d.zip |
Be gentle with the poor Apple mouse that has only 1 button (without
's').
-rw-r--r-- | sys/dev/usb/ums.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/usb/ums.c b/sys/dev/usb/ums.c index 52e46da3987..00efafc9e36 100644 --- a/sys/dev/usb/ums.c +++ b/sys/dev/usb/ums.c @@ -1,4 +1,5 @@ /* $NetBSD: ums.c,v 1.44 2000/06/01 14:29:01 augustss Exp $ */ +/* $OpenBSD: ums.c,v 1.2 2000/09/07 22:17:48 matthieu Exp $ */ /* * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -267,8 +268,9 @@ USB_ATTACH(ums) USB_ATTACH_ERROR_RETURN; } - printf("%s: %d buttons%s\n", USBDEVNAME(sc->sc_dev), - sc->nbuttons, sc->flags & UMS_Z ? " and Z dir." : ""); + printf("%s: %d button%s%s\n", USBDEVNAME(sc->sc_dev), + sc->nbuttons, sc->nbuttons == 1 ? "" : "s", + sc->flags & UMS_Z ? " and Z dir." : ""); for (i = 1; i <= sc->nbuttons; i++) hid_locate(desc, size, HID_USAGE2(HUP_BUTTON, i), |