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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]