From 305c72062b487da283913b9f4b3016b0546c64a3 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 26 Jan 2000 23:11:48 +0000 Subject: 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. --- gprof/ChangeLog | 5 +++++ gprof/utils.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'gprof') 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 + + * utils.c (print_name_only): Don't pass error strings to + printf as format arg. + 1999-09-24 Nick Clifton * 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) -- cgit v1.1