diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2000-09-07 22:17:49 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2000-09-07 22:17:49 +0000 |
commit | ab527358df4d7535150aed340534f6be96d14c41 (patch) | |
tree | a6015ceb3684bba82e73ffb59a2b8f83de591d12 | |
parent | feedfc57ecbf0030bec282e6afb6995f6f88e016 (diff) |
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), |