diff options
author | imp <imp@FreeBSD.org> | 2005-01-27 01:49:23 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2005-01-27 01:49:23 +0000 |
commit | 9491525af42c1491899b2e18069bad56bf8eda6f (patch) | |
tree | 4ce99a9106c9568219944b1b692e57ca33fb5160 /sys/dev | |
parent | 5b7b0c14b538313b894e23c8505d1b8f95276def (diff) | |
download | FreeBSD-src-9491525af42c1491899b2e18069bad56bf8eda6f.zip FreeBSD-src-9491525af42c1491899b2e18069bad56bf8eda6f.tar.gz |
64-bit clean fixes: Use %zx in preference to %x to print size_t items.
Cast a byte to uint8_t before printing.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ray/if_ray.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ray/if_ray.c b/sys/dev/ray/if_ray.c index bed18b2..3370401 100644 --- a/sys/dev/ray/if_ray.c +++ b/sys/dev/ray/if_ray.c @@ -1817,7 +1817,7 @@ ray_rx(struct ray_softc *sc, size_t rcs) bufp = SRAM_READ_FIELD_2(sc, rcs, ray_cmd_rx, c_bufp); fraglen = SRAM_READ_FIELD_2(sc, rcs, ray_cmd_rx, c_len); if (fraglen + readlen > pktlen) { - RAY_RECERR(sc, "bad length current 0x%x pktlen 0x%x", + RAY_RECERR(sc, "bad length current 0x%zx pktlen 0x%zx", fraglen + readlen, pktlen); ifp->if_ierrors++; m_freem(m0); @@ -3509,7 +3509,7 @@ ray_ccs_free(struct ray_softc *sc, size_t ccs) #if 1 | (RAY_DEBUG & RAY_DBG_CCS) if (!sc->sc_ccsinuse[RAY_CCS_INDEX(ccs)]) - RAY_RECERR(sc, "freeing free ccs 0x%02x", RAY_CCS_INDEX(ccs)); + RAY_RECERR(sc, "freeing free ccs 0x%02x", (uint8_t)RAY_CCS_INDEX(ccs)); #endif /* RAY_DEBUG & RAY_DBG_CCS */ if (!sc->sc_gone) RAY_CCS_FREE(sc, ccs); |