MCPcopy Create free account
hub / github.com/coreboot/coreboot / wrap_putchar

Function wrap_putchar

src/console/printk.c:110–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110static void wrap_putchar(unsigned char byte, void *data)
111{
112 union log_state state = { .as_ptr = data };
113 static bool line_started = false;
114
115 if (byte == '\n') {
116 line_end(state);
117 line_started = false;
118 } else if (!line_started) {
119 line_start(state);
120 line_started = true;
121 }
122
123 if (LOG_FAST(state))
124 __cbmemc_tx_byte(byte);
125 else
126 console_tx_byte(byte);
127}
128
129int vprintk(int msg_level, const char *fmt, va_list args)
130{

Callers

nothing calls this directly

Calls 4

line_endFunction · 0.85
line_startFunction · 0.85
__cbmemc_tx_byteFunction · 0.85
console_tx_byteFunction · 0.85

Tested by

no test coverage detected