From 787519fb7c5c5a7b86bd2cbe8f3fa1c68743dc7f Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Fri, 13 Nov 2009 15:12:53 +0000 Subject: =?UTF-8?q?2009-11-13=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * libmisc/capture/capture-cli.c: Cast pointer to intptr_t to print it (Casting to int32_t is wrong). --- cpukit/ChangeLog | 5 +++++ cpukit/libmisc/capture/capture-cli.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 5d204a4e9c..f7a217f361 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,8 @@ +2009-11-13 Ralf Corsépius + + * libmisc/capture/capture-cli.c: Cast pointer to intptr_t to + print it (Casting to int32_t is wrong). + 2009-11-13 Ralf Corsépius * telnetd/telnetd.c (telnetd_dflt_spawn): Adjust prototype. diff --git a/cpukit/libmisc/capture/capture-cli.c b/cpukit/libmisc/capture/capture-cli.c index 06ed9ab460..c3b20f4269 100644 --- a/cpukit/libmisc/capture/capture-cli.c +++ b/cpukit/libmisc/capture/capture-cli.c @@ -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), -- cgit v1.2.3