From 1737e8f8673916319267163c0a7518ac087cf832 Mon Sep 17 00:00:00 2001 From: Andrei Chichak Date: Fri, 17 Nov 2017 23:01:41 -0700 Subject: libmisc/stackchk/check.c: correct formatting of stack pointers in Stack_check_Dump_threads_usage Pointers were being printed as 0x rather than 0x. I altered the formatting define used to give the correct formatting. Close #3240 --- cpukit/libmisc/stackchk/check.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpukit/libmisc/stackchk/check.c') 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 */ -- cgit v1.2.3