Index: opcodes/hppa-dis.c |
diff --git a/opcodes/hppa-dis.c b/opcodes/hppa-dis.c |
index 74d9ece9f8a487fc44ab2ce22733b8490df2378a..6c3f4de2c466a1cbe793b3451f885b0d3f5613d4 100644 |
--- a/opcodes/hppa-dis.c |
+++ b/opcodes/hppa-dis.c |
@@ -1,6 +1,6 @@ |
/* Disassembler for the PA-RISC. Somewhat derived from sparc-pinsn.c. |
Copyright 1989, 1990, 1992, 1993, 1994, 1995, 1998, 1999, 2000, 2001, 2003, |
- 2005, 2007 Free Software Foundation, Inc. |
+ 2005, 2007, 2012 Free Software Foundation, Inc. |
Contributed by the Center for Software Science at the |
University of Utah (pa-gdb-bugs@cs.utah.edu). |
@@ -176,13 +176,13 @@ static const char *const add_compl_names[] = { 0, "", ",l", ",tsv" }; |
static void |
fput_reg (unsigned reg, disassemble_info *info) |
{ |
- (*info->fprintf_func) (info->stream, reg ? reg_names[reg] : "r0"); |
+ (*info->fprintf_func) (info->stream, "%s", reg ? reg_names[reg] : "r0"); |
} |
static void |
fput_fp_reg (unsigned reg, disassemble_info *info) |
{ |
- (*info->fprintf_func) (info->stream, reg ? fp_reg_names[reg] : "fr0"); |
+ (*info->fprintf_func) (info->stream, "%s", reg ? fp_reg_names[reg] : "fr0"); |
} |
static void |
@@ -199,7 +199,7 @@ fput_fp_reg_r (unsigned reg, disassemble_info *info) |
static void |
fput_creg (unsigned reg, disassemble_info *info) |
{ |
- (*info->fprintf_func) (info->stream, control_reg[reg]); |
+ (*info->fprintf_func) (info->stream, "%s", control_reg[reg]); |
} |
/* Print constants with sign. */ |