[PATCH 4/9] tests: Use rtems_print_printer_fprintf_putc()

Sebastian Huber sebastian.huber at embedded-brains.de
Thu Oct 26 11:59:08 UTC 2017


Use rtems_print_printer_fprintf_putc() instead of
rtems_print_printer_printf() to output via rtems_putc().

Update #3170.
Update #3199.
---
 testsuites/libtests/capture01/init.c | 2 +-
 testsuites/libtests/complex/init.c   | 2 +-
 testsuites/libtests/math/init.c      | 2 +-
 testsuites/libtests/mathf/init.c     | 2 +-
 testsuites/libtests/mathl/init.c     | 2 +-
 testsuites/samples/capture/init.c    | 2 +-
 testsuites/samples/hello/init.c      | 2 +-
 testsuites/samples/loopback/init.c   | 2 +-
 testsuites/samples/paranoia/init.c   | 2 +-
 testsuites/samples/pppd/init.c       | 2 +-
 10 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/testsuites/libtests/capture01/init.c b/testsuites/libtests/capture01/init.c
index 6d5d095527..4791c5a1c0 100644
--- a/testsuites/libtests/capture01/init.c
+++ b/testsuites/libtests/capture01/init.c
@@ -48,7 +48,7 @@ rtems_task Init(
   rtems_mode          old_mode;
   rtems_name          to_name = rtems_build_name('I', 'D', 'L', 'E');;
 
-  rtems_print_printer_printf(&rtems_test_printer);
+  rtems_print_printer_fprintf_putc(&rtems_test_printer);
 
   rtems_test_begin();
 
diff --git a/testsuites/libtests/complex/init.c b/testsuites/libtests/complex/init.c
index 7e21b2c92e..5f8ba34799 100644
--- a/testsuites/libtests/complex/init.c
+++ b/testsuites/libtests/complex/init.c
@@ -59,7 +59,7 @@ int main( void )
 #endif
 {
 #if __rtems__
-  rtems_print_printer_printf(&rtems_test_printer);
+  rtems_print_printer_fprintf_putc(&rtems_test_printer);
   rtems_test_begin();
 #endif
 
diff --git a/testsuites/libtests/math/init.c b/testsuites/libtests/math/init.c
index b3d56c41c6..fc493e86e7 100644
--- a/testsuites/libtests/math/init.c
+++ b/testsuites/libtests/math/init.c
@@ -61,7 +61,7 @@ int main( void )
 #endif
 {
 #if __rtems__
-  rtems_print_printer_printf(&rtems_test_printer);
+  rtems_print_printer_fprintf_putc(&rtems_test_printer);
   rtems_test_begin();
 #endif
 
diff --git a/testsuites/libtests/mathf/init.c b/testsuites/libtests/mathf/init.c
index 671e881fef..a553e25482 100644
--- a/testsuites/libtests/mathf/init.c
+++ b/testsuites/libtests/mathf/init.c
@@ -59,7 +59,7 @@ int main( void )
 #endif
 {
 #if __rtems__
-  rtems_print_printer_printf(&rtems_test_printer);
+  rtems_print_printer_fprintf_putc(&rtems_test_printer);
   rtems_test_begin();
 #endif
 
diff --git a/testsuites/libtests/mathl/init.c b/testsuites/libtests/mathl/init.c
index 98a6f458a4..7e239f3fbe 100644
--- a/testsuites/libtests/mathl/init.c
+++ b/testsuites/libtests/mathl/init.c
@@ -59,7 +59,7 @@ int main( void )
 #endif
 {
 #if __rtems__
-  rtems_print_printer_printf(&rtems_test_printer);
+  rtems_print_printer_fprintf_putc(&rtems_test_printer);
   rtems_test_begin();
 #endif
 
diff --git a/testsuites/samples/capture/init.c b/testsuites/samples/capture/init.c
index 24f04c50a2..2bf21c8acc 100644
--- a/testsuites/samples/capture/init.c
+++ b/testsuites/samples/capture/init.c
@@ -48,7 +48,7 @@ rtems_task Init(
   rtems_task_priority old_priority;
   rtems_mode          old_mode;
 
-  rtems_print_printer_printf(&rtems_test_printer);
+  rtems_print_printer_fprintf_putc(&rtems_test_printer);
   rtems_test_begin();
 
   status = rtems_shell_wait_for_input(
diff --git a/testsuites/samples/hello/init.c b/testsuites/samples/hello/init.c
index ba379fbaa0..216a8b7e06 100644
--- a/testsuites/samples/hello/init.c
+++ b/testsuites/samples/hello/init.c
@@ -28,7 +28,7 @@ rtems_task Init(
   rtems_task_argument ignored
 )
 {
-  rtems_print_printer_printf(&rtems_test_printer);
+  rtems_print_printer_fprintf_putc(&rtems_test_printer);
   rtems_test_begin();
   printf( "Hello World\n" );
   rtems_test_end();
diff --git a/testsuites/samples/loopback/init.c b/testsuites/samples/loopback/init.c
index 3ff8fbd41e..0532ef091b 100644
--- a/testsuites/samples/loopback/init.c
+++ b/testsuites/samples/loopback/init.c
@@ -248,7 +248,7 @@ Init (rtems_task_argument ignored)
 {
     rtems_status_code sc;
 
-    rtems_print_printer_printf(&rtems_test_printer);
+    rtems_print_printer_fprintf_putc(&rtems_test_printer);
 
     rtems_test_begin();
 
diff --git a/testsuites/samples/paranoia/init.c b/testsuites/samples/paranoia/init.c
index 4326db3b6f..1ee4db0b84 100644
--- a/testsuites/samples/paranoia/init.c
+++ b/testsuites/samples/paranoia/init.c
@@ -37,7 +37,7 @@ rtems_task Init(
   M68KFPSPInstallExceptionHandlers ();
 #endif
 
-  rtems_print_printer_printf(&rtems_test_printer);
+  rtems_print_printer_fprintf_putc(&rtems_test_printer);
   rtems_test_begin();
   paranoia(1, args);
   rtems_test_end();
diff --git a/testsuites/samples/pppd/init.c b/testsuites/samples/pppd/init.c
index d689ff1e71..1a9ddeee21 100644
--- a/testsuites/samples/pppd/init.c
+++ b/testsuites/samples/pppd/init.c
@@ -39,7 +39,7 @@ rtems_task Init(rtems_task_argument argument)
 {
   rtems_status_code status;
 
-  rtems_print_printer_printf(&rtems_test_printer);
+  rtems_print_printer_fprintf_putc(&rtems_test_printer);
 
   rtems_test_begin();
 
-- 
2.12.3




More information about the devel mailing list