diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-11-13 15:12:53 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-11-13 15:12:53 +0000 |
commit | 787519fb7c5c5a7b86bd2cbe8f3fa1c68743dc7f (patch) | |
tree | c9d8122df19dccd77be5590e007668fcae64bc6a | |
parent | 2009-11-13 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-787519fb7c5c5a7b86bd2cbe8f3fa1c68743dc7f.tar.bz2 |
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).
-rw-r--r-- | cpukit/ChangeLog | 5 | ||||
-rw-r--r-- | 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,5 +1,10 @@ 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). + +2009-11-13 Ralf Corsépius <ralf.corsepius@rtems.org> + * telnetd/telnetd.c (telnetd_dflt_spawn): Adjust prototype. 2009-11-12 Sebastian Huber <sebastian.huber@embedded-brains.de> 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), |