From 1100f1e56a0f7b2dbc4ca5f2f232c6f589ef0b8a Mon Sep 17 00:00:00 2001 From: Sasha Levin Date: Wed, 14 Sep 2011 11:17:27 +0300 Subject: [PATCH] kvm tools: Fix 32bit build errors Signed-off-by: Sasha Levin Signed-off-by: Pekka Enberg --- tools/kvm/builtin-run.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/kvm/builtin-run.c b/tools/kvm/builtin-run.c index 591fd77e6b4c..6234b65b1699 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); } -- 2.39.5