dce_svc_printf(3dce)Generates a serviceability message Synopsis #include <dce/dce.h> void dce_svc_printf(
DCE_SVC(dce_svc_handle_t handle, char * argtypes), Parameters Input
handle
argtypes
table_index
attributes
messageID
. . .
Description There are two main ways in which to call the routine. If a message has been defined in the sams file with both sub-component and attributes specified, then the sams output will include a "convenience macro'' for the message that can be passed as the single argument to dce_svc_printf( ), for example: dce_svc_printf(SIGN_ON_MSG); The convenience macro's name will be generated from the uppercase version of the message's code value (as specified in the sams file), with the string _MSG appended. If a convenience macro is not generated, or if you want to override some of the message's attributes at the time of output, then you must call the routine in its long form. An example of this form of the call looks as follows:
dce_svc_printf(DCE_SVC(app_svc_handle, ""), app_subcomponent,\ DCE_SVC( ) is a macro that must be passed as the first argument to dce_svc_printf( ) if a convenience macro is not being used. It takes two arguments: · The caller's serviceability handle · A format string for the message that is to be output The format string is for use with messages that have been coded with argument specifiers. It is a character string consisting of the argument types as they would be passed to a printf(3) call. If the message is to be routed to a binary file, the format is extended to include a %b specifier; using %b in a different routing will give unpredictable results. The %b specifier takes two arguments: an integer size, and a buffer pointer. The remaining arguments passed to dce_svc_printf( ) are as follows:
· subcomponent table index
· message attribute(s) There are four categories of message attributes:
Routing
Severity
Action
Debug Level
· message ID Errors The following describes a partial list of errors that might be returned. Refer to the OSF DCE Problem Determination Guide for complete descriptions of all error messages. This routine has no return value.
Related Information
|