aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@gnu.org>2015-08-30 17:12:13 +0200
committerMichael Tokarev <mjt@tls.msk.ru>2015-09-11 10:21:38 +0300
commit70cbae1dd85c9b4bb7c42bb282baacaaed0dd9bd (patch)
tree8f5b6bfe170de2c78516ce4fc4b7009e009e298e
parent8cb76755615326dd824ee3c7f3588afcd17acb28 (diff)
downloadqemu-70cbae1dd85c9b4bb7c42bb282baacaaed0dd9bd.zip
qemu-70cbae1dd85c9b4bb7c42bb282baacaaed0dd9bd.tar.gz
qemu-70cbae1dd85c9b4bb7c42bb282baacaaed0dd9bd.tar.bz2
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>
-rw-r--r--backends/baum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/baum.c b/backends/baum.c
index a69aaff..a17f625 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 {\