aboutsummaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2013-12-05 13:36:17 +0000
committerNick Clifton <nickc@redhat.com>2013-12-05 13:36:17 +0000
commit61d4014c3c9ebc50bbb4805b94ff071a23ee383b (patch)
tree99ec75da8029852dc6fe34f5b80056dce0badb17 /opcodes
parentb30a5d18b1e54080f9b75ad3cf0ff626170327a6 (diff)
downloadgdb-61d4014c3c9ebc50bbb4805b94ff071a23ee383b.zip
gdb-61d4014c3c9ebc50bbb4805b94ff071a23ee383b.tar.gz
gdb-61d4014c3c9ebc50bbb4805b94ff071a23ee383b.tar.bz2
* s390-mkopc.c (dumpTable): Provide a format string to printf so
that compiling with -Werror=format-security does not produce an error.
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/ChangeLog6
-rw-r--r--opcodes/s390-mkopc.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index 8557c6d..3f3e154 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,9 @@
+2013-12-05 Nick Clifton <nickc@redhat.com>
+
+ * s390-mkopc.c (dumpTable): Provide a format string to printf so
+ that compiling with -Werror=format-security does not produce an
+ error.
+
2013-11-20 Yufeng Zhang <yufeng.zhang@arm.com>
* aarch64-opc.c (aarch64_pstatefields): Update.
diff --git a/opcodes/s390-mkopc.c b/opcodes/s390-mkopc.c
index 6aed72b..872cf8c 100644
--- a/opcodes/s390-mkopc.c
+++ b/opcodes/s390-mkopc.c
@@ -1,5 +1,5 @@
/* s390-mkopc.c -- Generates opcode table out of s390-opc.txt
- Copyright 2000, 2001, 2003, 2005, 2007, 2008 Free Software Foundation, Inc.
+ Copyright 2000-2013 Free Software Foundation, Inc.
Contributed by Martin Schwidefsky (schwidefsky@de.ibm.com).
This file is part of the GNU opcodes library.
@@ -298,7 +298,7 @@ dumpTable (void)
int ix;
/* Write hash table entries (slots). */
- printf (file_header);
+ printf ("%s", file_header);
for (ix = 0; ix < no_ops; ix++)
{