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

Close #I4PEVP

Signed-off-by: Far <yesiyuan2@huawei.com>
This commit is contained in:
Far 2022-01-05 10:52:01 +08:00
parent 997e61ed53
commit de29140edf
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;
}