[rtems commit] psxconfig01/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:    d85d2676e1e49166835dcae0b45cf5bc82faa036
Changeset: http://git.rtems.org/rtems/commit/?id=d85d2676e1e49166835dcae0b45cf5bc82faa036

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

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

---

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

diff --git a/testsuites/psxtests/psxconfig01/init.c b/testsuites/psxtests/psxconfig01/init.c
index 433e50f..dd741c1 100644
--- a/testsuites/psxtests/psxconfig01/init.c
+++ b/testsuites/psxtests/psxconfig01/init.c
@@ -225,12 +225,12 @@ static void print_info(void)
   rtems_test_assert(ok);
 
   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