4.1.2.6 printf

void printf(string format, ...)

Like trace, the printf action traces D expressions, but printf enables elaborate printf-style formatting. The parameters consist of a format string, followed by a variable number of arguments. By default, the arguments are traced to the directed buffer. The arguments are later formatted for output by the dtrace command, according to the specified format string, for example:

printf("execname is %s; priority is %d", execname, curlwpsinfo->pr_pri);

For more information, see Section 6.1, “printf Action”.