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 <imamm...@redhat.com>
---
 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