summaryrefslogtreecommitdiff
path: root/sys/dev/usb/if_ubt.c
diff options
context:
space:
mode:
authorRay Lai <ray@cvs.openbsd.org>2007-05-23 01:32:26 +0000
committerRay Lai <ray@cvs.openbsd.org>2007-05-23 01:32:26 +0000
commit353cef1f6eeaad251d9bf77378dc00387d19e3fb (patch)
tree12120dc671d3a709abb43100dd7a13ec5c0685f9 /sys/dev/usb/if_ubt.c
parentae5cd5ede9b8a1308a5e04a995d4548a799b11d4 (diff)
%z in printf(9) is not the same as %z in printf(3). Change to %lu
and cast arg to ulong. OK jsg@ and krw@.
Diffstat (limited to 'sys/dev/usb/if_ubt.c')
-rw-r--r--sys/dev/usb/if_ubt.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/usb/if_ubt.c b/sys/dev/usb/if_ubt.c
index 0f18970b367..d5b96d5debb 100644
--- a/sys/dev/usb/if_ubt.c
+++ b/sys/dev/usb/if_ubt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ubt.c,v 1.9 2007/05/22 07:01:19 matthieu Exp $ */
+/* $OpenBSD: if_ubt.c,v 1.10 2007/05/23 01:32:25 ray Exp $ */
/*
* ng_ubt.c
@@ -27,7 +27,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: if_ubt.c,v 1.9 2007/05/22 07:01:19 matthieu Exp $
+ * $Id: if_ubt.c,v 1.10 2007/05/23 01:32:25 ray Exp $
* $FreeBSD: src/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c,v 1.20 2004/10/12 23:33:46 emax Exp $
*/
@@ -769,9 +769,9 @@ ubt_request_start(struct ubt_softc * sc)
if (m->m_pkthdr.len > UBT_CTRL_BUFFER_SIZE)
panic(
-"%s: %s - HCI command frame too big, size=%zd, len=%d\n",
- __func__, USBDEVNAME(sc->sc_dev), UBT_CTRL_BUFFER_SIZE,
- m->m_pkthdr.len);
+"%s: %s - HCI command frame too big, size=%lu, len=%d\n",
+ __func__, USBDEVNAME(sc->sc_dev),
+ (ulong)UBT_CTRL_BUFFER_SIZE, m->m_pkthdr.len);
m_copydata(m, 0, m->m_pkthdr.len, sc->sc_ctrl_buffer);