summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2009-07-17 13:51:45 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-07-22 10:58:46 -0500
commitb80a55e67b90a87646c44474822a40c00b821d37 (patch)
treeed048efd6e66bea4595894129bde5827d94310ce
parentSet PVR in sregs (diff)
downloadqemu-kvm-b80a55e67b90a87646c44474822a40c00b821d37.tar.gz
qemu-kvm-b80a55e67b90a87646c44474822a40c00b821d37.tar.bz2
qemu-kvm-b80a55e67b90a87646c44474822a40c00b821d37.zip
Fix warning in kvm-all.c
This fixes a warning I stumbled across while compiling qemu on PPC64. Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r--kvm-all.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kvm-all.c b/kvm-all.c
index 8567ac916..961fa32d2 100644
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -226,7 +226,7 @@ static int kvm_dirty_pages_log_change(target_phys_addr_t phys_addr,
if (mem == NULL) {
fprintf(stderr, "BUG: %s: invalid parameters " TARGET_FMT_plx "-"
TARGET_FMT_plx "\n", __func__, phys_addr,
- phys_addr + size - 1);
+ (target_phys_addr_t)(phys_addr + size - 1));
return -EINVAL;
}