[rtems commit] Use %zd instead of %d to print size_t's

Ralf Corsepius ralf at rtems.org
Mon Oct 15 16:05:04 UTC 2012


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

Author:    Ralf Corsépius <ralf.corsepius at rtems.org>
Date:      Mon Oct 15 04:36:15 2012 +0200

Use %zd instead of %d to print size_t's

---

 testsuites/fstests/fsrdwr/init.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/testsuites/fstests/fsrdwr/init.c b/testsuites/fstests/fsrdwr/init.c
index ca2a628..1ab9ccb 100644
--- a/testsuites/fstests/fsrdwr/init.c
+++ b/testsuites/fstests/fsrdwr/init.c
@@ -334,7 +334,7 @@ lseek_test (void)
     rtems_test_assert (n == (ssize_t) len);
     total_written += n;
   }
-  printf ("Successfully wrote %d\n", total_written);
+  printf ("Successfully wrote %zd\n", total_written);
 
   /*
    * Check the current position




More information about the vc mailing list