[patch/rebase] Make rebase 64 bit capable (was Re: [patch/rebase] Make imagehelper 64-bit capable)
Eric Blake
eblake@redhat.com
Thu Jul 7 19:48:00 GMT 2011
On 07/07/2011 01:43 PM, Corinna Vinschen wrote:
> - printf ("%-47s base 0x%08lx size 0x%08lx\n",
> + printf (
> +#if defined (__CYGWIN__) || defined (__MSYS__)
> + "%-47s base 0x%08llx size 0x%08lx\n",
> +#else
> + "%-47s base 0x%08I64x size 0x%08lx\n",
> +#endif
Do we need the #ifdef, or can we get away with including <inttypes.h>
and doing:
printf ("%-47s base 0x%08" PRIx64 " size 0x%08lx\n")
and let PRIx64 take care of the ll vs. I64 spelling?
--
Eric Blake eblake@redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin-apps/attachments/20110707/c005831c/attachment.sig>
More information about the Cygwin-apps
mailing list