[rtems commit] sp25/task1.c: Fix printf() format warnings
Joel Sherrill
joel at rtems.org
Sun Aug 27 19:11:58 UTC 2017
Module: rtems
Branch: master
Commit: 8b29f9b9e8be804cb7464dd7b3b748812fb680d7
Changeset: http://git.rtems.org/rtems/commit/?id=8b29f9b9e8be804cb7464dd7b3b748812fb680d7
Author: Joel Sherrill <joel at rtems.org>
Date: Sun Aug 27 14:11:24 2017 -0500
sp25/task1.c: Fix printf() format warnings
---
testsuites/sptests/sp25/task1.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/testsuites/sptests/sp25/task1.c b/testsuites/sptests/sp25/task1.c
index 230e8d4..ae7e8b8 100644
--- a/testsuites/sptests/sp25/task1.c
+++ b/testsuites/sptests/sp25/task1.c
@@ -187,7 +187,7 @@ rtems_task Task_1(
status = rtems_region_get_information(region_id, ®ion_info);
directive_failed(status, "rtems_region_get_information of RN01");
printf(
- "TA1 - got information - free = %" PRIu32 ", used = %" PRIu32 "\n",
+ "TA1 - got information - free = %" PRIuPTR ", used = %" PRIuPTR "\n",
region_info.Free.number,
region_info.Used.number
);
@@ -199,7 +199,7 @@ rtems_task Task_1(
status = rtems_region_get_free_information(region_id, ®ion_info);
directive_failed(status, "rtems_region_get_free_information of RN01");
printf(
- "TA1 - got free information - free = %" PRIu32 ", used = %" PRIu32 "\n",
+ "TA1 - got free information - free = %" PRIuPTR ", used = %" PRIuPTR "\n",
region_info.Free.number,
region_info.Used.number
);
More information about the vc
mailing list