cvs commit: src/sys/dev/ray if_ray.c
Pawel Jakub Dawidek
pjd at FreeBSD.org
Thu Jan 27 01:23:48 PST 2005
On Thu, Jan 27, 2005 at 01:49:23AM +0000, Warner Losh wrote:
+> imp 2005-01-27 01:49:23 UTC
+>
+> FreeBSD src repository
+>
+> Modified files:
+> sys/dev/ray if_ray.c
+> Log:
+> 64-bit clean fixes: Use %zx in preference to %x to print size_t items.
+> Cast a byte to uint8_t before printing.
[...]
+> - 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));
The right format character for bytes/chars is %hhx, AFAIK.
--
Pawel Jakub Dawidek http://www.wheel.pl
pjd at FreeBSD.org http://www.FreeBSD.org
FreeBSD committer Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20050127/bcd5a79b/attachment-0001.bin
More information about the cvs-src
mailing list