]> git.proxmox.com Git - mirror_qemu.git/commitdiff
baum: Fix build with debugging enabled
authorSamuel Thibault <samuel.thibault@gnu.org>
Sun, 30 Aug 2015 15:12:13 +0000 (17:12 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 11 Sep 2015 07:21:38 +0000 (10:21 +0300)
cur and buf are pointers, so the difference is a ptrdiff_t

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Reviewed-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
backends/baum.c

index a69aafff482413f7837f9d2099db1bc237157ab0..a17f62541b1adec35acc0c246c72c6d732759387 100644 (file)
@@ -303,7 +303,7 @@ static int baum_eat_packet(BaumDriverState *baum, const uint8_t *buf, int len)
                 return 0;
             cur++;
         }
-        DPRINTF("Dropped %d bytes!\n", cur - buf);
+        DPRINTF("Dropped %td bytes!\n", cur - buf);
     }
 
 #define EAT(c) do {\