summaryrefslogtreecommitdiffstats
path: root/backends
diff options
context:
space:
mode:
authorSamuel Thibault2015-08-30 17:12:13 +0200
committerMichael Tokarev2015-09-11 09:21:38 +0200
commit70cbae1dd85c9b4bb7c42bb282baacaaed0dd9bd (patch)
tree8f5b6bfe170de2c78516ce4fc4b7009e009e298e /backends
parentlinux-user: Fix warnings caused by missing 'static' attribute (diff)
downloadqemu-70cbae1dd85c9b4bb7c42bb282baacaaed0dd9bd.tar.gz
qemu-70cbae1dd85c9b4bb7c42bb282baacaaed0dd9bd.tar.xz
qemu-70cbae1dd85c9b4bb7c42bb282baacaaed0dd9bd.zip
baum: Fix build with debugging enabled
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>
Diffstat (limited to 'backends')
-rw-r--r--backends/baum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/baum.c b/backends/baum.c
index a69aafff48..a17f62541b 100644
--- a/backends/baum.c
+++ b/backends/baum.c
@@ -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 {\