From: Samuel Thibault Date: Sun, 30 Aug 2015 15:12:13 +0000 (+0200) Subject: baum: Fix build with debugging enabled X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.2~121^2~1^2~200^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=70cbae1dd85c9b4bb7c42bb282baacaaed0dd9bd;p=sdk%2Femulator%2Fqemu.git baum: Fix build with debugging enabled cur and buf are pointers, so the difference is a ptrdiff_t Signed-off-by: Samuel Thibault Reviewed-by: Stefan Weil Signed-off-by: Michael Tokarev --- 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 {\