From 74d0b22fda209229025041c008c66b56dc5dd245 Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Fri, 29 Dec 2000 21:30:59 +0000 Subject: a few more ra_dprintf vs pktlen fmt fixes --- sys/dev/pcmcia/if_ray.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/pcmcia/if_ray.c b/sys/dev/pcmcia/if_ray.c index feb3f284821..8512fcb1b11 100644 --- a/sys/dev/pcmcia/if_ray.c +++ b/sys/dev/pcmcia/if_ray.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ray.c,v 1.9 2000/10/17 04:24:26 mickey Exp $ */ +/* $OpenBSD: if_ray.c,v 1.10 2000/12/29 21:30:58 mickey Exp $ */ /* $NetBSD: if_ray.c,v 1.21 2000/07/05 02:35:54 onoe Exp $ */ /* @@ -1286,8 +1286,8 @@ ray_intr_start(sc) m_freem(m0); continue; } - RAY_DPRINTF(("%s: mbuf.m_pkthdr.len %d\n", ifp->if_xname, - (int)pktlen)); + RAY_DPRINTF(("%s: mbuf.m_pkthdr.len %lu\n", ifp->if_xname, + (u_long)pktlen)); /* we need the ether_header now for pktlen adjustments */ M_PULLUP(m0, sizeof(struct ether_header)); @@ -1358,8 +1358,8 @@ ray_intr_start(sc) previ = hinti = i; i = RAY_CCS_LINK_NULL; - RAY_DPRINTF(("%s: bufp 0x%lx new pktlen %d\n", - ifp->if_xname, (long)bufp, (int)pktlen)); + RAY_DPRINTF(("%s: bufp 0x%lx new pktlen %lu\n", + ifp->if_xname, (long)bufp, (u_long)pktlen)); /* copy out mbuf */ for (m = m0; m; m = m->m_next) { @@ -1625,8 +1625,8 @@ done: if (pktlen < sizeof(struct ieee80211_frame) + sizeof(struct llc)) { - RAY_DPRINTF(("%s: pkt not big enough to contain llc (%d)\n", - sc->sc_xname, pktlen)); + RAY_DPRINTF(("%s: pkt not big enough to contain llc (%lu)\n", + sc->sc_xname, (u_long)pktlen)); m_freem(m); return; } -- cgit v1.2.3