diff --git a/fs/fat/virpart/src/virpart.c b/fs/fat/virpart/src/virpart.c index 7f4e21544535655e76f3edf2ea2a333ece3951d5..efc70c2820cc3062d97854c7b73d23a706745960 100644 --- a/fs/fat/virpart/src/virpart.c +++ b/fs/fat/virpart/src/virpart.c @@ -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; }