!763 fix: 修复 virpart.c 不适配的格式化打印问题
Merge pull request !763 from Far/master
This commit is contained in:
commit
0ca4a128d2
|
@ -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