Console or log output


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)

Enumeration Type Documentation

Severity of a console or log message.


Function Documentation

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.

Parameters:
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.
Deprecated:
Use os_trace_err(), os_trace_warn(), os_trace_info(), or os_trace_dbg().

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.

Parameters:
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.
Deprecated:
Use os_trace_err(), os_trace_warn(), os_trace_info(), or os_trace_dbg().


Generated on Wed Oct 27 15:14:03 2010 for oska by  doxygen 1.5.5