[Spice-devel] [spice-gtk] Use correct printf format modifier for gssize
Jonathon Jongsma
jjongsma at redhat.com
Mon Apr 7 08:49:04 PDT 2014
ack
----- Original Message -----
> From: "Christophe Fergeau" <cfergeau at redhat.com>
> To: spice-devel at freedesktop.org
> Sent: Monday, April 7, 2014 2:47:02 AM
> Subject: [Spice-devel] [spice-gtk] Use correct printf format modifier for gssize
>
> This fixes this warning/error:
>
> channel-webdav.c: In function 'demux_to_client':
> channel-webdav.c:318:5: error: format '%ld' expects argument of type 'long
> int', but argument 5 has type 'gssize' [-Werror=format=]
> CHANNEL_DEBUG(self, "pushing %ld to client %p", size, client);
> ---
> gtk/channel-webdav.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/gtk/channel-webdav.c b/gtk/channel-webdav.c
> index c619e48..b8b0993 100644
> --- a/gtk/channel-webdav.c
> +++ b/gtk/channel-webdav.c
> @@ -315,7 +315,7 @@ static void demux_to_client(SpiceWebdavChannel *self,
> SpiceWebdavChannelPrivate *c = self->priv;
> gssize size = c->demux.size;
>
> - CHANNEL_DEBUG(self, "pushing %ld to client %p", size, client);
> + CHANNEL_DEBUG(self, "pushing %"G_GSSIZE_FORMAT" to client %p", size,
> client);
>
> if (size != 0) {
> output_queue_push(client->output, (guint8 *)c->demux.buf, size,
> --
> 1.9.0
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
>
More information about the Spice-devel
mailing list