function prints error messages and
debugging information on the system console.
In addition, all messages are stored in
the /usr/adm/messages file
by a background program error handler.
is a simplified version of the standard C library
The format parameter is a string to be displayed similar
to the format argument to
format also accepts specifications for displaying the
arg variables. The supported specifications are:
two-digit hexadecimal byte
string (character pointer)
hexadecimal (prints leading zeros)
Specification values can be indicated in either uppercase or
lowercase. Field length specifications cannot be used, but it is
possible to specify precision. For example, ``%9d'' would set
the minimum number of digits to be printed for a signed decimal to
nine. Escaped characters such as \n (new line), \t (tab), \r
(return), and so on are C language features supported by the C
compiler and thus are supported in this kernel routine.
Any optional arg parameters are displayed using the
The printf routine is not interrupt-driven and therefore
suspends all other system activities while executing.
It is similar to the standard C library function
except that only the formats specified here are valid, and precision
is not supported.
It does not function properly on consoles running
As it is impossible for a driver to know if a console is running
layers, use of
for other than debug purposes is not recommended. Use