print a size_t value with a size_t format.
The cast is necessary in case someone redefines RT2573_TX_DESC_SIZE.
This commit is contained in:
parent
5b56050bcf
commit
99fe08f401
|
@ -1,5 +1,5 @@
|
|||
/* $OpenBSD: if_rum.c,v 1.40 2006/09/18 16:20:20 damien Exp $ */
|
||||
/* $NetBSD: if_rum.c,v 1.7 2007/03/04 06:02:48 christos Exp $ */
|
||||
/* $NetBSD: if_rum.c,v 1.8 2007/03/11 09:38:24 mlelstv Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2005, 2006 Damien Bergamini <damien.bergamini@free.fr>
|
||||
|
@ -24,7 +24,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_rum.c,v 1.7 2007/03/04 06:02:48 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_rum.c,v 1.8 2007/03/11 09:38:24 mlelstv Exp $");
|
||||
|
||||
#include "bpfilter.h"
|
||||
|
||||
|
@ -1128,8 +1128,8 @@ rum_tx_mgt(struct rum_softc *sc, struct mbuf *m0, struct ieee80211_node *ni)
|
|||
if ((xferlen % 64) == 0)
|
||||
xferlen += 4;
|
||||
|
||||
DPRINTFN(10, ("sending msg frame len=%lu rate=%u xfer len=%u\n",
|
||||
(long unsigned int)m0->m_pkthdr.len + RT2573_TX_DESC_SIZE,
|
||||
DPRINTFN(10, ("sending msg frame len=%zu rate=%u xfer len=%u\n",
|
||||
(size_t)m0->m_pkthdr.len + RT2573_TX_DESC_SIZE,
|
||||
rate, xferlen));
|
||||
|
||||
usbd_setup_xfer(data->xfer, sc->sc_tx_pipeh, data, data->buf, xferlen,
|
||||
|
@ -1219,8 +1219,8 @@ rum_tx_data(struct rum_softc *sc, struct mbuf *m0, struct ieee80211_node *ni)
|
|||
if ((xferlen % 64) == 0)
|
||||
xferlen += 4;
|
||||
|
||||
DPRINTFN(10, ("sending data frame len=%lu rate=%u xfer len=%u\n",
|
||||
(long unsigned int)m0->m_pkthdr.len + RT2573_TX_DESC_SIZE,
|
||||
DPRINTFN(10, ("sending data frame len=%zu rate=%u xfer len=%u\n",
|
||||
(size_t)m0->m_pkthdr.len + RT2573_TX_DESC_SIZE,
|
||||
rate, xferlen));
|
||||
|
||||
usbd_setup_xfer(data->xfer, sc->sc_tx_pipeh, data, data->buf, xferlen,
|
||||
|
|
Loading…
Reference in New Issue