diff options
author | Stefan Weil <weil@mail.berlios.de> | 2010-10-22 23:03:31 +0200 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-10-30 08:01:58 +0000 |
commit | 405cf9ff007a62f120e2f38a517b41e1a1dbf0ce (patch) | |
tree | cbca2c715cb44c0c71f349c33a3e74fc5a42fca5 /tcg/tcg.c | |
parent | f868445a502a75b6ac785dddbcc3233cc5f986b0 (diff) | |
download | qemu-405cf9ff007a62f120e2f38a517b41e1a1dbf0ce.zip qemu-405cf9ff007a62f120e2f38a517b41e1a1dbf0ce.tar.gz qemu-405cf9ff007a62f120e2f38a517b41e1a1dbf0ce.tar.bz2 |
tcg: Use fprintf_function (format checking)
fprintf_function uses format checking with GCC_FMT_ATTR.
Cc: Blue Swirl <blauwirbel@gmail.com>
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'tcg/tcg.c')
-rw-r--r-- | tcg/tcg.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -2124,8 +2124,7 @@ int tcg_gen_code_search_pc(TCGContext *s, uint8_t *gen_code_buf, long offset) } #ifdef CONFIG_PROFILER -void tcg_dump_info(FILE *f, - int (*cpu_fprintf)(FILE *f, const char *fmt, ...)) +void tcg_dump_info(FILE *f, fprintf_function cpu_fprintf) { TCGContext *s = &tcg_ctx; int64_t tot; @@ -2169,8 +2168,7 @@ void tcg_dump_info(FILE *f, dump_op_count(); } #else -void tcg_dump_info(FILE *f, - int (*cpu_fprintf)(FILE *f, const char *fmt, ...)) +void tcg_dump_info(FILE *f, fprintf_function cpu_fprintf) { cpu_fprintf(f, "[TCG profiler not compiled]\n"); } |