qemu: fix formatting mismatch in qemu_ram_alloc
PATCH 1/1 qemu: fix formatting mismatch in qemu_ram_alloc
The following patch complement 50096dbe4c8523d9855b0e2ee6f058a75e7942a3 to avoid a compilation warning because of a formatting mismatch after making "size" long to allow for allocations bigger than 4GB and as can be seen by :
kvm-53/qemu/exec.c: In function `qemu_ram_alloc':kvm-53/qemu/exec.c:2098: warning: unsigned int format, long unsigned int arg (arg 3)
--- qemu/exec.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
qemu/exec.c +1 -1
@@ -2094,7 +2094,7 @@ ram_addr_t qemu_ram_alloc(unsigned long size) {ram_addr_t addr;if ((phys_ram_alloc_offset + size) >= phys_ram_size) { -fprintf (stderr,"Not enough memory (requested_size = %u, max memory = %d)\n" , +fprintf (stderr,"Not enough memory (requested_size = %lu, max memory = %d)\n" , size, phys_ram_size);abort (); }
Signature · 7 lines
1.5.2.5 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
Avi Kivity
AppliedQuoted 9 lines · Carlo Marcelo Arenas Belon
The following patch complement
50096dbe4c8523d9855b0e2ee6f058a75e7942a3to avoid a compilation warning because of a formatting mismatch after making "size" long to allow for allocations bigger than 4GB and as can be seen by :
kvm-53/qemu/exec.c: In function `qemu_ram_alloc':kvm-53/qemu/exec.c:2098: warning: unsigned int format, long unsigned int arg (arg 3)
Applied, thanks.
Signature · 7 lines
error compiling committee.c: too many arguments to function ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/