[sim]: Only print the profile info title once.

sim/common/ChangeLog:

        From John Wehle  <john@feith.com>  (tiny patch)
	* sim-profile.c (profile_info): Only print the title once.
This commit is contained in:
Joel Brobecker 2011-10-19 00:54:03 +00:00
parent abd242a908
commit f1a81b376a
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2011-10-18 John Wehle <john@feith.com> (tiny patch)
* sim-profile.c (profile_info): Only print the title once.
2011-10-17 Mike Frysinger <vapier@gentoo.org>
* acinclude.m4: Rename from aclocal.m4.

View File

@ -1132,7 +1132,7 @@ profile_info (SIM_DESC sd, int verbose)
/* FIXME: If the number of processors can be selected on the command line,
then MAX_NR_PROCESSORS will need to take an argument of `sd'. */
for (c = 0; c < MAX_NR_PROCESSORS; ++c)
for (c = 0; c < MAX_NR_PROCESSORS && !print_title_p; ++c)
{
sim_cpu *cpu = STATE_CPU (sd, c);
PROFILE_DATA *data = CPU_PROFILE_DATA (cpu);
@ -1142,6 +1142,7 @@ profile_info (SIM_DESC sd, int verbose)
{
profile_printf (sd, cpu, "Summary profiling results:\n\n");
print_title_p = 1;
break;
}
}