#include <compiler.h>
#include <stdarg.h>


Go to the source code of this file.
Data Structures | |
| struct | console |
| A console instance. More... | |
Functions | |
| int | console_vprintf (struct console *con, const char *format, va_list ap) |
| Formatted output conversion. | |
| int int | console_putstr (struct console *con, const char *str) |
| Write a string to a console. | |
| int | console_putchar (struct console *con, int c) |
| Write a single character to a console. | |
Definition in file core.h.
| int console_putchar | ( | struct console * | con, | |
| int | c | |||
| ) |
Write a single character to a console.
| con | The console instance. | |
| c | The character to write. |
Definition at line 217 of file console.c.
References console_drv_commit(), console_drv_putchar(), and console::drv.
Referenced by dbg_priv_putchar().

| int int console_putstr | ( | struct console * | con, | |
| const char * | str | |||
| ) |
Write a string to a console.
| con | The console instance. | |
| str | NUL-terminated string. |
Definition at line 202 of file console.c.
References console_drv_commit(), console_drv_putstr(), and console::drv.
Referenced by dbg_priv_putstr().

| int console_vprintf | ( | struct console * | con, | |
| const char * | format, | |||
| va_list | ap | |||
| ) |
Formatted output conversion.
Produce output according to format on the given console. format is interpreted as a regular printf()-style format string with a few limitations (some specifiers are accepted but ignored.)
| con | The console instance. | |
| format | Format specification. | |
| ap | Format arguments as a vararg list. |
Definition at line 361 of file console.c.
References printf_conversion::arg, console_drv_commit(), console_drv_print_signed(), console_drv_print_unsigned(), console_drv_putchar(), console_drv_putstr(), console_drv_write(), printf_conversion::d, console::drv, isdigit(), printf_conversion::length, printf_conversion::n, printf_conversion::p, printf_conversion::pad_char, printf_conversion::precision, printf_conversion::s, printf_conversion::spec, STATE_CONVSPEC, STATE_FLAG, STATE_LENGTH, STATE_NORMAL, STATE_PERIOD, STATE_PRECISION, STATE_WIDTH, printf_conversion::u, and printf_conversion::width.
Referenced by console_printf(), and dbg_priv_vprintf().

1.5.8