11 #include <smp/spinlock.h>
17 #define TRACK_CONSOLE_TIME (!ENV_SMM && CONFIG(HAVE_MONOTONIC_TIMER))
70 #define LOG_FAST(state) (HAS_ONLY_FAST_CONSOLES || ((state).speed == CONSOLE_LOG_FAST))
97 if (
CONFIG(CONSOLE_USE_ANSI_ESCAPES))
99 if (
CONFIG(CONSOLE_USE_LOGLEVEL_PREFIX))
112 static bool line_started =
false;
116 line_started =
false;
117 }
else if (!line_started) {
137 if (
state.speed < CONSOLE_LOG_FAST)
155 int printk(
int msg_level,
const char *fmt, ...)
#define DECLARE_SPIN_LOCK(x)
void timer_monotonic_get(struct mono_time *mt)
static void __cbmemc_tx_byte(u8 data)
void console_interactive_tx_byte(unsigned char byte, void *data_unused)
void console_tx_flush(void)
void console_tx_byte(unsigned char byte)
void console_stored_tx_byte(unsigned char byte, void *data_unused)
static void wrap_putchar(unsigned char byte, void *data)
void console_time_report(void)
static long console_usecs
#define TRACK_CONSOLE_TIME
void do_putchar(unsigned char byte)
int vprintk(int msg_level, const char *fmt, va_list args)
int printk(int msg_level, const char *fmt,...)
static void console_time_stop(void)
static struct mono_time mt_start mt_stop
static void console_time_run(void)
long console_time_get_and_reset(void)
static void line_end(union log_state state)
static void line_start(union log_state state)
static void wrap_interactive_printf(const char *fmt,...)
#define DIV_ROUND_CLOSEST(x, divisor)
#define spin_unlock(lock)
static long mono_time_diff_microseconds(const struct mono_time *t1, const struct mono_time *t2)
int console_log_level(int msg_level)
static const char bios_log_prefix[BIOS_LOG_PREFIX_MAX_LEVEL+1][5]
#define BIOS_LOG_LEVEL_TO_MARKER(level)
#define BIOS_LOG_ESCAPE_RESET
#define BIOS_DEBUG
BIOS_DEBUG - Verbose output.
#define BIOS_LOG_PREFIX_MAX_LEVEL
#define BIOS_LOG_PREFIX_PATTERN
#define BIOS_LOG_ESCAPE_PATTERN
static const char bios_log_escape[BIOS_LOG_PREFIX_MAX_LEVEL+1][8]
#define ENV_ROMSTAGE_OR_BEFORE
#define va_start(v, l)
Note: This file is only for POSIX compatibility, and is meant to be chain-included via string....
__builtin_va_list va_list
int vtxprintf(void(*tx_byte)(unsigned char byte, void *data), const char *fmt, va_list args, void *data)