Commit b8a7e423 authored by Heinrich Schuchardt's avatar Heinrich Schuchardt Committed by Barton Gao
Browse files

uefi-sct/SctPkg: format string BBTestFatToStrFunctionAutoTest

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3146



EFI_UNICODE_COLLATION_PROTOCOL.FatToStr() expects as parameter Fat an ASCII
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: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-By: G Edhaya Chandran's avatarG Edhaya Chandran <edhaya.chandran@arm.com>
parent f8244838
......@@ -636,7 +636,7 @@ BBTestFatToStrFunctionAutoTest (
AssertionType,
gUnicodeCollationFunctionTestAssertionGuid007,
L"EFI_UNICODE_COLLATION_PROTOCOL.FatToStr - Verification of FatToStr interface",
L"%a:%d: Fat='%s', FatToStr='%s', FatSize=%d, StrSize=%d",
L"%a:%d: Fat='%a', FatToStr='%s', FatSize=%d, StrSize=%d",
__FILE__,
(UINTN)__LINE__,
TestData[Index],
......@@ -668,7 +668,7 @@ BBTestFatToStrFunctionAutoTest (
AssertionType,
gUnicodeCollationFunctionTestAssertionGuid008,
L"EFI_UNICODE_COLLATION_PROTOCOL.FatToStr - Verification of FatToStr interface",
L"%a:%d: Fat='%s', FatToStr='%s', FatSize=%d, StrSize=%d",
L"%a:%d: Fat='%a', FatToStr='%s', FatSize=%d, StrSize=%d",
__FILE__,
(UINTN)__LINE__,
TestData[Index],
......@@ -701,7 +701,7 @@ BBTestFatToStrFunctionAutoTest (
AssertionType,
gUnicodeCollationFunctionTestAssertionGuid009,
L"EFI_UNICODE_COLLATION_PROTOCOL.FatToStr - Verification of FatToStr interface",
L"%a:%d: Fat='%s', FatToStr='%s', FatSize=%d, StrSize=%d",
L"%a:%d: Fat='%a', FatToStr='%s', FatSize=%d, StrSize=%d",
__FILE__,
(UINTN)__LINE__,
TestData[Index],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment