Skip to contentSkip to conversation

silence warning in exec.c

PATCH New Jan Kiszka 1 participant 1 message May 18, 2008

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 silence warning in exec.c

exec.c +2 -2
Index: qemu/exec.c
===================================================================
@@ -2142,8 +2142,8 @@ ram_addr_t qemu_ram_alloc(ram_addr_t siz
 {
     ram_addr_t addr;
     if ((phys_ram_alloc_offset + size) > phys_ram_size) {
-        fprintf(stderr, "Not enough memory (requested_size = %lu, max memory = %ld)\n",
-                size, phys_ram_size);
+        fprintf(stderr, "Not enough memory (requested_size = %llu, max memory = %llu)\n",
+                (unsigned long long) size, (unsigned long long) phys_ram_size);
         abort();
     }
     addr = phys_ram_alloc_offset;