|
@@ -909,7 +909,7 @@ ErrorCodeEnum CIDCertFSM::GetPngBlobEx(CBlob &data, CSimpleStringA fileNamePrefi
|
|
|
eErr = m_pEntity->GetFunction()->GetPath("Dep", strPath);
|
|
|
if (eErr != Error_Succeed)
|
|
|
{
|
|
|
- DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("Get [Dep] path failed! errcode:%s.", SpStrError(eErr));
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM).setResultCode(RTAERR_GETPATH_FAILED)("Get [Dep] path failed! errcode:%s.", SpStrError(eErr));
|
|
|
return Error_Param;
|
|
|
}
|
|
|
|
|
@@ -920,7 +920,7 @@ ErrorCodeEnum CIDCertFSM::GetPngBlobEx(CBlob &data, CSimpleStringA fileNamePrefi
|
|
|
eErr = m_pEntity->GetFunction()->GetPath("DepBak", strOldPath);
|
|
|
if (eErr != Error_Succeed)
|
|
|
{
|
|
|
- DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("Get [DepBak] Path failed! errcode:%s.", SpStrError(eErr));
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM).setResultCode(RTAERR_GETPATH_FAILED)("Get [DepBak] Path failed! errcode:%s.", SpStrError(eErr));
|
|
|
return Error_Param;
|
|
|
}
|
|
|
strOldPath = strOldPath + SPLIT_SLASH_STR + fileNamePrefix;
|
|
@@ -1145,14 +1145,15 @@ int CIDCertFSM::Initial()
|
|
|
eErrDev = spEntityFunction->OpenConfig(Config_Root, spConfig);
|
|
|
if (eErrDev != Error_Succeed) {
|
|
|
LogWarn(Severity_Middle, eErrDev, IDCertificate_UserErrorCode_Open_RootCfg_Failed, "open cfg file failed!");
|
|
|
- DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("open cfg file failed!");
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM).setResultCode(RTAERR_CONFIG_OPEN_FAILED).setAPI(__FUNCTION__)("open cfg file failed!");
|
|
|
m_bOpening = false;
|
|
|
return 2;
|
|
|
}
|
|
|
|
|
|
eErrDev = pEntity->LoadVendorLibName();
|
|
|
if (eErrDev != Error_Succeed) {
|
|
|
- DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("get vendor dll(%s)name failed.", pEntity->GetVendorLibName().GetData());
|
|
|
+ LogWarn(Severity_Middle, eErrDev, IDCertificate_UserErrorCode_Get_DevAdapter_Path_Failed,
|
|
|
+ CSimpleStringA::Format("LoadVendorLibName failed,error:%d", eErrDev));
|
|
|
m_bOpening = false;
|
|
|
return 2;
|
|
|
}
|