예제 #1
0
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;
}
예제 #2
0
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));
}