From patchwork Wed May 20 07:27:09 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Michael S. Tsirkin" X-Patchwork-Id: 24862 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n4K7SDxE006219 for ; Wed, 20 May 2009 07:28:13 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753735AbZETH2I (ORCPT ); Wed, 20 May 2009 03:28:08 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753285AbZETH2H (ORCPT ); Wed, 20 May 2009 03:28:07 -0400 Received: from mx2.redhat.com ([66.187.237.31]:56021 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751680AbZETH2G (ORCPT ); Wed, 20 May 2009 03:28:06 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n4K7S8Hn016701 for ; Wed, 20 May 2009 03:28:08 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n4K7S75B024332; Wed, 20 May 2009 03:28:07 -0400 Received: from redhat.com (vpn-10-97.str.redhat.com [10.32.10.97]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n4K7S52M030835; Wed, 20 May 2009 03:28:06 -0400 Date: Wed, 20 May 2009 10:27:09 +0300 From: "Michael S. Tsirkin" To: kvm@vger.kernel.org, avi@redhat.com Subject: [PATCH] qemu-kvm: fix warnings on 32 bit systems Message-ID: <20090520072709.GA5456@redhat.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) X-Scanned-By: MIMEDefang 2.58 on 172.16.27.26 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org size_t must be printed with %zd, not %ld. long constants are UL, not ULL. Signed-off-by: Michael S. Tsirkin --- 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;