qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 04/14] target-arm: Use fprintf_function


From: Stefan Weil
Subject: [Qemu-devel] [PATCH 04/14] target-arm: Use fprintf_function
Date: Mon, 29 Mar 2010 21:16:55 +0200

Signed-off-by: Stefan Weil <address@hidden>
---
 target-arm/cpu.h       |    2 +-
 target-arm/helper.c    |    2 +-
 target-arm/translate.c |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/target-arm/cpu.h b/target-arm/cpu.h
index 3892db4..7c9d5ca 100644
--- a/target-arm/cpu.h
+++ b/target-arm/cpu.h
@@ -353,7 +353,7 @@ static inline int arm_feature(CPUARMState *env, int feature)
     return (env->features & (1u << feature)) != 0;
 }
 
-void arm_cpu_list(FILE *f, int (*cpu_fprintf)(FILE *f, const char *fmt, ...));
+void arm_cpu_list(FILE *f, fprintf_function cpu_fprintf);
 
 /* Interface between CPU and Interrupt controller.  */
 void armv7m_nvic_set_pending(void *opaque, int irq);
diff --git a/target-arm/helper.c b/target-arm/helper.c
index e092b21..dabea4a 100644
--- a/target-arm/helper.c
+++ b/target-arm/helper.c
@@ -332,7 +332,7 @@ static const struct arm_cpu_t arm_cpu_names[] = {
     { 0, NULL}
 };
 
-void arm_cpu_list(FILE *f, int (*cpu_fprintf)(FILE *f, const char *fmt, ...))
+void arm_cpu_list(FILE *f, fprintf_function cpu_fprintf)
 {
     int i;
 
diff --git a/target-arm/translate.c b/target-arm/translate.c
index 3b84c1d..f9898e9 100644
--- a/target-arm/translate.c
+++ b/target-arm/translate.c
@@ -9260,7 +9260,7 @@ static const char *cpu_mode_names[16] = {
 };
 
 void cpu_dump_state(CPUState *env, FILE *f,
-                    int (*cpu_fprintf)(FILE *f, const char *fmt, ...),
+                    fprintf_function cpu_fprintf,
                     int flags)
 {
     int i;
-- 
1.7.0





reply via email to

[Prev in Thread] Current Thread [Next in Thread]