tests: Add locked_printf_plugin()

Add locked_vprintf().  Return an int just like printf(), etc.
This commit is contained in:
Sebastian Huber
2014-05-07 18:27:19 +02:00
parent 0960fee406
commit b97bc8bc71
2 changed files with 51 additions and 20 deletions
+12 -3
View File
@@ -10,6 +10,8 @@
#ifndef __TEST_SUPPORT_h
#define __TEST_SUPPORT_h
#include <stdarg.h>
#ifdef __cplusplus
extern "C" {
#endif
@@ -65,9 +67,16 @@ void rtems_time_test_measure_operation(
/************** TEST SUPPORT **************/
/*********************************************************************/
/*********************************************************************/
extern void locked_print_initialize(void);
extern void locked_printf(const char *fmt, ...);
extern void locked_printk(const char *fmt, ...);
void locked_print_initialize(void);
int locked_printf(const char *fmt, ...);
int locked_vprintf(const char *fmt, va_list ap);
int locked_printf_plugin(void *context, const char *fmt, ...);
void locked_printk(const char *fmt, ...);
#ifdef __cplusplus
};