#include <qp0ztrc.h> int Qp0zUprintf(char *format-string, ...);
The Qp0zUprintf() function prints user data specified by the format-string parameter to the user trace.
If a second parameter, argument-list, is provided, Qp0zUprintf() converts each entry in the argument-list and writes the entry to the user trace according to the corresponding format specification in format-string. If there are more entries in argument-list than format specifications in format-string, the extra argument-list entries are evaluated and then ignored. If there are less entries in argument-list than format specifications in format-string, the user trace output for those entries is undefined, and the Qp0zUprintf() function may return an error.
An application should not use the tracing function in performance critical code. These functions are intended for debugging exception or error conditions. The user trace is a permanent user space object named QP0Z<jobnumber> in the QUSRSYS library. The user trace is created the first time any thread in a job writes trace output. See the Change User Trace (CHGUSRTRC), Dump User Trace (DMPUSRTRC) and Delete User Trace (DLTUSRTRC) CL commands for information about manipulating the user trace properties and objects.
None.
value | Qp0zUprintf() was successful. The value returned is the number of characters successfully printed. |
-1 | Qp0zUprintf() was not successful. The errno variable is set to indicate the error. |
If Qp0zUprintf() is not successful, errno indicates one of the following errors. Under some conditions, errno could indicate an error other than those listed here.
The value specified for the argument is not correct.
A function was passed incorrect argument values, or an operation was attempted on an object and the operation specified is not supported for that type of object.
An argument value is not valid, out of range, or NULL. An invalid format-string or argument-list was specified.
The address used for an argument is not correct.
In attempting to use an argument in a call, the system detected an address that is not valid.
While attempting to access a parameter passed to this function, the system detected an address that is not valid.
See Code disclaimer information for information pertaining to code examples.
See Qp0zDump()--Dump Formatted Storage Trace Data.
Top | UNIX-Type APIs | APIs by category |