From fbf4080e8857b0351fe4b206d4fbf8cd76926c9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Sun, 5 Sep 2004 12:33:15 +0000 Subject: [PATCH] Use %zu to format size_t. --- sys/dev/usb/ucycom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/usb/ucycom.c b/sys/dev/usb/ucycom.c index ee05ae44561e..83c21b3a8f72 100644 --- a/sys/dev/usb/ucycom.c +++ b/sys/dev/usb/ucycom.c @@ -61,7 +61,7 @@ __FBSDID("$FreeBSD$"); #define UCYCOM_EP_INPUT 0 #define UCYCOM_EP_OUTPUT 1 -#define UCYCOM_MAX_IOLEN 32 +#define UCYCOM_MAX_IOLEN 32U struct ucycom_softc { device_t sc_dev; @@ -252,7 +252,7 @@ ucycom_attach(device_t dev) sc->sc_olen = hid_report_size(urd, urdlen, hid_output, &sc->sc_oid); if (sc->sc_ilen > UCYCOM_MAX_IOLEN || sc->sc_olen > UCYCOM_MAX_IOLEN) { - device_printf(dev, "I/O report size too big (%d, %d, %d)\n", + device_printf(dev, "I/O report size too big (%zu, %zu, %u)\n", sc->sc_ilen, sc->sc_olen, UCYCOM_MAX_IOLEN); return (ENXIO); }