diff options
author | Alexander Graf <agraf@suse.de> | 2010-08-30 21:45:39 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-10-24 04:52:22 -0400 |
commit | 344941beb9926418663e171a347d1a31d727fe45 (patch) | |
tree | 3056a0e6f8957834579415da1a21551e83028fcf | |
parent | 21e537ba149be99c4d31a04949ca6e0770379662 (diff) |
KVM: PPC: Fix compile error in e500_tlb.c
The e500_tlb.c file didn't compile for me due to the following error:
arch/powerpc/kvm/e500_tlb.c: In function ‘kvmppc_e500_shadow_map’:
arch/powerpc/kvm/e500_tlb.c:300: error: format ‘%lx’ expects type ‘long unsigned int’, but argument 2 has type ‘gfn_t’
So let's explicitly cast the argument to make printk happy.
Signed-off-by: Alexander Graf <agraf@suse.de>
-rw-r--r-- | arch/powerpc/kvm/e500_tlb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/kvm/e500_tlb.c b/arch/powerpc/kvm/e500_tlb.c index a413883cf948..d6d6d47a75a9 100644 --- a/arch/powerpc/kvm/e500_tlb.c +++ b/arch/powerpc/kvm/e500_tlb.c | |||
@@ -297,7 +297,8 @@ static inline void kvmppc_e500_shadow_map(struct kvmppc_vcpu_e500 *vcpu_e500, | |||
297 | /* Get reference to new page. */ | 297 | /* Get reference to new page. */ |
298 | new_page = gfn_to_page(vcpu_e500->vcpu.kvm, gfn); | 298 | new_page = gfn_to_page(vcpu_e500->vcpu.kvm, gfn); |
299 | if (is_error_page(new_page)) { | 299 | if (is_error_page(new_page)) { |
300 | printk(KERN_ERR "Couldn't get guest page for gfn %lx!\n", gfn); | 300 | printk(KERN_ERR "Couldn't get guest page for gfn %lx!\n", |
301 | (long)gfn); | ||
301 | kvm_release_page_clean(new_page); | 302 | kvm_release_page_clean(new_page); |
302 | return; | 303 | return; |
303 | } | 304 | } |