qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 08/15] fixup! pc: explicitly check maxmem limit when


From: Igor Mammedov
Subject: [Qemu-devel] [PATCH 08/15] fixup! pc: explicitly check maxmem limit when adding DIMM
Date: Mon, 24 Nov 2014 14:16:38 +0000

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 <address@hidden>
---
 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]