STREAMS Programming Guide

Kernel Debug Printing

Console Messages

The kernel routine cmn_err(9F) allows printing of formatted strings on a system console. It displays a specified message on the console and/or stores it in the putbuf that is a circular array in the kernel and contains output from cmn_err(9F). Its format is:

#include <sys/cmn_err.h>

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

where level can take the following values: