Use dsmRCMsg to get the message text that is associated with an ADSM API return code.
The msg parameter displays the message prefix return code in parentheses, followed by the message text. For example, a call to dsmRCMsg might return the following:
ANS0264E (RC2300) Only root user can execute dsmChangePW or dsmDeleteFS.
dsInt16 dsmRCMsg (dsUint32 dsmHandle, dsInt16 dsmRC, char *msg);
Parameters
The maximum length for msg is defined as DSM_MAX_RC_MSG_LENGTH.
On platforms that have National Language Support and a choice of language message files, the API will return a message string in the national language.
Figure 41. Return Codes for dsmRCMsg
Return Code | Explanation |
---|---|
DSM_RC_NULL_MSG (2002) | msg parameter for dsmRCMsg call is a NULL pointer. |
DSM_RC_INVALID_RETCODE (2021) | Return code passed to dsmRCMsg call is an invalid one. |