[rtems commit] spstkalloc02/init.c: Fix printf() format warnings

Joel Sherrill joel at rtems.org
Sun Aug 27 19:11:58 UTC 2017


Module:    rtems
Branch:    master
Commit:    37f0023fde91cabd6da3d8dba582f8d3fd817241
Changeset: http://git.rtems.org/rtems/commit/?id=37f0023fde91cabd6da3d8dba582f8d3fd817241

Author:    Joel Sherrill <joel at rtems.org>
Date:      Sun Aug 27 14:09:34 2017 -0500

spstkalloc02/init.c: Fix printf() format warnings

---

 testsuites/sptests/spstkalloc02/init.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/testsuites/sptests/spstkalloc02/init.c b/testsuites/sptests/spstkalloc02/init.c
index ff0351a..ae78b41 100644
--- a/testsuites/sptests/spstkalloc02/init.c
+++ b/testsuites/sptests/spstkalloc02/init.c
@@ -52,12 +52,12 @@ static void print_info(void)
   _Heap_Get_information(&task_stack_heap, &info);
 
   printf(
-    "used blocks = %" PRIu32 ", "
-    "largest used block = %" PRIu32 ", "
-    "used space = %" PRIu32 "\n"
-    "free blocks = %" PRIu32 ", "
-    "largest free block = %" PRIu32 ", "
-    "free space = %" PRIu32 "\n",
+    "used blocks = %" PRIuPTR ", "
+    "largest used block = %" PRIuPTR ", "
+    "used space = %" PRIuPTR "\n"
+    "free blocks = %" PRIuPTR ", "
+    "largest free block = %" PRIuPTR ", "
+    "free space = %" PRIuPTR "\n",
     info.Used.number,
     info.Used.largest,
     info.Used.total,




More information about the vc mailing list