[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] baum: Fix build with debugging enabled
From: |
Samuel Thibault |
Subject: |
[Qemu-devel] [PATCH] baum: Fix build with debugging enabled |
Date: |
Sun, 30 Aug 2015 16:19:09 +0200 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
cur and buf are pointers, so the difference can be a long int on 64bit
platforms.
Signed-off-by: Samuel Thibault <address@hidden>
diff --git a/backends/baum.c b/backends/baum.c
index a69aaff..0fa8025 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 %ld bytes!\n", (long int) (cur - buf));
}
#define EAT(c) do {\
- [Qemu-devel] [PATCH] baum: Fix build with debugging enabled,
Samuel Thibault <=