public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: kvm@vger.kernel.org, avi@redhat.com
Subject: [PATCH] qemu-kvm: fix warnings on 32 bit systems
Date: Wed, 20 May 2009 10:27:09 +0300	[thread overview]
Message-ID: <20090520072709.GA5456@redhat.com> (raw)

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(-)

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;
-- 
1.6.3.rc3.1.g830204

             reply	other threads:[~2009-05-20  7:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-20  7:27 Michael S. Tsirkin [this message]
2009-05-20 11:53 ` [PATCH] qemu-kvm: fix warnings on 32 bit systems Avi Kivity

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090520072709.GA5456@redhat.com \
    --to=mst@redhat.com \
    --cc=avi@redhat.com \
    --cc=kvm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox