From 484d9d37355f1941fb41c6cd61ddbb64c157e099 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Tue, 2 Apr 2013 20:44:25 +0300 Subject: Bug fix in profiling output. --- profile.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'profile.c') diff --git a/profile.c b/profile.c index 4764fe00..8c5f3b79 100644 --- a/profile.c +++ b/profile.c @@ -935,7 +935,6 @@ print_lib_list(FILE *prof_fp) SRCFILE *s; static bool printed_header = false; - for (s = srcfiles->next; s != srcfiles; s = s->next) { if (s->stype == SRC_EXTLIB) { if (! printed_header) { @@ -946,7 +945,7 @@ print_lib_list(FILE *prof_fp) } } if (printed_header) /* we found some */ - printf("\n"); + fprintf(prof_fp, "\n"); } /* dump_prog --- dump the program */ -- cgit v1.2.3