From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52093) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XsuRn-0000E1-Gl for qemu-devel@nongnu.org; Mon, 24 Nov 2014 09:17:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XsuRh-0004Vb-Cs for qemu-devel@nongnu.org; Mon, 24 Nov 2014 09:16:59 -0500 Received: from mx1.redhat.com ([209.132.183.28]:42628) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XsuRh-0004VS-5R for qemu-devel@nongnu.org; Mon, 24 Nov 2014 09:16:53 -0500 From: Igor Mammedov Date: Mon, 24 Nov 2014 14:16:38 +0000 Message-Id: <1416838598-15989-1-git-send-email-imammedo@redhat.com> In-Reply-To: References: Subject: [Qemu-devel] [PATCH 08/15] fixup! pc: explicitly check maxmem limit when adding DIMM List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, mst@redhat.com Fix build breakage on 32 bit host: hw/i386/pc.c:1623:9: error: format '%llx' expects argument of type 'long long unsigned int', but argument 5 has type 'ram_addr_t' [-Werror=format] introduced by: pc: explicitly check maxmem limit when adding DIMM Signed-off-by: Igor Mammedov --- hw/i386/pc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/i386/pc.c b/hw/i386/pc.c index e656658..8be50a4 100644 --- a/hw/i386/pc.c +++ b/hw/i386/pc.c @@ -1621,7 +1621,7 @@ static void pc_dimm_plug(HotplugHandler *hotplug_dev, if (existing_dimms_capacity + memory_region_size(mr) > machine->maxram_size - machine->ram_size) { error_setg(&local_err, "not enough space, currently 0x%" PRIx64 - " in use of total 0x%" PRIx64, + " in use of total 0x" RAM_ADDR_FMT, existing_dimms_capacity, machine->maxram_size); goto out; } -- 1.8.3.1