Re: [sharutils-4.11.1] Compilation warnings
Eric Blake <[email protected]>
| Newsgroups | gmane.comp.gnu.utils.bugs |
|---|---|
| Organization | Red Hat, Inc. |
| Message-ID | <[email protected]> |
On 12/07/2012 02:10 AM, Petr Pisar wrote: > On Thu, Dec 06, 2012 at 06:09:41PM -0800, Bruce Korb wrote: >> On 12/06/12 16:29, Eric Blake wrote: >> WRT: using "%lu" for uint64_t formatting: >> >>> ... The only portable solution here is to cast to '[u]intmax_t'. >> >> What is the correct formatting element? > > "%ju". See printf(3). Alas, not all OSs implement %ju yet; for that to work, you'd need to use the gnulib modules for *printf replacements. Simpler may be to use the gnulib <inttypes.h> replacement, and use PRIuMAX. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
(application/pgp-signature, 619 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with undefined - http://www.enigmail.net/ iQEcBAEBCAAGBQJQwhUrAAoJEKeha0olJ0NqvaUH/2qg7y1KzGs7qgvLiwmT922b acDX0W/NHtGzEWS3k1P8knL3O7RmPU80tImLY5cTFY/zZIarKwFLchE/rfHm9JK+ 4qwRBDTqlQ/YOXy/LiAQWRvNIYQ+OSwN4knL3+nRu7W1CGdO8iXo13k271JM7lW1 4zLe7Fey8cj6TrK4KHBcG91/uPttTVinS6GafaXVVqIAAnMjrKtLLg2hMR50k2YE SuISK006s/z9lVuQyHoAc0rG8OgvSEltwFtO5/v6KFcN+3qARm60Leh4jRjBnYRN vZCzzQCC4rfukq6seQTmnHueDgZydcbnzdYReCTZ7ZKiLQElAjd2SLYX427nvn8= =I88S -----END PGP SIGNATURE-----