Skip to contentSkip to conversation

target-sparc: Use fprintf_function (format checking)

PATCH Applied Stefan Weil 2 participants 2 messages Nov 15, 2010 – Dec 4, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target-sparc: Use fprintf_function (format checking)

This change was missing in commit
9a78eead0c74333a394c0f7bbfc4423ac746fcd5.

---
 target-sparc/cpu.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
target-sparc/cpu.h +2 -2
index 7e0d17c..eb5d9c1 100644
@@ -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
Applied
#1 lore raw

Thanks, applied.

Quoted 35 lines · Stefan Weil

This change was missing in commit
9a78eead0c74333a394c0f7bbfc4423ac746fcd5.

---
 target-sparc/cpu.h |    4 ++--

 1 files changed, 2 insertions(+), 2 deletions(-)
target-sparc/cpu.h +2 -3
index 7e0d17c..eb5d9c1 100644
@@ -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