From: Michael S. Tsirkin <[email protected]>

size_t must be printed with %zd, not %ld.
long constants are UL, not ULL.

Signed-off-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: Avi Kivity <[email protected]>

diff --git a/qemu-kvm.c b/qemu-kvm.c
index b9926eb..98c7cd7 100644
--- a/qemu-kvm.c
+++ b/qemu-kvm.c
@@ -523,7 +523,7 @@ static void sigfd_handler(void *opaque)
            break;
 
        if (len != sizeof(info)) {
-           printf("read from sigfd returned %ld: %m\n", len);
+           printf("read from sigfd returned %zd: %m\n", len);
            return;
        }
 
@@ -1247,7 +1247,7 @@ int kvm_update_dirty_pages_log(void)
     int r = 0;
 
 
-    r = kvm_get_dirty_pages_range(kvm_context, 0, -1ULL,
+    r = kvm_get_dirty_pages_range(kvm_context, 0, -1UL,
                                   kvm_dirty_bitmap, NULL,
                                   kvm_get_dirty_bitmap_cb);
     return r;
--
To unsubscribe from this list: send the line "unsubscribe kvm-commits" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to