summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/stackchk/check.c
diff options
context:
space:
mode:
authorAndrei Chichak <andrei@cbfsystems.com>2017-11-17 23:01:41 -0700
committerChris Johns <chrisj@rtems.org>2017-12-07 09:46:32 +1100
commit1737e8f8673916319267163c0a7518ac087cf832 (patch)
treec04cb032265244fffcf50461bc94269aa92df71b /cpukit/libmisc/stackchk/check.c
parentsmpunsupported01: Add missing error check for rtems_task_mode (diff)
downloadrtems-1737e8f8673916319267163c0a7518ac087cf832.tar.bz2
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 '')
-rw-r--r--cpukit/libmisc/stackchk/check.c4
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 */