* utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
authorDavid S. Miller <davem@redhat.com>
Wed, 16 Nov 2011 18:14:53 +0000 (18:14 +0000)
committerDavid S. Miller <davem@redhat.com>
Wed, 16 Nov 2011 18:14:53 +0000 (18:14 +0000)
'tv_usec' to long for printf since these fields have a type which
varies.

gdb/ChangeLog
gdb/utils.c

index 1f406fa0adec85e6643cf2943766b04e5f3b4a4a..13e401ee79cd394f234f23e29ab759eb909e49ff 100644 (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.
index 82a0f458989c0ccfea001ef65019a195da0c5a22..a43b13da90cb9f8a25401a470f6fe8bf75ea1657 100644 (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)