From 047e8aa952ca83bdb3e447e9589e20699124ea67 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 19 Jan 2018 09:53:18 +0100 Subject: 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 d6870b2ded..017444ca9d 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 a1b0440c73..5a317c8382 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 ); -} -- cgit v1.2.3