Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pcmcia Fix printf formats on the Alpha.
details: https://anonhg.NetBSD.org/src/rev/2ddda505628a
branches: trunk
changeset: 482800:2ddda505628a
user: thorpej <thorpej%NetBSD.org@localhost>
date: Tue Feb 22 08:23:22 2000 +0000
description:
Fix printf formats on the Alpha.
diffstat:
sys/dev/pcmcia/if_ray.c | 30 ++++++++++++++++--------------
1 files changed, 16 insertions(+), 14 deletions(-)
diffs (73 lines):
diff -r 88cab8d0c295 -r 2ddda505628a sys/dev/pcmcia/if_ray.c
--- a/sys/dev/pcmcia/if_ray.c Tue Feb 22 07:45:04 2000 +0000
+++ b/sys/dev/pcmcia/if_ray.c Tue Feb 22 08:23:22 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ray.c,v 1.12 2000/02/07 09:36:27 augustss Exp $ */
+/* $NetBSD: if_ray.c,v 1.13 2000/02/22 08:23:22 thorpej Exp $ */
/*
* Copyright (c) 2000 Christian E. Hopps
* All rights reserved.
@@ -1154,7 +1154,8 @@
pktlen = m0->m_pkthdr.len;
if (pktlen > ETHER_MAX_LEN - ETHER_CRC_LEN) {
RAY_DPRINTF((
- "%s: mbuf too long %d\n", ifp->if_xname, pktlen));
+ "%s: mbuf too long %ld\n", ifp->if_xname,
+ (u_long)pktlen));
ifp->if_oerrors++;
m_freem(m0);
continue;
@@ -1302,8 +1303,8 @@
SRAM_WRITE_1(sc, RAY_SCB_CCSI, firsti);
RAY_ECF_START_CMD(sc);
- RAY_DPRINTF_XMIT(("%s: sent packet: len %d\n", sc->sc_xname,
- pktlen));
+ RAY_DPRINTF_XMIT(("%s: sent packet: len %ld\n", sc->sc_xname,
+ (u_long)pktlen));
ifp->if_opackets += pcount;
}
@@ -1340,10 +1341,10 @@
first = RAY_GET_INDEX(ccs);
pktlen = SRAM_READ_FIELD_2(sc, ccs, ray_cmd_rx, c_pktlen);
- RAY_DPRINTF(("%s: recv pktlen %d nofrag %d\n", sc->sc_xname,
- pktlen, nofrag));
- RAY_DPRINTF_XMIT(("%s: received packet: len %d\n", sc->sc_xname,
- pktlen));
+ RAY_DPRINTF(("%s: recv pktlen %ld nofrag %d\n", sc->sc_xname,
+ (u_long)pktlen, nofrag));
+ RAY_DPRINTF_XMIT(("%s: received packet: len %ld\n", sc->sc_xname,
+ (u_long)pktlen));
if (pktlen > MCLBYTES
|| pktlen < (sizeof(*frame) + sizeof(struct llc))) {
RAY_DPRINTF(("%s: PKTLEN TOO BIG OR TOO SMALL\n",
@@ -1388,11 +1389,12 @@
len -= 4;
#endif
ni = SRAM_READ_FIELD_1(sc, ccs, ray_cmd_rx, c_nextfrag);
- RAY_DPRINTF(("%s: recv frag index %d len %d bufp 0x%x ni %d\n",
- sc->sc_xname, i, len, (int)bufp, ni));
+ RAY_DPRINTF(("%s: recv frag index %d len %ld bufp 0x%x ni %d\n",
+ sc->sc_xname, i, (u_long)len, (int)bufp, ni));
if (len + lenread > pktlen) {
- RAY_DPRINTF(("%s: BAD LEN current 0x%x pktlen 0x%x\n",
- sc->sc_xname, len + lenread, pktlen));
+ RAY_DPRINTF(("%s: BAD LEN current 0x%lx pktlen 0x%lx\n",
+ sc->sc_xname, (u_long)(len + lenread),
+ (u_long)pktlen));
ifp->if_ierrors++;
m_freem(m);
m = 0;
@@ -1432,8 +1434,8 @@
if (!m)
return;
- RAY_DPRINTF(("%s: recv got packet pktlen %d actual %d\n",
- sc->sc_xname, pktlen, lenread));
+ RAY_DPRINTF(("%s: recv got packet pktlen %ld actual %ld\n",
+ sc->sc_xname, (u_long)pktlen, (u_long)lenread));
#ifdef RAY_DEBUG
if (ray_debug && ray_debug_dump_rx)
ray_dump_mbuf(sc, m);
Home |
Main Index |
Thread Index |
Old Index