diff options
author | Andrei Chichak <andrei@cbfsystems.com> | 2017-11-17 23:01:41 -0700 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2017-12-07 09:46:32 +1100 |
commit | 1737e8f8673916319267163c0a7518ac087cf832 (patch) | |
tree | c04cb032265244fffcf50461bc94269aa92df71b /cpukit | |
parent | e9e0f1d4649191a419274b76cacad354f2a45798 (diff) |
libmisc/stackchk/check.c: correct formatting of stack pointers in Stack_check_Dump_threads_usage
Pointers were being printed as 0x<decimal> rather than 0x<hex>. I altered the formatting define used
to give the correct formatting.
Close #3240
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/libmisc/stackchk/check.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/libmisc/stackchk/check.c b/cpukit/libmisc/stackchk/check.c index afc276165f..d19fef4dcf 100644 --- a/cpukit/libmisc/stackchk/check.c +++ b/cpukit/libmisc/stackchk/check.c @@ -407,7 +407,7 @@ static bool Stack_check_Dump_threads_usage( rtems_printf( printer, - "0x%08" PRIx32 " %-21s 0x%08" PRIuPTR " 0x%08" PRIuPTR " 0x%08" PRIuPTR " %6" PRId32 " ", + "0x%08" PRIx32 " %-21s 0x%08" PRIxPTR " 0x%08" PRIxPTR " 0x%08" PRIxPTR " %6" PRId32 " ", id, name, (uintptr_t) stack->area, @@ -451,7 +451,7 @@ void rtems_stack_checker_report_usage_with_plugin( rtems_printf( printer, " STACK USAGE BY THREAD\n" - "ID NAME LOW HIGH CURRENT AVAIL USED\n" + "ID NAME LOW HIGH CURRENT AVAIL USED\n" ); /* iterate over all threads and dump the usage */ |