mirror of
https://github.com/openharmony/useriam_faceauth.git
synced 2026-07-18 16:24:42 -04:00
!132 解决人脸识别代码Review Issue
Merge pull request !132 from Tianshi Liu/issue-fix
This commit is contained in:
@@ -81,16 +81,6 @@ static constexpr OHOS::HiviewDFX::HiLogLabel FACE_AUTH_LABEL[MODULE_MAX] = {
|
||||
FORMATTED(__VA_ARGS__))
|
||||
#define FACEAUTH_HILOGD(module, ...) (void)OHOS::HiviewDFX::HiLog::Debug(FACE_AUTH_LABEL[module], \
|
||||
FORMATTED(__VA_ARGS__))
|
||||
const uint64_t MASK = 0xffff;
|
||||
const size_t MASKED_STRING_LEN = 11;
|
||||
inline std::string getMaskedString(uint64_t val)
|
||||
{
|
||||
char bytes[MASKED_STRING_LEN] = {0};
|
||||
if (snprintf_s(bytes, sizeof(bytes), sizeof(bytes) - 1, "0xXXXX%04" PRIx64, val & MASK) == 0) {
|
||||
return "(snprintf fail)";
|
||||
}
|
||||
return std::string(bytes);
|
||||
}
|
||||
|
||||
inline std::string getPointerNullString(void *p)
|
||||
{
|
||||
|
||||
@@ -170,7 +170,7 @@ UserIAM::ResultCode FaceAuthExecutorHdi::SendCommand(UserAuth::AuthPropertyMode
|
||||
UserIAM::ResultCode FaceAuthExecutorHdi::MoveHdiExecutorInfo(FaceHdi::ExecutorInfo &in, UserIAM::ExecutorInfo &out)
|
||||
{
|
||||
out.executorId = static_cast<int32_t>(in.sensorId);
|
||||
out.executorType = in.executorType;
|
||||
out.executorType = static_cast<int32_t>(in.executorType);
|
||||
int32_t ret = ConvertExecutorRole(in.executorRole, out.role);
|
||||
if (ret != UserIAM::ResultCode::SUCCESS) {
|
||||
IAM_LOGE("executorProxy is null");
|
||||
|
||||
Reference in New Issue
Block a user