2009-11-13 Ralf Corsépius <ralf.corsepius@rtems.org>

* libmisc/capture/capture-cli.c: Cast pointer to intptr_t to
	print it (Casting to int32_t is wrong).
This commit is contained in:
Ralf Corsepius
2009-11-13 15:12:53 +00:00
parent 10b83e6f80
commit 787519fb7c
2 changed files with 7 additions and 2 deletions

View File

@@ -1363,9 +1363,9 @@ rtems_capture_cli_trace_records (int argc,
while (count--)
{
if (csv)
fprintf (stdout, "%08" PRIx32 ",%03" PRIu32
fprintf (stdout, "%08" PRIxPTR ",%03" PRIu32
",%03" PRIu32 ",%04" PRIx32 ",%" PRId32 ",%" PRId32 "\n",
(uint32_t) rec->task,
(uintptr_t) rec->task,
(rec->events >> RTEMS_CAPTURE_REAL_PRIORITY_EVENT) & 0xff,
(rec->events >> RTEMS_CAPTURE_CURR_PRIORITY_EVENT) & 0xff,
(rec->events >> RTEMS_CAPTURE_EVENT_START),