aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorDavid S. Miller <davem@redhat.com>2011-11-16 18:14:53 +0000
committerDavid S. Miller <davem@redhat.com>2011-11-16 18:14:53 +0000
commit2b54dda2fae8e3b6020b5c0dc217983f895a1554 (patch)
treeae62f53e36967a6d04dd2398a5f5d9a5e14140da /gdb
parent7bd942df4ab6dddeb0318d2621bd8db6f8ff65cb (diff)
downloadgdb-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')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/utils.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 1f406fa..13e401e 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
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)