]> git.proxmox.com Git - qemu.git/commitdiff
spice-qemu-char.c: Use correct printf format char for ssize_t
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 9 Aug 2011 22:04:35 +0000 (23:04 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 7 Sep 2011 07:20:09 +0000 (09:20 +0200)
Use the correct printf format string character (%z) for ssize_t.
This fixes a compile failure on 32 bit Linux with spice enabled.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
spice-qemu-char.c

index a9323f39fb754e37049919835d82871a5a17c79b..ac522022cc6043729ea5127deda7500261246e3c 100644 (file)
@@ -45,7 +45,7 @@ static int vmc_write(SpiceCharDeviceInstance *sin, const uint8_t *buf, int len)
         p += last_out;
     }
 
-    dprintf(scd, 3, "%s: %lu/%zd\n", __func__, out, len + out);
+    dprintf(scd, 3, "%s: %zu/%zd\n", __func__, out, len + out);
     trace_spice_vmc_write(out, len + out);
     return out;
 }