Name
db_pr � Conditionally output trace message
Synopsis
#include <spp.h>
int db_pr (format)
char *format; /* printf(3S) format string */
Description
db_pr writes out the string formed using the same printf conventions to the trace buffer if the calling process now is being traced. If the process is not being traced, db_pr does nothing. If also does nothing if the trace facility was not initialized through db_init. db_pr calls db_put after forming the string to write out.
The db_pr messages can be displayed on the standard out (stdout) through the trace command.
Examples
db_pr("%s: Got Message on channel=%d\n", "Dip", 5);
Diagnostics
No indication of success or failure is returned.
Warning
db_pr can apply up to a maximum of nine arguments to the specified format string.
See also