未验证 提交 0ca4a128 编写于 作者: O openharmony_ci 提交者: Gitee

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

Merge pull request !763 from Far/master
...@@ -347,7 +347,7 @@ INT FatFsBindVirPart(void *handle, BYTE vol) ...@@ -347,7 +347,7 @@ INT FatFsBindVirPart(void *handle, BYTE vol)
return -EINVAL; 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) { if (ret < 0) {
return -EINVAL; return -EINVAL;
} }
...@@ -420,7 +420,7 @@ INT FatFsMakeVirPart(void *handle, BYTE vol) ...@@ -420,7 +420,7 @@ INT FatFsMakeVirPart(void *handle, BYTE vol)
return -EINVAL; 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) { if (ret < 0) {
return -EINVAL; return -EINVAL;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册