Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/hid Fix HIDMS_DEBUG build



details:   https://anonhg.NetBSD.org/src/rev/21201c80d1c2
branches:  trunk
changeset: 319312:21201c80d1c2
user:      ryoon <ryoon%NetBSD.org@localhost>
date:      Fri May 25 15:52:45 2018 +0000

description:
Fix HIDMS_DEBUG build

diffstat:

 sys/dev/hid/hidms.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 7e4e098b4870 -r 21201c80d1c2 sys/dev/hid/hidms.c
--- a/sys/dev/hid/hidms.c       Fri May 25 15:52:11 2018 +0000
+++ b/sys/dev/hid/hidms.c       Fri May 25 15:52:45 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hidms.c,v 1.1 2017/12/10 17:03:07 bouyer Exp $ */
+/*     $NetBSD: hidms.c,v 1.2 2018/05/25 15:52:45 ryoon Exp $  */
 
 /*
  * Copyright (c) 1998, 2017 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hidms.c,v 1.1 2017/12/10 17:03:07 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hidms.c,v 1.2 2018/05/25 15:52:45 ryoon Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -211,6 +211,9 @@
     const struct wsmouse_accessops *ops)
 {
        struct wsmousedev_attach_args a;
+#ifdef HIDMS_DEBUG
+       int i;
+#endif
        aprint_normal(": %d button%s%s%s%s%s%s%s%s%s\n",
            ms->nbuttons, ms->nbuttons == 1 ? "" : "s",
            ms->flags & HIDMS_W ? ", W" : "",



Home | Main Index | Thread Index | Old Index