summaryrefslogtreecommitdiff
path: root/gprof
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2000-01-26 23:11:48 +0000
committerAlan Modra <amodra@gmail.com>2000-01-26 23:11:48 +0000
commit305c72062b487da283913b9f4b3016b0546c64a3 (patch)
treea298d4281e21b134459e5f9d5ce964bb95469bc7 /gprof
parent4c63da97a708e211a7141e29082ab589cbdbcb12 (diff)
downloadbinutils-gdb-305c72062b487da283913b9f4b3016b0546c64a3.tar.gz
Most of these changes are really only cosmetic. The readelf.c patch
fixes a thinko in get_dynamic_flags. I found at least one message string that included a `%' being passed to printf in the format argument.
Diffstat (limited to 'gprof')
-rw-r--r--gprof/ChangeLog5
-rw-r--r--gprof/utils.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gprof/ChangeLog b/gprof/ChangeLog
index ae5e9f439f4..d121301027d 100644
--- a/gprof/ChangeLog
+++ b/gprof/ChangeLog
@@ -1,3 +1,8 @@
+2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
+
+ * utils.c (print_name_only): Don't pass error strings to
+ printf as format arg.
+
1999-09-24 Nick Clifton <nickc@cygnus.com>
* gmon_io.c (gmon_out_read): Make sure that sensible values
diff --git a/gprof/utils.c b/gprof/utils.c
index e1f031d5e8d..c72c02e01f0 100644
--- a/gprof/utils.c
+++ b/gprof/utils.c
@@ -69,7 +69,7 @@ DEFUN (print_name_only, (self), Sym * self)
}
}
sprintf (buf, " (%s:%d)", filename, self->line_num);
- printf (buf);
+ printf ("%s", buf);
size += strlen (buf);
}
if (demangled)