From patchwork Tue Dec 1 15:27:00 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kusanagi Kouichi X-Patchwork-Id: 63989 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 nB1FmaEX026155 for ; Tue, 1 Dec 2009 15:48:36 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752753AbZLAPs2 (ORCPT ); Tue, 1 Dec 2009 10:48:28 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752314AbZLAPs2 (ORCPT ); Tue, 1 Dec 2009 10:48:28 -0500 Received: from msa103.auone-net.jp ([61.117.18.163]:55720 "EHLO msa103.auone-net.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752107AbZLAPs1 (ORCPT ); Tue, 1 Dec 2009 10:48:27 -0500 X-Greylist: delayed 1293 seconds by postgrey-1.27 at vger.kernel.org; Tue, 01 Dec 2009 10:48:27 EST Received: from ppp.dion.ne.jp (ZR168251.ppp.dion.ne.jp [222.14.168.251]) by msa103.auone-net.jp (au one net msa) with ESMTP id B17DD14C03A for ; Wed, 2 Dec 2009 00:27:00 +0900 (JST) Date: Wed, 2 Dec 2009 00:27:00 +0900 From: Kusanagi Kouichi To: kvm@vger.kernel.org Subject: [PATCH] If DEBUG_MEMREG is defined, build fails. MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Message-Id: <20091201152700.B17DD14C03A@msa103.auone-net.jp> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org diff --git a/qemu-kvm.c b/qemu-kvm.c index 05caa1c..c992e65 100644 --- a/qemu-kvm.c +++ b/qemu-kvm.c @@ -124,7 +124,7 @@ static inline void set_gsi(kvm_context_t kvm, unsigned int gsi) if (gsi < kvm->max_gsi) bitmap[gsi / 32] |= 1U << (gsi % 32); else - DPRINTF("Invalid GSI %d\n"); + DPRINTF("Invalid GSI %u\n", gsi); } static inline void clear_gsi(kvm_context_t kvm, unsigned int gsi) @@ -134,7 +134,7 @@ static inline void clear_gsi(kvm_context_t kvm, unsigned int gsi) if (gsi < kvm->max_gsi) bitmap[gsi / 32] &= ~(1U << (gsi % 32)); else - DPRINTF("Invalid GSI %d\n"); + DPRINTF("Invalid GSI %u\n", gsi); } struct slot_info { @@ -575,7 +575,7 @@ int kvm_register_phys_mem(kvm_context_t kvm, memory.slot = get_free_slot(kvm); DPRINTF - ("memory: gpa: %llx, size: %llx, uaddr: %llx, slot: %x, flags: %lx\n", + ("memory: gpa: %llx, size: %llx, uaddr: %llx, slot: %x, flags: %x\n", memory.guest_phys_addr, memory.memory_size, memory.userspace_addr, memory.slot, memory.flags); r = kvm_vm_ioctl(kvm_state, KVM_SET_USER_MEMORY_REGION, &memory); @@ -638,7 +638,7 @@ void kvm_unregister_memory_area(kvm_context_t kvm, uint64_t phys_addr, int slot = get_container_slot(phys_addr, size); if (slot != -1) { - DPRINTF("Unregistering memory region %llx (%lx)\n", phys_addr, size); + DPRINTF("Unregistering memory region %" PRIx64 " (%lx)\n", phys_addr, size); kvm_destroy_phys_mem(kvm, phys_addr, size); return; }