qemu-trivial
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-trivial] [PULL 16/26] baum: Fix build with debugging enabled


From: Michael Tokarev
Subject: [Qemu-trivial] [PULL 16/26] baum: Fix build with debugging enabled
Date: Fri, 11 Sep 2015 14:03:40 +0300

From: Samuel Thibault <address@hidden>

cur and buf are pointers, so the difference is a ptrdiff_t

Signed-off-by: Samuel Thibault <address@hidden>
Reviewed-by: Stefan Weil <address@hidden>
Signed-off-by: Michael Tokarev <address@hidden>
---
 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]