From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Tosatti Subject: Re: [PATCH] Fix build failure with DEVICE_ASSIGNMENT_DEBUG. Date: Wed, 30 Dec 2009 12:34:14 -0200 Message-ID: <20091230143414.GB24951@amt.cnet> References: <20091229022437.0F7A36FC039@msa105.auone-net.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org To: Kusanagi Kouichi Return-path: Received: from mx1.redhat.com ([209.132.183.28]:18968 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752597AbZL3OjQ (ORCPT ); Wed, 30 Dec 2009 09:39:16 -0500 Content-Disposition: inline In-Reply-To: <20091229022437.0F7A36FC039@msa105.auone-net.jp> Sender: kvm-owner@vger.kernel.org List-ID: On Tue, Dec 29, 2009 at 11:24:36AM +0900, Kusanagi Kouichi wrote: > If DEVICE_ASSIGNMENT_DEBUG is defined, build fails. > > CC x86_64-softmmu/device-assignment.o > hw/device-assignment.c: In function 'assigned_dev_iomem_map_slow': > hw/device-assignment.c:235: error: expected expression before ')' token > cc1: warnings being treated as errors > hw/device-assignment.c: In function 'assigned_dev_iomem_map': > hw/device-assignment.c:264: error: format '%08x' expects type 'unsigned int', but argument 4 has type 'pcibus_t' > hw/device-assignment.c:264: error: format '%08x' expects type 'unsigned int', but argument 7 has type 'pcibus_t' > hw/device-assignment.c: In function 'assigned_dev_ioport_map': > hw/device-assignment.c:313: error: format '%x' expects type 'unsigned int', but argument 4 has type 'pcibus_t' > hw/device-assignment.c:313: error: format '%d' expects type 'int', but argument 7 has type 'pcibus_t' > hw/device-assignment.c: In function 'msix_mmio_writel': > hw/device-assignment.c:1270: error: format '%lx' expects type 'long unsigned int', but argument 5 has type 'uint32_t' > make[1]: *** [device-assignment.o] Error 1 > make: *** [subdir-x86_64-softmmu] Error 2 > > Signed-off-by: Kusanagi Kouichi Applied, thanks.