diff mbox

qemu-kvm: fix warnings on 32 bit systems

Message ID 20090520072709.GA5456@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Michael S. Tsirkin May 20, 2009, 7:27 a.m. UTC
size_t must be printed with %zd, not %ld.
long constants are UL, not ULL.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
 qemu-kvm.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Comments

Avi Kivity May 20, 2009, 11:53 a.m. UTC | #1
Michael S. Tsirkin wrote:
> size_t must be printed with %zd, not %ld.
> long constants are UL, not ULL.
>   

Applied, thanks.
diff mbox

Patch

diff --git a/qemu-kvm.c b/qemu-kvm.c
index 5e4002b..ebd6272 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;
 	}
 
@@ -1244,7 +1244,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;