]> git.proxmox.com Git - qemu.git/commit - exec.c
exec: Use fprintf_function for dump_exec_info (format checking)
authorStefan Weil <weil@mail.berlios.de>
Fri, 22 Oct 2010 21:03:32 +0000 (23:03 +0200)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 30 Oct 2010 08:01:59 +0000 (08:01 +0000)
commit055403b2a72729497fb58e0c6293547e767679d3
tree245409ee6c18e22ad88b1e39c257c80f77de66ab
parent405cf9ff007a62f120e2f38a517b41e1a1dbf0ce
exec: Use fprintf_function for dump_exec_info (format checking)

fprintf_function uses format checking with GCC_FMT_ATTR.

It is declared in qemu-common.h and used in cpu-all.h
(which is included from cpu.h), so qemu-common.h must
be included earlier. Some redundant include statements
for standard include files were removed.

Fix also two format errors (ptrdiff_t needs %td).

Cc: Blue Swirl <blauwirbel@gmail.com>
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
cpu-all.h
exec.c