[rtems commit] tests: Use more integer print functions

Sebastian Huber sebh at rtems.org
Tue Jul 18 12:25:21 UTC 2017


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Jul 18 13:02:30 2017 +0200

tests: Use more integer print functions

This avoids an unnecessary use of the floating point unit.

Update #3076.

---

 testsuites/support/include/buffer_test_io.h | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/testsuites/support/include/buffer_test_io.h b/testsuites/support/include/buffer_test_io.h
index c2a9205..464d578 100644
--- a/testsuites/support/include/buffer_test_io.h
+++ b/testsuites/support/include/buffer_test_io.h
@@ -201,6 +201,20 @@ extern "C" {
 
   /* do not use iprintf if strict ansi mode */
   #if defined(_NEWLIB_VERSION) && !defined(__STRICT_ANSI__)
+    #define asprintf asiprintf
+    #define asnprintf asniprintf
+    #define dprintf diprintf
+    #define fprintf fiprintf
+    #define sprintf siprintf
+    #define snprintf sniprintf
+    #define vasprintf vasiprintf
+    #define vasnprintf vasniprintf
+    #define vdprintf vdiprintf
+    #define vfprintf vfiprintf
+    #define vprintf viprintf
+    #define vsprintf vsiprintf
+    #define vsnprintf vsniprintf
+
     #undef printf
     #define printf(...) \
       do { \




More information about the vc mailing list