From 2b54dda2fae8e3b6020b5c0dc217983f895a1554 Mon Sep 17 00:00:00 2001 From: "David S. Miller" Date: Wed, 16 Nov 2011 18:14:53 +0000 Subject: [PATCH] * 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. --- gdb/ChangeLog | 6 ++++++ gdb/utils.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) 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) -- 2.30.2