diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-08-22 14:18:09 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-08-22 14:18:58 +0200 |
commit | 93934f886f919d5e6fcc33cf2fab2f36cd9e3d66 (patch) | |
tree | cbe96f46b4ce4caea85870750648430df115b61d /cpukit/libmisc/cpuuse/cpuusagetop.c | |
parent | dev/i2c: Fix integer type (diff) | |
download | rtems-93934f886f919d5e6fcc33cf2fab2f36cd9e3d66.tar.bz2 |
heap: Fix integer types
Update #3082.
Diffstat (limited to 'cpukit/libmisc/cpuuse/cpuusagetop.c')
-rw-r--r-- | cpukit/libmisc/cpuuse/cpuusagetop.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cpukit/libmisc/cpuuse/cpuusagetop.c b/cpukit/libmisc/cpuuse/cpuusagetop.c index 9afa4e292d..c37fae0c56 100644 --- a/cpukit/libmisc/cpuuse/cpuusagetop.c +++ b/cpukit/libmisc/cpuuse/cpuusagetop.c @@ -106,14 +106,14 @@ static inline bool less_than_uint32_t( uint32_t * lhs, uint32_t * rhs ) #define CPU_usage_Less_than( _lhs, _rhs ) _Timestamp_Less_than( _lhs, _rhs ) static void -print_memsize(rtems_cpu_usage_data* data, const uint32_t size, const char* label) +print_memsize(rtems_cpu_usage_data* data, const uintptr_t size, const char* label) { if (size > (1024 * 1024)) - rtems_printf(data->printer, "%4" PRIu32 "M %s", size / (1024 * 1024), label); + rtems_printf(data->printer, "%4" PRIuPTR "M %s", size / (1024 * 1024), label); else if (size > 1024) - rtems_printf(data->printer, "%4" PRIu32 "K %s", size / 1024, label); + rtems_printf(data->printer, "%4" PRIuPTR "K %s", size / 1024, label); else - rtems_printf(data->printer, "%4" PRIu32 " %s", size, label); + rtems_printf(data->printer, "%4" PRIuPTR " %s", size, label); } static int |