[CODIFF]: Be even more consistent on the summary lines

Forgotten change similar to the previous patch.

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Ilpo Järvinen 2008-01-03 21:33:02 -02:00 committed by Arnaldo Carvalho de Melo
parent aebb6313c0
commit f9fd585591
1 changed files with 5 additions and 12 deletions

View File

@ -568,27 +568,20 @@ static int cu_show_diffs_iterator(struct cu *cu, void *cookie)
static void print_total_function_diff(const char *filename)
{
int kind = 0;
printf("\n%s:\n", filename);
printf(" %u function%s changed", total_nr_functions_changed,
total_nr_functions_changed > 1 ? "s" : "");
if (total_function_bytes_added != 0) {
++kind;
if (total_function_bytes_added != 0)
printf(", %u bytes added", total_function_bytes_added);
}
if (total_function_bytes_removed != 0) {
++kind;
if (total_function_bytes_removed != 0)
printf(", %u bytes removed", total_function_bytes_removed);
}
if (kind == 2)
printf(", diff: %+d",
(total_function_bytes_added -
total_function_bytes_removed));
printf(", diff: %+d",
(total_function_bytes_added -
total_function_bytes_removed));
putchar('\n');
}