mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-06 15:43:15 +00:00
2010-04-10 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/stackchk/check.c: Remove bogus casts. Use PRIxPTR to printk pointers.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2010-04-10 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
|
* libmisc/stackchk/check.c: Remove bogus casts.
|
||||||
|
Use PRIxPTR to printk pointers.
|
||||||
|
|
||||||
2010-04-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
|
2010-04-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
|
||||||
|
|
||||||
* libblock/src/blkdev.c: Fixed disk delete.
|
* libblock/src/blkdev.c: Fixed disk delete.
|
||||||
|
|||||||
@@ -218,36 +218,35 @@ void Stack_check_report_blown_task(Thread_Control *running, bool pattern_ok)
|
|||||||
char name [32];
|
char name [32];
|
||||||
|
|
||||||
printk("BLOWN STACK!!!\n");
|
printk("BLOWN STACK!!!\n");
|
||||||
printk("task control block: 0x%08lx\n", (unsigned long) running);
|
printk("task control block: 0x%08" PRIxPTR "\n", running);
|
||||||
printk("task ID: 0x%08lx\n", (unsigned long) running->Object.id);
|
printk("task ID: 0x%08lx\n", (unsigned long) running->Object.id);
|
||||||
printk(
|
printk(
|
||||||
"task name: 0x%08lx\n",
|
"task name: 0x%08" PRIx32 "\n",
|
||||||
(unsigned long) running->Object.name.name_u32
|
running->Object.name.name_u32
|
||||||
);
|
);
|
||||||
printk(
|
printk(
|
||||||
"task name string: %s\n",
|
"task name string: %s\n",
|
||||||
rtems_object_get_name(running->Object.id, sizeof(name), name)
|
rtems_object_get_name(running->Object.id, sizeof(name), name)
|
||||||
);
|
);
|
||||||
printk(
|
printk(
|
||||||
"task stack area (%lu Bytes): 0x%08lx .. 0x%08lx\n",
|
"task stack area (%lu Bytes): 0x%08" PRIxPTR " .. 0x%08" PRIxPTR "\n",
|
||||||
(unsigned long) stack->size,
|
(unsigned long) stack->size,
|
||||||
(unsigned long) stack->area,
|
stack->area,
|
||||||
(unsigned long) ((char *) stack->area + stack->size)
|
((char *) stack->area + stack->size)
|
||||||
);
|
);
|
||||||
if (!pattern_ok) {
|
if (!pattern_ok) {
|
||||||
printk(
|
printk(
|
||||||
"damaged pattern area (%lu Bytes): 0x%08lx .. 0x%08lx\n",
|
"damaged pattern area (%lu Bytes): 0x%08" PRIxPTR " .. 0x%08" PRIxPTR "\n",
|
||||||
(unsigned long) PATTERN_SIZE_BYTES,
|
(unsigned long) PATTERN_SIZE_BYTES,
|
||||||
(unsigned long) pattern_area,
|
pattern_area,
|
||||||
(unsigned long) (pattern_area + PATTERN_SIZE_BYTES)
|
(pattern_area + PATTERN_SIZE_BYTES)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(RTEMS_MULTIPROCESSING)
|
#if defined(RTEMS_MULTIPROCESSING)
|
||||||
if (rtems_configuration_get_user_multiprocessing_table()) {
|
if (rtems_configuration_get_user_multiprocessing_table()) {
|
||||||
printk(
|
printk(
|
||||||
"node: 0x%08lx\n",
|
"node: 0x%08" PRIxPTR "\n",
|
||||||
(unsigned long)
|
|
||||||
rtems_configuration_get_user_multiprocessing_table()->node
|
rtems_configuration_get_user_multiprocessing_table()->node
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user