Fix compilation with AN_DEBUG (use %zu instead of %d).
This commit is contained in:
parent
677fb8d602
commit
0e931e0449
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: an.c,v 1.45 2006/07/21 16:48:48 ad Exp $ */
|
||||
/* $NetBSD: an.c,v 1.46 2006/10/07 14:30:27 peter Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1997, 1998, 1999
|
||||
* Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved.
|
||||
@ -77,7 +77,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: an.c,v 1.45 2006/07/21 16:48:48 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: an.c,v 1.46 2006/10/07 14:30:27 peter Exp $");
|
||||
|
||||
#include "bpfilter.h"
|
||||
|
||||
@ -232,7 +232,7 @@ an_attach(struct an_softc *sc)
|
||||
rid = AN_RID_WEP_VOLATILE; /* first persistent key */
|
||||
while (an_read_rid(sc, rid, akey, &buflen) == 0) {
|
||||
kid = le16toh(akey->an_key_index);
|
||||
DPRINTF(("an_attach: wep rid=0x%x len=%d(%d) index=0x%04x "
|
||||
DPRINTF(("an_attach: wep rid=0x%x len=%d(%zu) index=0x%04x "
|
||||
"mac[0]=%02x keylen=%d\n",
|
||||
rid, buflen, sizeof(*akey), kid,
|
||||
akey->an_mac_addr[0], le16toh(akey->an_key_len)));
|
||||
@ -850,7 +850,7 @@ an_start(struct ifnet *ifp)
|
||||
an_mwrite_bap(sc, fid, -1, m, m->m_pkthdr.len);
|
||||
m_freem(m);
|
||||
|
||||
DPRINTF2(("an_start: send %d byte via %x/%d\n",
|
||||
DPRINTF2(("an_start: send %zu byte via %x/%d\n",
|
||||
ntohs(len) + sizeof(struct ieee80211_frame),
|
||||
fid, cur));
|
||||
sc->sc_txd[cur].d_inuse = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user