summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/uts.c
diff options
context:
space:
mode:
authormglocker <mglocker@openbsd.org>2019-11-06 20:25:14 +0000
committermglocker <mglocker@openbsd.org>2019-11-06 20:25:14 +0000
commit36a555e043b4308069e88acca879fceee8db6e39 (patch)
tree34efe7241adecac0a61646c7bad2348de0a2be80 /sys/dev/usb/uts.c
parentUse atomic operations consistently while writing to kubsan_slot. (diff)
downloadwireguard-openbsd-36a555e043b4308069e88acca879fceee8db6e39.tar.xz
wireguard-openbsd-36a555e043b4308069e88acca879fceee8db6e39.zip
Make udl(4) and uts(4) compile again in debug mode by fixing IOCGROUP
and IOCPARM_LEN macros types.
Diffstat (limited to 'sys/dev/usb/uts.c')
-rw-r--r--sys/dev/usb/uts.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/uts.c b/sys/dev/usb/uts.c
index beaf74104d0..d75c870e82b 100644
--- a/sys/dev/usb/uts.c
+++ b/sys/dev/usb/uts.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uts.c,v 1.41 2018/03/15 00:42:41 kevlo Exp $ */
+/* $OpenBSD: uts.c,v 1.42 2019/11/06 20:25:14 mglocker Exp $ */
/*
* Copyright (c) 2007 Robert Nagy <robert@openbsd.org>
@@ -308,8 +308,8 @@ uts_ioctl(void *v, u_long cmd, caddr_t data, int flag, struct proc *l)
struct uts_softc *sc = v;
struct wsmouse_calibcoords *wsmc = (struct wsmouse_calibcoords *)data;
- DPRINTF(("uts_ioctl(%d, '%c', %d)\n",
- IOCPARM_LEN(cmd), IOCGROUP(cmd), cmd & 0xff));
+ DPRINTF(("uts_ioctl(%zu, '%c', %zu)\n",
+ IOCPARM_LEN(cmd), (int) IOCGROUP(cmd), cmd & 0xff));
switch (cmd) {
case WSMOUSEIO_SCALIBCOORDS: