MOS Source Code
Loading...
Searching...
No Matches
printk.cpp File Reference
Include dependency graph for printk.cpp:

Go to the source code of this file.

Functions

 MOS_SETUP ("printk_console", printk_setup_console)
 MOS_EARLY_SETUP ("quiet", printk_setup_quiet)
static void deduce_level_color (LogLevel loglevel, StandardColor *fg, StandardColor *bg)
void print_to_console (Console *con, LogLevel loglevel, const char *message, size_t len)
void lvprintk (LogLevel loglevel, const char *fmt, va_list args)
bool printk_unquiet (void)
void printk_set_quiet (bool quiet)
void lprintk (LogLevel loglevel, const char *format,...)
void printk (const char *format,...)

Variables

Consoleprintk_console = NULL
static bool printk_quiet = false

Function Documentation

◆ MOS_SETUP()

MOS_SETUP ( "printk_console" ,
printk_setup_console  )

Definition at line 17 of file printk.cpp.

Here is the call graph for this function:

◆ MOS_EARLY_SETUP()

MOS_EARLY_SETUP ( "quiet" ,
printk_setup_quiet  )

Definition at line 47 of file printk.cpp.

Here is the call graph for this function:

◆ deduce_level_color()

void deduce_level_color ( LogLevel loglevel,
StandardColor * fg,
StandardColor * bg )
inlinestatic

Definition at line 53 of file printk.cpp.

Referenced by print_to_console().

◆ print_to_console()

void print_to_console ( Console * con,
LogLevel loglevel,
const char * message,
size_t len )

Definition at line 68 of file printk.cpp.

Referenced by lvprintk(), and SyslogStreamWriter::~SyslogStreamWriter().

Here is the call graph for this function:

◆ lvprintk()

void lvprintk ( LogLevel loglevel,
const char * fmt,
va_list args )

Definition at line 78 of file printk.cpp.

Referenced by lprintk(), and printk().

Here is the call graph for this function:

◆ printk_unquiet()

bool printk_unquiet ( void )

Definition at line 92 of file printk.cpp.

Referenced by handle_kernel_panic().

◆ printk_set_quiet()

void printk_set_quiet ( bool quiet)

Definition at line 99 of file printk.cpp.

◆ lprintk()

void lprintk ( LogLevel loglevel,
const char * format,
... )

Definition at line 104 of file printk.cpp.

Referenced by do_print_syslog(), mos_kwarn(), and test_engine_warning_handler().

Here is the call graph for this function:

◆ printk()

void printk ( const char * format,
... )

Definition at line 112 of file printk.cpp.

Here is the call graph for this function:

Variable Documentation

◆ printk_console

Console* printk_console = NULL

◆ printk_quiet

bool printk_quiet = false
static

Definition at line 15 of file printk.cpp.

Referenced by lvprintk(), MOS_EARLY_SETUP(), printk_set_quiet(), and printk_unquiet().