Writing Device Drivers


cmn_err(9F) is used to print messages to the console from within the device driver. cmn_err(9F) provides additional format characters (such as %b) to print device register bits. See cmn_err(9F) and "Printing Messages"for more information.

Note -

Though printf() and uprintf() currently exist, they should not be used if the driver is to be Solaris DDI-compliant.