From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) by mx.groups.io with SMTP id smtpd.web12.2684.1609530780578092706 for ; Fri, 01 Jan 2021 11:53:01 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=P9T5nKE4; spf=pass (domain: gmx.de, ip: 212.227.17.21, mailfrom: xypron.glpk@gmx.de) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1609530755; bh=oIm5+qBHPPhHjxhlG+ZURb08ebiZ8JTSRKaYfUr+Fpc=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=P9T5nKE419hfCN+VhDg8iUV55APXI2cMK28yzKBYxgtfVU2rj9QZR5Pikx+JF5NmD rT9tljzjzzHWaAN7ZiMtqLKgrSYpuVFLGBzkaDSSkRVPhb7B9iyMKMa17bt8YjGunc ordjgH9Ryp+DaddeVCxsAtu38zaMKnk2NgtLenU8= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost.localdomain ([62.143.246.89]) by mail.gmx.com (mrgmx105 [212.227.17.174]) with ESMTPSA (Nemesis) id 1MHXBp-1kqhON3SvB-00DXUP; Fri, 01 Jan 2021 20:52:34 +0100 From: "Heinrich Schuchardt" To: EDK II Development Cc: Eric Jin , G Edhaya Chandran , Barton Gao , Arvin Chen , Samer El-Haj-Mahmoud , Heinrich Schuchardt Subject: [PATCH 1/1] uefi-sct/SctPkg: format string BBTestFatToStrFunctionAutoTest Date: Fri, 1 Jan 2021 20:52:27 +0100 Message-Id: <20210101195227.59101-1-xypron.glpk@gmx.de> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-Provags-ID: V03:K1:F5zUnhFNU9bp+H57k1/rcOMj21UmiMP34B6Z/6x+05/NWc+NaEI PTAF8v+Wqznro9+J9sEs2VbBoDVO/ZHhhAH9/+bWJAW7kdaRusiQ1iFsJTtu567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onm6Q== Content-Transfer-Encoding: quoted-printable REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3146 EFI_UNICODE_COLLATION_PROTOCOL.FatToStr() expects as parameter Fat an ASCI= I string not a wide string. In function BBTestFatToStrFunctionAutoTest() this string is supplied as TestData[Index]. When printing this string we cannot use "%s" but we must use "%a". Signed-off-by: Heinrich Schuchardt =2D-- .../BlackBoxTest/UnicodeCollation2BBTestFunction.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/UnicodeCollation2/= BlackBoxTest/UnicodeCollation2BBTestFunction.c b/uefi-sct/SctPkg/TestCase/= UEFI/EFI/Protocol/UnicodeCollation2/BlackBoxTest/UnicodeCollation2BBTestFu= nction.c index 8bf5170f..22b57f21 100644 =2D-- a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/UnicodeCollation2/Black= BoxTest/UnicodeCollation2BBTestFunction.c +++ b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/UnicodeCollation2/BlackBo= xTest/UnicodeCollation2BBTestFunction.c @@ -636,7 +636,7 @@ BBTestFatToStrFunctionAutoTest ( AssertionType, gUnicodeCollationFunctionTestAssertionGuid007, L"EFI_UNICODE_COLLATION_PROTOCOL.FatToStr - Verificati= on of FatToStr interface", - L"%a:%d: Fat=3D'%s', FatToStr=3D'%s', FatSize=3D%d, St= rSize=3D%d", + L"%a:%d: Fat=3D'%a', FatToStr=3D'%s', FatSize=3D%d, St= rSize=3D%d", __FILE__, (UINTN)__LINE__, TestData[Index], @@ -668,7 +668,7 @@ BBTestFatToStrFunctionAutoTest ( AssertionType, gUnicodeCollationFunctionTestAssertionGuid008, L"EFI_UNICODE_COLLATION_PROTOCOL.FatToStr - Verifica= tion of FatToStr interface", - L"%a:%d: Fat=3D'%s', FatToStr=3D'%s', FatSize=3D%d, = StrSize=3D%d", + L"%a:%d: Fat=3D'%a', FatToStr=3D'%s', FatSize=3D%d, = StrSize=3D%d", __FILE__, (UINTN)__LINE__, TestData[Index], @@ -701,7 +701,7 @@ BBTestFatToStrFunctionAutoTest ( AssertionType, gUnicodeCollationFunctionTestAssertionGuid009, L"EFI_UNICODE_COLLATION_PROTOCOL.FatToStr - Verifica= tion of FatToStr interface", - L"%a:%d: Fat=3D'%s', FatToStr=3D'%s', FatSize=3D%d, = StrSize=3D%d", + L"%a:%d: Fat=3D'%a', FatToStr=3D'%s', FatSize=3D%d, = StrSize=3D%d", __FILE__, (UINTN)__LINE__, TestData[Index], =2D- 2.29.2