From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NwKW5-0006aP-Uf for qemu-devel@nongnu.org; Mon, 29 Mar 2010 15:20:53 -0400 Received: from [140.186.70.92] (port=33899 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NwKW4-0006a5-EI for qemu-devel@nongnu.org; Mon, 29 Mar 2010 15:20:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NwKW1-0008EQ-Fd for qemu-devel@nongnu.org; Mon, 29 Mar 2010 15:20:51 -0400 Received: from moutng.kundenserver.de ([212.227.17.10]:58498) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NwKW1-0008E4-41 for qemu-devel@nongnu.org; Mon, 29 Mar 2010 15:20:49 -0400 From: Stefan Weil Date: Mon, 29 Mar 2010 21:17:05 +0200 Message-Id: <1269890225-13639-15-git-send-email-weil@mail.berlios.de> In-Reply-To: <1269890225-13639-1-git-send-email-weil@mail.berlios.de> References: <1269890225-13639-1-git-send-email-weil@mail.berlios.de> Subject: [Qemu-devel] [PATCH 14/14] tcg: Use fprintf_function List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: QEMU Developers Signed-off-by: Stefan Weil --- tcg/tcg.c | 6 ++---- tcg/tcg.h | 3 +-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/tcg/tcg.c b/tcg/tcg.c index 3294743..a40b797 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -2087,8 +2087,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; @@ -2132,8 +2131,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"); } diff --git a/tcg/tcg.h b/tcg/tcg.h index 166c889..5bf57c6 100644 --- a/tcg/tcg.h +++ b/tcg/tcg.h @@ -384,8 +384,7 @@ static inline TCGv_i64 tcg_temp_local_new_i64(void) void tcg_temp_free_i64(TCGv_i64 arg); char *tcg_get_arg_str_i64(TCGContext *s, char *buf, int buf_size, TCGv_i64 arg); -void tcg_dump_info(FILE *f, - int (*cpu_fprintf)(FILE *f, const char *fmt, ...)); +void tcg_dump_info(FILE *f, fprintf_function cpu_fprintf); #define TCG_CT_ALIAS 0x80 #define TCG_CT_IALIAS 0x40 -- 1.7.0