!763 fix: 修复 virpart.c 不适配的格式化打印问题

Merge pull request !763 from Far/master
This commit is contained in:
openharmony_ci 2022-01-07 02:08:49 +00:00 committed by Gitee
commit 0ca4a128d2
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 2 additions and 2 deletions

View File

@ -347,7 +347,7 @@ INT FatFsBindVirPart(void *handle, BYTE vol)
return -EINVAL;
}
ret = snprintf_s(path, sizeof(path), sizeof(path) - 1, "%d:/", vol);
ret = snprintf_s(path, sizeof(path), sizeof(path) - 1, "%u:/", vol);
if (ret < 0) {
return -EINVAL;
}
@ -420,7 +420,7 @@ INT FatFsMakeVirPart(void *handle, BYTE vol)
return -EINVAL;
}
ret = snprintf_s(path, sizeof(path), sizeof(path) - 1, "%d:/", vol);
ret = snprintf_s(path, sizeof(path), sizeof(path) - 1, "%u:/", vol);
if (ret < 0) {
return -EINVAL;
}