target-sparc: Use fprintf_function (format checking)
PATCH 1/1 target-sparc: Use fprintf_function (format checking)
This change was missing in commit9a78eead0c74333a394c0f7bbfc4423ac746fcd5.
Cc Blue Swirl <[email protected]>
Signed-off-by Stefan Weil <[email protected]>
--- target-sparc/cpu.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
target-sparc/cpu.h +2 -2
@@ -2,6 +2,7 @@#define CPU_SPARC_H #include "config.h" +#include "qemu-common.h" #if !defined(TARGET_SPARC64 )#define TARGET_LONG_BITS 32
@@ -442,8 +443,7 @@ typedef struct CPUSPARCState {/* helper.c */ CPUSPARCState *cpu_sparc_init (const char *cpu_model);void cpu_sparc_set_id (CPUSPARCState *env,unsigned int cpu); -void sparc_cpu_list (FILE *f,int (*cpu_fprintf)(FILE *f,const char *fmt, - ...)); +void sparc_cpu_list (FILE *f,fprintf_function cpu_fprintf);void cpu_lock (void );void cpu_unlock (void ); int cpu_sparc_handle_mmu_fault(CPUSPARCState *env1, target_ulong address, int rw,
Signature · 1 line
1.7.2.3
Blue Swirl
AppliedThanks, applied.
Quoted 35 lines · Stefan Weil
This change was missing in commit
9a78eead0c74333a394c0f7bbfc4423ac746fcd5.Cc Blue Swirl <[email protected]>Signed-off-by Stefan Weil <[email protected]>---
target-sparc/cpu.h | 4 ++--1 files changed, 2 insertions(+), 2 deletions(-)target-sparc/cpu.h +2
-3@@ -2,6 +2,7 @@ #define CPU_SPARC_H #include "config.h" +#include "qemu-common.h" #if !defined(TARGET_SPARC64) #define TARGET_LONG_BITS 32@@ -442,8 +443,7 @@ typedef struct CPUSPARCState { /* helper.c */ CPUSPARCState *cpu_sparc_init(const char *cpu_model); void cpu_sparc_set_id(CPUSPARCState *env, unsigned int cpu); -void sparc_cpu_list (FILE *f,int (*cpu_fprintf)(FILE *f,const char *fmt, - ...)); +void sparc_cpu_list (FILE *f,fprintf_function cpu_fprintf); void cpu_lock(void); void cpu_unlock(void); int cpu_sparc_handle_mmu_fault(CPUSPARCState *env1, target_ulong address, int rw, --1.7.2.3