Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Jan 2005 10:23:45 +0100
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        Warner Losh <imp@FreeBSD.org>
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/dev/ray if_ray.c
Message-ID:  <20050127092345.GO795@darkness.comp.waw.pl>
In-Reply-To: <200501270149.j0R1nNXW091964@repoman.freebsd.org>
References:  <200501270149.j0R1nNXW091964@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
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@FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFB+LMhForvXbEpPzQRAoLaAKC2W+LMPiB57leWEeo+DmPag+cCEQCgrGmu
M2jb43Eaj+0M8wvVXV9YcXc=
=xTKu
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050127092345.GO795>