From: Sasha Levin Subject: [PATCH] kvm tools: Fix 32bit build errors Date: Wed, 14 Sep 2011 11:17:27 +0300 Message-ID: <1315988247-11937-1-git-send-email-levinsasha928@gmail.com> Cc: kvm@vger.kernel.org, mingo@elte.hu, asias.hejun@gmail.com, gorcunov@gmail.com, Sasha Levin To: penberg@kernel.org Return-path: Received: from mail-fx0-f46.google.com ([209.85.161.46]:64976 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752862Ab1INISB (ORCPT ); Wed, 14 Sep 2011 04:18:01 -0400 Received: by fxe4 with SMTP id 4so1515417fxe.19 for ; Wed, 14 Sep 2011 01:17:59 -0700 (PDT) Sender: kvm-owner@vger.kernel.org List-ID: Signed-off-by: Sasha Levin --- tools/kvm/builtin-run.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/kvm/builtin-run.c b/tools/kvm/builtin-run.c index 591fd77..6234b65 100644 --- a/tools/kvm/builtin-run.c +++ b/tools/kvm/builtin-run.c @@ -174,12 +174,12 @@ static int virtio_9p_rootdir_parser(const struct option *opt, const char *arg, i static int shmem_parser(const struct option *opt, const char *arg, int unset) { - const uint64_t default_size = SHMEM_DEFAULT_SIZE; - const uint64_t default_phys_addr = SHMEM_DEFAULT_ADDR; + const u64 default_size = SHMEM_DEFAULT_SIZE; + const u64 default_phys_addr = SHMEM_DEFAULT_ADDR; const char *default_handle = SHMEM_DEFAULT_HANDLE; struct shmem_info *si = malloc(sizeof(struct shmem_info)); - uint64_t phys_addr; - uint64_t size; + u64 phys_addr; + u64 size; char *handle = NULL; int create = 0; const char *p = arg; @@ -282,8 +282,8 @@ static int shmem_parser(const struct option *opt, const char *arg, int unset) strcpy(handle, default_handle); } if (verbose) { - pr_info("shmem: phys_addr = %lx", phys_addr); - pr_info("shmem: size = %lx", size); + pr_info("shmem: phys_addr = %llx", phys_addr); + pr_info("shmem: size = %llx", size); pr_info("shmem: handle = %s", handle); pr_info("shmem: create = %d", create); } -- 1.7.6.1