From: David S. Miller Date: Wed, 16 Nov 2011 18:14:53 +0000 (+0000) Subject: * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2b54dda2fae8e3b6020b5c0dc217983f895a1554;p=binutils-gdb.git * 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1f406fa0ade..13e401ee79c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2011-11-16 David S. Miller + + * 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 * buildsym.c (add_symbol_to_list): Delete outdated comment. diff --git a/gdb/utils.c b/gdb/utils.c index 82a0f458989..a43b13da90c 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -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)