[Spice-devel] [PATCH] Server: Changed uint64_t printing format from "%ld" to "%lld"
Christophe Fergeau
cfergeau at redhat.com
Mon Jul 4 01:55:35 PDT 2011
On Sun, Jul 03, 2011 at 05:57:08PM +0200, Alon Levy wrote:
> On Sun, Jul 03, 2011 at 04:27:57PM +0300, Rami Vaknin wrote:
> > From: root <root at fed15.localdomain>
> >
>
> ACK. I'll push this.
This adds warnings on 64 bit builds:
main_channel.c: In function 'main_channel_handle_parsed':
main_channel.c:736:21: error: format '%llu' expects argument of type 'long
long unsigned int', but argument 3 has type 'uint64_t' [-Werror=format]
glib has a magic #define for that, G_GUINT64_FORMAT which expands to
different things depending on if we are using a 32 or 64 bit glib build (it
expands to "lu" on 64 bit).
Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20110704/57c79356/attachment.pgp>
More information about the Spice-devel
mailing list