!1173 fix print type error

Merge pull request !1173 from CheungVane/master
This commit is contained in:
openharmony_ci 2024-05-29 09:59:36 +00:00 committed by Gitee
commit 90e9c5d8dc
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -322,7 +322,7 @@ const char * const HUKS_SERVICE_SUB_PATH = "huks_service";
ENABLE_CFI(static int32_t CopyRdbCeToDePathIfNeed(void))
{
char huksCePath[HKS_MAX_DIRENT_FILE_LEN] = { 0 };
int32_t offset = sprintf_s(huksCePath, HKS_MAX_DIRENT_FILE_LEN, "%s/%d/%s", HUKS_CE_ROOT_PATH, g_frontUserId,
int32_t offset = sprintf_s(huksCePath, HKS_MAX_DIRENT_FILE_LEN, "%s/%u/%s", HUKS_CE_ROOT_PATH, g_frontUserId,
HUKS_SERVICE_SUB_PATH);
if (offset <= 0) {
HKS_LOG_E("get huks ce path failed.");