* utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and

'tv_usec' to long for printf since these fields have a type which
	varies.
This commit is contained in:
David S. Miller 2011-11-16 18:14:53 +00:00
parent 7bd942df4a
commit 2b54dda2fa
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2011-11-16 David S. Miller <davem@davemloft.net>
* utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
'tv_usec' to long for printf since these fields have a type which
varies.
2011-11-15 Doug Evans <dje@google.com>
* buildsym.c (add_symbol_to_list): Delete outdated comment.

View File

@ -707,7 +707,8 @@ report_command_stats (void *arg)
? _("Startup time: %ld.%06ld (cpu), %ld.%06ld (wall)\n")
: _("Command execution time: %ld.%06ld (cpu), %ld.%06ld (wall)\n"),
cmd_time / 1000000, cmd_time % 1000000,
delta_wall_time.tv_sec, delta_wall_time.tv_usec);
(long) delta_wall_time.tv_sec,
(long) delta_wall_time.tv_usec);
}
if (display_space)