From efa3048b1efca073eefed4c824b453e7c54857c1 Mon Sep 17 00:00:00 2001 From: Hartmut Brandt Date: Wed, 6 Aug 2003 11:30:53 +0000 Subject: Print an array index that is computed as ptrdiff_t with %tu. --- sys/dev/en/midway.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/en/midway.c b/sys/dev/en/midway.c index d63a248382cb..9d5c2b633d13 100644 --- a/sys/dev/en/midway.c +++ b/sys/dev/en/midway.c @@ -1220,8 +1220,8 @@ en_open_vcc(struct en_softc *sc, struct atmio_openvcc *op) slot->vcc = vc; KASSERT (_IF_QLEN(&slot->indma) == 0 && _IF_QLEN(&slot->q) == 0, - ("en_rxctl: left over mbufs on enable slot=%ld", - (long)(vc->rxslot - sc->rxslot))); + ("en_rxctl: left over mbufs on enable slot=%tu", + vc->rxslot - sc->rxslot)); vc->txspeed = 0; vc->txslot = sc->txslot; -- cgit v1.3