Changeset 93934f88 in rtems


Ignore:
Timestamp:
Aug 22, 2017, 12:18:09 PM (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
a8f4fd2
Parents:
e062741d
git-author:
Sebastian Huber <sebastian.huber@…> (08/22/17 12:18:09)
git-committer:
Sebastian Huber <sebastian.huber@…> (08/22/17 12:18:58)
Message:

heap: Fix integer types

Update #3082.

Location:
cpukit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libmisc/cpuuse/cpuusagetop.c

    re062741d r93934f88  
    107107
    108108static void
    109 print_memsize(rtems_cpu_usage_data* data, const uint32_t size, const char* label)
     109print_memsize(rtems_cpu_usage_data* data, const uintptr_t size, const char* label)
    110110{
    111111  if (size > (1024 * 1024))
    112     rtems_printf(data->printer, "%4" PRIu32 "M %s", size / (1024 * 1024), label);
     112    rtems_printf(data->printer, "%4" PRIuPTR "M %s", size / (1024 * 1024), label);
    113113  else if (size > 1024)
    114     rtems_printf(data->printer, "%4" PRIu32 "K %s", size / 1024, label);
     114    rtems_printf(data->printer, "%4" PRIuPTR "K %s", size / 1024, label);
    115115  else
    116     rtems_printf(data->printer, "%4" PRIu32 " %s", size, label);
     116    rtems_printf(data->printer, "%4" PRIuPTR " %s", size, label);
    117117}
    118118
  • cpukit/libmisc/shell/print_heapinfo.c

    re062741d r93934f88  
    2525{
    2626  printf(
    27     "Number of %s blocks:                    %12" PRIu32 "\n"
    28     "Largest %s block:                       %12" PRIu32 "\n"
    29     "Total bytes %s:                         %12" PRIu32 "\n",
     27    "Number of %s blocks:                    %12" PRIuPTR "\n"
     28    "Largest %s block:                       %12" PRIuPTR "\n"
     29    "Total bytes %s:                         %12" PRIuPTR "\n",
    3030    c, h->number,
    3131    c, h->largest,
  • cpukit/score/include/rtems/score/heap.h

    re062741d r93934f88  
    361361   * @brief Number of blocks of this type.
    362362   */
    363   uint32_t number;
     363  uintptr_t number;
    364364
    365365  /**
    366366   * @brief Largest block of this type.
    367367   */
    368   uint32_t largest;
     368  uintptr_t largest;
    369369
    370370  /**
    371371   * @brief Total size of the blocks of this type.
    372372   */
    373   uint32_t total;
     373  uintptr_t total;
    374374} Heap_Information;
    375375
Note: See TracChangeset for help on using the changeset viewer.