diff options
Diffstat (limited to 'tests/stubs/console.c')
-rw-r--r-- | tests/stubs/console.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/stubs/console.c b/tests/stubs/console.c index bd40209716..14b3e71056 100644 --- a/tests/stubs/console.c +++ b/tests/stubs/console.c @@ -3,14 +3,28 @@ #include <console/console.h> #include <stdarg.h> #include <stdio.h> +#include <tests/test.h> + +#ifndef TEST_PRINT +#define TEST_PRINT 0 +#endif int printk(int msg_level, const char *fmt, ...) { +#if TEST_PRINT + va_list v; + va_start(v, fmt); + vprint_message(fmt, v); + va_end(v); +#endif return 0; } int vprintk(int msg_level, const char *fmt, va_list args) { +#if TEST_PRINT + vprint_message(fmt, args); +#endif return 0; } |