From de29140edf2567f4847876cb1ed5e0b6857420f3 Mon Sep 17 00:00:00 2001 From: Far Date: Wed, 5 Jan 2022 10:52:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20virpart.c=20?= =?UTF-8?q?=E4=B8=8D=E9=80=82=E9=85=8D=E7=9A=84=E6=A0=BC=E5=BC=8F=E5=8C=96?= =?UTF-8?q?=E6=89=93=E5=8D=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Close #I4PEVP Signed-off-by: Far --- fs/fat/virpart/src/virpart.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/fat/virpart/src/virpart.c b/fs/fat/virpart/src/virpart.c index 7f4e2154..efc70c28 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; }