2020-07-07 16:38:27 +02:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
|
|
|
|
#include <console/console.h>
|
2020-10-09 16:02:46 +02:00
|
|
|
#include <stdarg.h>
|
|
|
|
#include <stdio.h>
|
2021-09-09 12:11:39 +02:00
|
|
|
#include <tests/test.h>
|
|
|
|
|
|
|
|
#ifndef TEST_PRINT
|
|
|
|
#define TEST_PRINT 0
|
|
|
|
#endif
|
2020-07-07 16:38:27 +02:00
|
|
|
|
2021-03-27 20:03:02 +01:00
|
|
|
int printk(int msg_level, const char *fmt, ...)
|
2020-07-07 16:38:27 +02:00
|
|
|
{
|
2021-09-09 12:11:39 +02:00
|
|
|
#if TEST_PRINT
|
|
|
|
va_list v;
|
|
|
|
va_start(v, fmt);
|
|
|
|
vprint_message(fmt, v);
|
|
|
|
va_end(v);
|
|
|
|
#endif
|
2020-07-07 16:38:27 +02:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2021-03-27 20:03:02 +01:00
|
|
|
int vprintk(int msg_level, const char *fmt, va_list args)
|
2020-07-07 16:38:27 +02:00
|
|
|
{
|
2021-09-09 12:11:39 +02:00
|
|
|
#if TEST_PRINT
|
|
|
|
vprint_message(fmt, args);
|
|
|
|
#endif
|
2020-07-07 16:38:27 +02:00
|
|
|
return 0;
|
|
|
|
}
|
2020-10-09 16:02:46 +02:00
|
|
|
|
|
|
|
int console_log_level(int msg_level)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|