[Spice-devel] [spice-gtk] Use correct printf format modifier for gssize

Christophe Fergeau cfergeau at redhat.com
Mon Apr 7 00:47:02 PDT 2014


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



More information about the Spice-devel mailing list