[rtems commit] tests: Remove unused locked_printk()

Sebastian Huber sebh at rtems.org
Fri Jan 19 09:11:13 UTC 2018


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Jan 19 09:53:18 2018 +0100

tests: Remove unused locked_printk()

---

 testsuites/support/include/test_support.h |  2 --
 testsuites/support/src/locked_print.c     | 21 ---------------------
 2 files changed, 23 deletions(-)

diff --git a/testsuites/support/include/test_support.h b/testsuites/support/include/test_support.h
index d6870b2..017444c 100644
--- a/testsuites/support/include/test_support.h
+++ b/testsuites/support/include/test_support.h
@@ -74,8 +74,6 @@ int locked_printf(const char *fmt, ...);
 
 int locked_vprintf(const char *fmt, va_list ap);
 
-void locked_printk(const char *fmt, ...);
-
 #ifdef __cplusplus
 };
 #endif
diff --git a/testsuites/support/src/locked_print.c b/testsuites/support/src/locked_print.c
index a1b0440..5a317c8 100644
--- a/testsuites/support/src/locked_print.c
+++ b/testsuites/support/src/locked_print.c
@@ -101,24 +101,3 @@ int locked_printf(const char *fmt, ...)
 
   return rv;
 }
-
-void locked_printk(const char *fmt, ...)
-{
-  va_list           ap;       /* points to each unnamed argument in turn */
-  rtems_status_code sc;
-
-
-  locked_print_initialize();
-
-  /* Lock semaphore without releasing the cpu */
-  do {
-    sc = rtems_semaphore_obtain( locked_print_semaphore, RTEMS_NO_WAIT, 0 );
-  } while (sc != RTEMS_SUCCESSFUL );
-
-  va_start(ap, fmt); /* make ap point to 1st unnamed arg */
-  vprintk(fmt, ap);
-  va_end(ap);        /* clean up when done */
-
-  /* Release the semaphore  */
-  rtems_semaphore_release( locked_print_semaphore );
-}




More information about the vc mailing list