aboutsummaryrefslogtreecommitdiff
path: root/gdb/tracepoint.c
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>2011-11-21 00:43:48 +0000
committerStan Shebs <shebs@codesourcery.com>2011-11-21 00:43:48 +0000
commit7f767d1066129be91a9218eb62245037814ae201 (patch)
tree2c31063b8622a70e91318d86e3e6c26797504ce4 /gdb/tracepoint.c
parent786d380067496b47f3ba24cd6e02875cebe497e1 (diff)
downloadgdb-7f767d1066129be91a9218eb62245037814ae201.zip
gdb-7f767d1066129be91a9218eb62245037814ae201.tar.gz
gdb-7f767d1066129be91a9218eb62245037814ae201.tar.bz2
Fix a 32-bit compile error in the previous checkin
Diffstat (limited to 'gdb/tracepoint.c')
-rw-r--r--gdb/tracepoint.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c
index 9b0738e..a2e2cd4 100644
--- a/gdb/tracepoint.c
+++ b/gdb/tracepoint.c
@@ -1995,16 +1995,20 @@ trace_status_command (char *args, int from_tty)
/* Reporting a run time is more readable than two long numbers. */
printf_filtered (_("Trace started at %ld.%06ld secs, stopped %ld.%06ld secs later.\n"),
- ts->start_time / 1000000, ts->start_time % 1000000,
- run_time / 1000000, run_time % 1000000);
+ (long int) ts->start_time / 1000000,
+ (long int) ts->start_time % 1000000,
+ (long int) run_time / 1000000,
+ (long int) run_time % 1000000);
}
else
printf_filtered (_("Trace started at %ld.%06ld secs.\n"),
- ts->start_time / 1000000, ts->start_time % 1000000);
+ (long int) ts->start_time / 1000000,
+ (long int) ts->start_time % 1000000);
}
else if (ts->stop_time)
printf_filtered (_("Trace stopped at %ld.%06ld secs.\n"),
- ts->stop_time / 1000000, ts->stop_time % 1000000);
+ (long int) ts->stop_time / 1000000,
+ (long int) ts->stop_time % 1000000);
/* Now report any per-tracepoint status available. */
tp_vec = all_tracepoints ();
@@ -2119,10 +2123,12 @@ trace_status_mi (int on_stop)
char buf[100];
xsnprintf (buf, sizeof buf, "%ld.%06ld",
- ts->start_time / 1000000, ts->start_time % 1000000);
+ (long int) ts->start_time / 1000000,
+ (long int) ts->start_time % 1000000);
ui_out_field_string (uiout, "start-time", buf);
xsnprintf (buf, sizeof buf, "%ld.%06ld",
- ts->stop_time / 1000000, ts->stop_time % 1000000);
+ (long int) ts->stop_time / 1000000,
+ (long int) ts->stop_time % 1000000);
ui_out_field_string (uiout, "stop-time", buf);
}
}