diff options
author | Chris Johns <chrisj@rtems.org> | 2016-05-31 17:37:17 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2016-06-03 17:28:59 +1000 |
commit | 560db81027c507476cbc552e16e6ca7440eb2b2b (patch) | |
tree | 9ce87bbb2ecc5b29fba96cac7117bac5df115399 | |
parent | arm: Fix printk warnings. (diff) | |
download | rtems-560db81027c507476cbc552e16e6ca7440eb2b2b.tar.bz2 |
libmisc/stackchk: Fix printk warnings.
-rw-r--r-- | cpukit/libmisc/stackchk/check.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cpukit/libmisc/stackchk/check.c b/cpukit/libmisc/stackchk/check.c index e8e360de15..39650f50e7 100644 --- a/cpukit/libmisc/stackchk/check.c +++ b/cpukit/libmisc/stackchk/check.c @@ -232,7 +232,7 @@ void Stack_check_report_blown_task(Thread_Control *running, bool pattern_ok) char name[32]; printk("BLOWN STACK!!!\n"); - printk("task control block: 0x%08" PRIxPTR "\n", running); + printk("task control block: 0x%08" PRIxPTR "\n", (intptr_t) running); printk("task ID: 0x%08lx\n", (unsigned long) running->Object.id); printk( "task name: 0x%08" PRIx32 "\n", @@ -245,15 +245,15 @@ void Stack_check_report_blown_task(Thread_Control *running, bool pattern_ok) printk( "task stack area (%lu Bytes): 0x%08" PRIxPTR " .. 0x%08" PRIxPTR "\n", (unsigned long) stack->size, - stack->area, - ((char *) stack->area + stack->size) + (intptr_t) stack->area, + (intptr_t) ((char *) stack->area + stack->size) ); if (!pattern_ok) { printk( "damaged pattern area (%lu Bytes): 0x%08" PRIxPTR " .. 0x%08" PRIxPTR "\n", (unsigned long) PATTERN_SIZE_BYTES, - pattern_area, - (pattern_area + PATTERN_SIZE_BYTES) + (intptr_t) pattern_area, + (intptr_t) (pattern_area + PATTERN_SIZE_BYTES) ); } @@ -261,7 +261,7 @@ void Stack_check_report_blown_task(Thread_Control *running, bool pattern_ok) if (rtems_configuration_get_user_multiprocessing_table()) { printk( "node: 0x%08" PRIxPTR "\n", - rtems_configuration_get_user_multiprocessing_table()->node + (intptr_t) rtems_configuration_get_user_multiprocessing_table()->node ); } #endif |