|
@@ -3,7 +3,6 @@
|
|
|
#include "FingerPrint_UserErrorCode.h"
|
|
|
#include "GetDevInfoHelper.h"
|
|
|
#include "path.h"
|
|
|
-#include "DevEntityCommBase.hpp"
|
|
|
#include <thread>
|
|
|
#include <chrono>
|
|
|
#include <fstream>
|
|
@@ -189,14 +188,19 @@ unsigned CFingerPrintFSM::s3_on_event(FSMEvent* e)
|
|
|
|
|
|
ErrorCodeEnum CFingerPrintFSM::OnInit()
|
|
|
{
|
|
|
- CSimpleStringA strLibFullPath;
|
|
|
- CDevAdptEntityBase *pEntity = GET_DEV_ENTITY_BASE_POINTER();
|
|
|
- ErrorCodeEnum errDev = pEntity->ExtractVendorLibFullPath(strLibFullPath);
|
|
|
- Dbg("Extract Vendor lib name: %s", (const char*)strLibFullPath);
|
|
|
+ LOG_FUNCTION();
|
|
|
+
|
|
|
+ GET_DEV_ENTITY_BASE_POINTER()->InitializeVendorLogSwitch();
|
|
|
+
|
|
|
+ CSimpleStringA strLibFullPath(true);
|
|
|
+ auto pEntity = GET_DEV_ENTITY_BASE_POINTER();
|
|
|
+ auto errDev = pEntity->ExtractVendorLibFullPath(strLibFullPath);
|
|
|
+
|
|
|
+ Dbg("Extract Vendor lib name: %s", strLibFullPath.GetData());
|
|
|
|
|
|
if (errDev != Error_Succeed)
|
|
|
{
|
|
|
- Dbg("Get vendor libname(%s) failed.", (const char*)strLibFullPath);
|
|
|
+ Dbg("Get vendor libname(%s) failed.", strLibFullPath.GetData());
|
|
|
LogError(Severity_High, Error_DevLoadFileFailed
|
|
|
, LOG_ERR_FINGERPRINT_GET_DLLNAME_FAILED_ONINIT
|
|
|
, "get dllname failed while init");
|
|
@@ -843,9 +847,9 @@ ErrorCodeEnum CFingerPrintFSM::DoGetDevInfo()
|
|
|
errDev = m_pFingerPrint->GetDevCategory(m_devCatInfo);
|
|
|
if (errDev == Error_Succeed)
|
|
|
{
|
|
|
- Dbg("%d, %d, %d", strlen(m_devCatInfo.szModel)
|
|
|
- , strlen(m_devCatInfo.szType)
|
|
|
- , strlen(m_devCatInfo.szVendor));
|
|
|
+ Dbg("szMode = %s", m_devCatInfo.szModel);
|
|
|
+ Dbg("szType = %s", m_devCatInfo.szType);
|
|
|
+ Dbg("szVendor = %s", m_devCatInfo.szVendor);
|
|
|
|
|
|
if (strlen(m_devCatInfo.szModel) < 256)
|
|
|
Dbg("szMode=%s", m_devCatInfo.szModel);
|