aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2008-09-24 14:37:35 +0000
committerAlan Modra <amodra@gmail.com>2008-09-24 14:37:35 +0000
commit725569295bb3cb70123edd407212a2f3093196cc (patch)
tree53b362890f1e8462d8448fc5c9ab1d607a414246 /binutils
parent68e007ca21d4d375218ff1accd4678dbb31769e0 (diff)
downloadgdb-725569295bb3cb70123edd407212a2f3093196cc.zip
gdb-725569295bb3cb70123edd407212a2f3093196cc.tar.gz
gdb-725569295bb3cb70123edd407212a2f3093196cc.tar.bz2
PR 6913
* dwarf.c (print_dwarf_vma): Don't call printf without format string.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/dwarf.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index cdff4b0..e909e77 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2008-09-25 Alan Modra <amodra@bigpond.net.au>
+
+ PR 6913
+ * dwarf.c (print_dwarf_vma): Don't call printf without format string.
+
2008-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
Suppress warnings on NONE relocations to discarded sections.
diff --git a/binutils/dwarf.c b/binutils/dwarf.c
index 3a5ef0f..42ddd94 100644
--- a/binutils/dwarf.c
+++ b/binutils/dwarf.c
@@ -186,7 +186,7 @@ print_dwarf_vma (dwarf_vma val, unsigned byte_size)
snprintf (buff, sizeof (buff), "%16.16lx ", val);
#endif
- printf (buff + (byte_size == 4 ? 8 : 0));
+ fputs (buff + (byte_size == 4 ? 8 : 0), stdout);
}
static unsigned long int