diff options
Diffstat (limited to 'testsuites')
-rw-r--r-- | testsuites/support/include/test_support.h | 2 | ||||
-rw-r--r-- | testsuites/support/src/locked_print.c | 21 |
2 files changed, 0 insertions, 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 ); -} |