diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2013-04-02 20:44:25 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2013-04-02 20:44:25 +0300 |
commit | 484d9d37355f1941fb41c6cd61ddbb64c157e099 (patch) | |
tree | f783ebb70262de8e77d8783f86fabc84be672c99 | |
parent | 984f2f063f5c1cbfeb1cb8f62901ad8ef7884f19 (diff) | |
download | egawk-484d9d37355f1941fb41c6cd61ddbb64c157e099.tar.gz egawk-484d9d37355f1941fb41c6cd61ddbb64c157e099.tar.bz2 egawk-484d9d37355f1941fb41c6cd61ddbb64c157e099.zip |
Bug fix in profiling output.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | profile.c | 3 |
2 files changed, 6 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2013-04-02 Arnold D. Robbins <arnold@skeeve.com> + + * profile.c (print_lib_list): Send final newline to prof_fp + instead of stdout. Thanks to Hermann Peifer for the bug report. + 2013-03-27 Arnold D. Robbins <arnold@skeeve.com> * Makefile.am (SUBDIRS): Move extension back into the middle of @@ -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 */ |