On 04/21/2010 05:21 AM, Simon Josefsson wrote: > For some reason 'asprintf (&tmp, "%08lx", 1)' yields '61fdec00003039'. > I haven't started debugging the printf code yet, but will get to it...
Is this on a 32-bit or 64-bit platform? It matters if you are asking to print a 64-bit long, but passed a 32-bit int. To be safe, you should be using 1L or even 1UL to match the %lx. -- Eric Blake ebl...@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature