Changeset a89c963 in rtems


Ignore:
Timestamp:
Apr 10, 2010, 7:32:13 AM (10 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, master
Children:
c01dba12
Parents:
1993545
Message:

2010-04-10 Ralf Corsépius <ralf.corsepius@…>

  • libmisc/stackchk/check.c: Remove bogus casts. Use PRIxPTR to printk pointers.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r1993545 ra89c963  
     12010-04-10      Ralf Corsépius <ralf.corsepius@rtems.org>
     2
     3        * libmisc/stackchk/check.c: Remove bogus casts.
     4        Use PRIxPTR to printk pointers.
     5
    162010-04-09      Sebastian Huber <sebastian.huber@embedded-brains.de>
    27
  • cpukit/libmisc/stackchk/check.c

    r1993545 ra89c963  
    219219
    220220  printk("BLOWN STACK!!!\n");
    221   printk("task control block: 0x%08lx\n", (unsigned long) running);
     221  printk("task control block: 0x%08" PRIxPTR "\n", running);
    222222  printk("task ID: 0x%08lx\n", (unsigned long) running->Object.id);
    223223  printk(
    224     "task name: 0x%08lx\n",
    225     (unsigned long) running->Object.name.name_u32
     224    "task name: 0x%08" PRIx32 "\n",
     225    running->Object.name.name_u32
    226226  );
    227227  printk(
     
    230230  );
    231231  printk(
    232     "task stack area (%lu Bytes): 0x%08lx .. 0x%08lx\n",
     232    "task stack area (%lu Bytes): 0x%08" PRIxPTR " .. 0x%08" PRIxPTR "\n",
    233233    (unsigned long) stack->size,
    234     (unsigned long) stack->area,
    235     (unsigned long) ((char *) stack->area + stack->size)
     234    stack->area,
     235    ((char *) stack->area + stack->size)
    236236  );
    237237  if (!pattern_ok) {
    238238    printk(
    239       "damaged pattern area (%lu Bytes): 0x%08lx .. 0x%08lx\n",
     239      "damaged pattern area (%lu Bytes): 0x%08" PRIxPTR " .. 0x%08" PRIxPTR "\n",
    240240      (unsigned long) PATTERN_SIZE_BYTES,
    241       (unsigned long) pattern_area,
    242       (unsigned long) (pattern_area + PATTERN_SIZE_BYTES)
     241      pattern_area,
     242      (pattern_area + PATTERN_SIZE_BYTES)
    243243    );
    244244  }
     
    247247    if (rtems_configuration_get_user_multiprocessing_table()) {
    248248      printk(
    249         "node: 0x%08lx\n",
    250         (unsigned long)
     249        "node: 0x%08" PRIxPTR "\n",
    251250          rtems_configuration_get_user_multiprocessing_table()->node
    252251      );
Note: See TracChangeset for help on using the changeset viewer.