fix: 修复 virpart.c 不适配的格式化打印问题
Close #I4PEVP Signed-off-by: Far <yesiyuan2@huawei.com>
This commit is contained in:
parent
997e61ed53
commit
de29140edf
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue