!203 优化日志数据类型

Merge pull request !203 from Zhou Shihui/udid_limit
This commit is contained in:
openharmony_ci 2024-01-25 03:25:28 +00:00 committed by Gitee
commit e05445fbc6
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 4 additions and 2 deletions

View File

@ -301,7 +301,8 @@ AppProvisionVerifyResult CheckDeviceID(ProvisionInfo& info)
return PROVISION_DEVICE_UNAUTHORIZED;
}
HAPVERIFY_LOG_DEBUG(LABEL, "number of device ids in list: %{public}d", info.debugInfo.deviceIds.size());
HAPVERIFY_LOG_DEBUG(LABEL, "number of device ids in list: %{public}u",
static_cast<uint32_t>(info.debugInfo.deviceIds.size()));
if (info.debugInfo.deviceIdType != VALUE_DEVICE_ID_TYPE_UDID) {
HAPVERIFY_LOG_ERROR(LABEL, "type of device ID is not supported.");

View File

@ -83,7 +83,8 @@ AppProvisionVerifyResult CheckDevice(ProvisionInfo& info)
return PROVISION_DEVICE_UNAUTHORIZED;
}
HAPVERIFY_LOG_DEBUG(LABEL, "number of device ids in list: %{public}d", info.debugInfo.deviceIds.size());
HAPVERIFY_LOG_DEBUG(LABEL, "number of device ids in list: %{public}u",
static_cast<uint32_t>(info.debugInfo.deviceIds.size()));
if (info.debugInfo.deviceIdType != VALUE_DEVICE_TYPE_UDID) {
HAPVERIFY_LOG_ERROR(LABEL, "type of device ID is not supported.");