1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-05 09:14:03 +00:00

64-bit clean fixes: Use %zx in preference to %x to print size_t items.

Cast a byte to uint8_t before printing.
This commit is contained in:
Warner Losh 2005-01-27 01:49:23 +00:00
parent fe9ec26797
commit fa9af110fd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=140885

View File

@ -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);