Module Name: src
Committed By: ryoon
Date: Fri May 25 15:52:46 UTC 2018
Modified Files:
src/sys/dev/hid: hidms.c
Log Message:
Fix HIDMS_DEBUG build
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/dev/hid/hidms.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/hid/hidms.c
diff -u src/sys/dev/hid/hidms.c:1.1 src/sys/dev/hid/hidms.c:1.2
--- src/sys/dev/hid/hidms.c:1.1 Sun Dec 10 17:03:07 2017
+++ src/sys/dev/hid/hidms.c Fri May 25 15:52:45 2018
@@ -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 @@ hidms_attach(device_t self, struct hidms
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" : "",