Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 03 Jul 2005 01:11:28 -0000
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        Warner Losh <imp@FreeBSD.org>
Cc:        cvs-src@FreeBSD.org, src-committers@FreeBSD.org, 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

--7HcxP2Wm84z5MHiD
Content-Type: text/plain; charset=iso-8859-2
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Jan 27, 2005 at 01:49:23AM +0000, Warner Losh wrote:
+> imp         2005-01-27 01:49:23 UTC
+>=20
+>   FreeBSD src repository
+>=20
+>   Modified files:
+>     sys/dev/ray          if_ray.c=20
+>   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.

--=20
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd@FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!

--7HcxP2Wm84z5MHiD
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

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

--7HcxP2Wm84z5MHiD--




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