diff options
author | David S. Miller <davem@redhat.com> | 2011-11-16 18:14:53 +0000 |
---|---|---|
committer | David S. Miller <davem@redhat.com> | 2011-11-16 18:14:53 +0000 |
commit | 2b54dda2fae8e3b6020b5c0dc217983f895a1554 (patch) | |
tree | ae62f53e36967a6d04dd2398a5f5d9a5e14140da /gdb/utils.c | |
parent | 7bd942df4ab6dddeb0318d2621bd8db6f8ff65cb (diff) | |
download | gdb-2b54dda2fae8e3b6020b5c0dc217983f895a1554.zip gdb-2b54dda2fae8e3b6020b5c0dc217983f895a1554.tar.gz gdb-2b54dda2fae8e3b6020b5c0dc217983f895a1554.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/utils.c')
-rw-r--r-- | gdb/utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/utils.c b/gdb/utils.c index 82a0f45..a43b13d 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) |