const FF_T_INT8 *FF_GetErrDescription(FF_ERROR iErrorCode, char *apBuf, int aMaxlen) { if (FF_isERR(iErrorCode)) { snprintf (apBuf, aMaxlen, "%s::%s::%s", FF_GetErrModule(iErrorCode), FF_GetErrFunction(iErrorCode), FF_GetErrMessage(iErrorCode)); } else { snprintf (apBuf, aMaxlen, "No error"); } return apBuf; }
void PrintError(FF_ERROR Error) { printf("Error : %08X encountered.\n", (unsigned int) Error); printf("Message : %s.\n", FF_GetErrMessage(Error)); printf("Module : %s.\n", FF_GetErrModule(Error)); printf("Function : %s()\n", FF_GetErrFunction(Error)); }