diff -ur ltrace-0.5/summary.c ltrace-0.5-dasho/summary.c --- ltrace-0.5/summary.c 2006-04-24 12:14:01.000000000 -0400 +++ ltrace-0.5-dasho/summary.c 2008-05-19 15:22:13.000000000 -0400 @@ -68,16 +68,17 @@ qsort(entries, num_entries, sizeof(*entries), compar); - printf("%% time seconds usecs/call calls function\n"); - printf - ("------ ----------- ----------- --------- --------------------\n"); + fprintf(output, + "%% time seconds usecs/call calls function\n"); + fprintf(output, + "------ ----------- ----------- --------- --------------------\n"); for (i = 0; i < num_entries; i++) { unsigned long long int c; unsigned long long int p; c = 1000000 * (int)entries[i].tv.tv_sec + (int)entries[i].tv.tv_usec; p = 100000 * c / tot_usecs + 5; - printf("%3lu.%02lu %4d.%06d %11lu %9d %s\n", + fprintf(output, "%3lu.%02lu %4d.%06d %11lu %9d %s\n", (unsigned long int)(p / 1000), (unsigned long int)((p / 10) % 100), (int)entries[i].tv.tv_sec, (int)entries[i].tv.tv_usec, @@ -85,8 +86,8 @@ entries[i].count, opt_C ? my_demangle(entries[i].name) : entries[i].name); } - printf - ("------ ----------- ----------- --------- --------------------\n"); - printf("100.00 %4lu.%06lu %9d total\n", tot_usecs / 1000000, - tot_usecs % 1000000, tot_count); + fprintf(output, + "------ ----------- ----------- --------- --------------------\n"); + fprintf(output, "100.00 %4lu.%06lu %9d total\n", + tot_usecs / 1000000, tot_usecs % 1000000, tot_count); } diff -urp ltrace-0.5/testsuite/ltrace.minor/count-record.exp ltrace-0.5-pm/testsuite/ltrace.minor/count-record.exp --- ltrace-0.5/testsuite/ltrace.minor/count-record.exp 2006-03-14 00:12:01.000000000 +0100 +++ ltrace-0.5-pm/testsuite/ltrace.minor/count-record.exp 2009-02-20 16:48:28.000000000 +0100 @@ -27,8 +27,6 @@ if [regexp {ELF from incompatible archit } -ltrace_saveoutput $exec_output $srcdir/$subdir/$binfile.ltrace - # # This is a sample output and Verify the forth and fifth column. #