SCSI_LOG(9F) Kernel Functions for Drivers SCSI_LOG(9F)
scsi_log - display a SCSI-device-related message
#include <sys/cmn_err.h> void scsi_log
, char *drv_name
, uint_t level
, const char *fmt, ...
Solaris DDI specific (Solaris DDI).
Pointer to the dev_info
String naming the device. level
Error level. fmt
function is a utility function that displays a message via
routine. The error levels that can be passed in to this
function are CE_PANIC
, and SCSI_DEBUG
last level is used to assist in displaying debug messages to the console
is the short name by which this device is known; example
disk driver names are sd
. If the dev_info_t
pointer is NULL
then the drv_name
will be used with no unit or long name.
If the first character in format
o An exclamation mark (!
), the message goes only to the system
o A caret (^
), the message goes only to the console.
o A question mark (?
) and level
, the message is
always sent to the system buffer, but is written to the
console only when the system has been booted in verbose mode.
. If neither condition is met, the ?
has no effect and is simply ignored.
All formatting conversions in use by cmn_err()
also work with scsi_log()
function may be called from user, interrupt, or kernel
SEE ALSO kernel(1M)
, scsi_errmsg(9F) Writing Device Drivers
January 16, 2006 SCSI_LOG(9F)