diff options
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) |