优化日志数据类型

Signed-off-by: ImCaO <zhoushihui4@huawei.com>
This commit is contained in:
ImCaO 2024-01-24 23:59:50 +08:00
parent ec74a0bca7
commit c960861348
No known key found for this signature in database
GPG Key ID: E7B267EBE9D31E0B
2 changed files with 4 additions and 2 deletions

View File

@ -297,7 +297,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.");