The db_pr library function applies a variable number of arguments to the format string to form the output trace string.
#include "spp.h"
int db_pr(format, arg ...)
char *format; /* printf format string */
db_pr trace messages are written to the internal trace buffer and displayed only if tracing is turned on for the corresponding DIP or process. Otherwise, trace messages are ignored while the DIP executes. It is recommended that you use db_pr for trace messages because db_pr writes to the internal trace buffer only the messages of the processes that currently are being traced. Messages from other processes not being traced are discarded.
Note:
Although the db_pr structure is identical to the printf function, use db_pr for DIPs that have user interfaces because it allows a more controlled method of output.