]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* s390-mkopc.c (dumpTable): Provide a format string to printf so
authorNick Clifton <nickc@redhat.com>
Thu, 5 Dec 2013 13:36:17 +0000 (13:36 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 5 Dec 2013 13:36:17 +0000 (13:36 +0000)
that compiling with -Werror=format-security does not produce an
error.

opcodes/ChangeLog
opcodes/s390-mkopc.c

index 8557c6d0cf943c230e00dd830f188e6e14df5442..3f3e1545816255267019f07a94c4612c8e65aae1 100644 (file)
@@ -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.
index 6aed72b8182a64d7328df4dee86a0b7db52f7e52..872cf8cd730e60455a159fbffbd6a96692c51ca1 100644 (file)
@@ -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++)
     {