From: Samuel Thibault <[email protected]> cur and buf are pointers, so the difference is a ptrdiff_t
Signed-off-by: Samuel Thibault <[email protected]> Reviewed-by: Stefan Weil <[email protected]> Signed-off-by: Michael Tokarev <[email protected]> --- backends/baum.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {\ -- 2.1.4
