5.1  cmn_err( ): STREAMS Debug Printing

The STREAMS routine cmn_err( )allows printing of formatted strings on a system console. It displays a message on the console specified by the parameter fmt. The format of a cmn_err( ) call is:

void cmn_err (int level, char *fmt, int ARGS)

The parameter level takes one of the following values:

CE_CONT
Substitutes for a normal printf( ). This macro continues another message or displays an informative message not associated with an error.

CE_NOTE
Reports system events. This value displays a message, preceded by "NOTICE," that reports system events not necessarily requiring user action.

CE_WARN
Reports system events requiring user action. This value displays a message, preceded by "WARNING," that reports system events requiring immediate attention. Without attention, the system may crash.

CE_PANIC
Reports perilous system events. This macro displays a message preceded by "PANIC." Drivers specify this level only under the most severe conditions, for example, when the system cannot continue to function.