Enumerations | |
enum | os_print_level { OS_PRINT_ERROR, OS_PRINT_WARNING, OS_PRINT_INFO, OS_PRINT_DEBUG } |
Functions | |
void | os_print (enum os_print_level level, const char *prefix, const char *name, const char *format,...) |
void | os_vprint (enum os_print_level level, const char *prefix, const char *name, const char *format, va_list args) |
enum os_print_level |
Severity of a console or log message.
void os_print | ( | enum os_print_level | level, | |
const char * | prefix, | |||
const char * | name, | |||
const char * | format, | |||
... | ||||
) |
Write a text message to a log or the console.
The c, d, p, s, and x conversion specifiers and the field length and pad character should be supported (e.g., %08x).
The message may be truncated if it's longer than 80 characters.
Callable from: any context.
level | severity of the message. | |
prefix | string to be prefixed to the message. | |
name | the name of the device or subsystem producing the message (may be NULL). | |
format | printf-style format string. | |
... | arguments for format. |
void os_vprint | ( | enum os_print_level | level, | |
const char * | prefix, | |||
const char * | name, | |||
const char * | format, | |||
va_list | args | |||
) |
Write a text message to a log or the console.
A variant of os_print() accepting a va_list for the format arguments.
Callable from: any context.
level | severity of the message. | |
prefix | string to be prefixed to the message. | |
name | the name of the device or subsystem producing the message (may be NULL). | |
format | printf-style format string. | |
args | arguments for format. |