[rtems commit] libmisc/stackchk/check.c: correct formatting of stack pointers in Stack_check_Dump_threads_usage
Chris Johns
chrisj at rtems.org
Wed Dec 6 22:51:28 UTC 2017
Module: rtems
Branch: master
Commit: 1737e8f8673916319267163c0a7518ac087cf832
Changeset: http://git.rtems.org/rtems/commit/?id=1737e8f8673916319267163c0a7518ac087cf832
Author: Andrei Chichak <andrei at cbfsystems.com>
Date: Fri Nov 17 23:01:41 2017 -0700
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
---
cpukit/libmisc/stackchk/check.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cpukit/libmisc/stackchk/check.c b/cpukit/libmisc/stackchk/check.c
index afc2761..d19fef4 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 */
More information about the vc
mailing list