diff options
author | Alan Modra <amodra@gmail.com> | 2000-01-26 23:11:48 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2000-01-26 23:11:48 +0000 |
commit | 305c72062b487da283913b9f4b3016b0546c64a3 (patch) | |
tree | a298d4281e21b134459e5f9d5ce964bb95469bc7 /gprof | |
parent | 4c63da97a708e211a7141e29082ab589cbdbcb12 (diff) | |
download | gdb-305c72062b487da283913b9f4b3016b0546c64a3.zip gdb-305c72062b487da283913b9f4b3016b0546c64a3.tar.gz gdb-305c72062b487da283913b9f4b3016b0546c64a3.tar.bz2 |
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/ChangeLog | 5 | ||||
-rw-r--r-- | gprof/utils.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gprof/ChangeLog b/gprof/ChangeLog index ae5e9f4..d121301 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 e1f031d..c72c02e 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) |