From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR01-DB5-obe.outbound.protection.outlook.com (EUR01-DB5-obe.outbound.protection.outlook.com [40.107.15.50]) by mx.groups.io with SMTP id smtpd.web12.6627.1609859635998208794 for ; Tue, 05 Jan 2021 07:13:56 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=myWyT4fO; spf=pass (domain: arm.com, ip: 40.107.15.50, mailfrom: edhaya.chandran@arm.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NTt/fQb1oJiFYZLOaIwPbKNUIOoZ0yU8yKtmlLr5meA=; b=myWyT4fOLcq9w52g3lDo4djbnedwZEA3bn4E7jTQgwMSUSFjiieUXz6Llts1sA44cvuM/ImOi6UMkcT7p24Ggs0lPaqRTJNYMQB3ZrFFk+2lLPNm0rfPIgsxAsPJGF7njh+o/w8zPYIIWmXTnXz7tVQMuREcK0nICF7n96yMjVw= Received: from AM5PR0601CA0052.eurprd06.prod.outlook.com (2603:10a6:206::17) by AM7PR08MB5399.eurprd08.prod.outlook.com (2603:10a6:20b:104::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3721.19; Tue, 5 Jan 2021 15:13:52 +0000 Received: from AM5EUR03FT009.eop-EUR03.prod.protection.outlook.com (2603:10a6:206:0:cafe::b5) by AM5PR0601CA0052.outlook.office365.com (2603:10a6:206::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3742.6 via Frontend Transport; Tue, 5 Jan 2021 15:13:52 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; edk2.groups.io; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;edk2.groups.io; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM5EUR03FT009.mail.protection.outlook.com (10.152.16.110) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3721.21 via Frontend Transport; Tue, 5 Jan 2021 15:13:51 +0000 Received: ("Tessian outbound eeda57fffe7b:v71"); Tue, 05 Jan 2021 15:13:51 +0000 X-CR-MTA-TID: 64aa7808 Received: from 26e4fb94a7a7.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 7FEC676F-2866-4FBF-BF72-3063BB38B6A9.1; Tue, 05 Jan 2021 15:13:46 +0000 Received: from EUR05-DB8-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 26e4fb94a7a7.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 05 Jan 2021 15:13:46 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=X0IKeZ6juwGp/gsnm2+I21Mr6DEnf3EH9Af40SsTdcXFCxVce1I5cu2J2jJ1lKxU3IO01jDZEvYAn1JNKvbTVoHcK+dJ3uXBQ5fng/cJiMpWCuOiI7BZ7MGbjdU3Xn86ux/49cJnek8ZzFie8aoiR/6BZhW8D9FRaereWhXayyQVNTh5iwJXfOxJMysF21ETUltoN4Ny1dntyfxUaaV43dMIdlIKZ4C7I+Gudb7/EhqIz3da+cm8Wz92z7W25k/RBqCdYivvMzieUM0mOmWY+QpvqWEyDZO28m2i76CiWoKyLKZR1vo/fxW4WhBQ5XO0bgU+OMmMQ6tpUKZzCpEd8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NTt/fQb1oJiFYZLOaIwPbKNUIOoZ0yU8yKtmlLr5meA=; b=isl7OOe9m3t/uffzSHf2NMa4jCjOav39WlpT/UzgAL7BZt8saWDJNZdM9iHDQFHltzLIKKv497jcmbnz67NUfPtIYTap5LfPufhUrDDHJ9bXhO6VJN28h7a4+nHL51T3RU9cm6ylP4PlpsW5V29rset61ivJdGIQTjVkowhBe0bSLAfJyTQqgtFQTb+xvy93xJ04YCpYlhDvy8ctKcuKVTiFGxsS30l9buaSEfQoT9DNufOpjym+s65jMZgJpbz3YRFRaeHjpdi90sFafUTxgWGTRZO9M9+1RNOpW9nR5t0EMYQHLUq9GqVssRX6nqzr8wwejY7cPDYXidwE6PempQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NTt/fQb1oJiFYZLOaIwPbKNUIOoZ0yU8yKtmlLr5meA=; b=myWyT4fOLcq9w52g3lDo4djbnedwZEA3bn4E7jTQgwMSUSFjiieUXz6Llts1sA44cvuM/ImOi6UMkcT7p24Ggs0lPaqRTJNYMQB3ZrFFk+2lLPNm0rfPIgsxAsPJGF7njh+o/w8zPYIIWmXTnXz7tVQMuREcK0nICF7n96yMjVw= Received: from HE1PR0801MB1691.eurprd08.prod.outlook.com (2603:10a6:3:7b::13) by HE1PR08MB2633.eurprd08.prod.outlook.com (2603:10a6:7:37::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3721.23; Tue, 5 Jan 2021 15:13:44 +0000 Received: from HE1PR0801MB1691.eurprd08.prod.outlook.com ([fe80::a10f:e23a:7ac1:1de6]) by HE1PR0801MB1691.eurprd08.prod.outlook.com ([fe80::a10f:e23a:7ac1:1de6%11]) with mapi id 15.20.3721.024; Tue, 5 Jan 2021 15:13:44 +0000 From: "G Edhaya Chandran" To: Heinrich Schuchardt , EDK II Development CC: Eric Jin , Barton Gao , Arvin Chen , Samer El-Haj-Mahmoud Subject: Re: [PATCH 1/1] uefi-sct/SctPkg: format string BBTestFatToStrFunctionAutoTest Thread-Topic: [PATCH 1/1] uefi-sct/SctPkg: format string BBTestFatToStrFunctionAutoTest Thread-Index: AQHW4HfrNX7BCpPd+02NBQhvWy64m6oZKb3A Date: Tue, 5 Jan 2021 15:13:43 +0000 Message-ID: References: <20210101195227.59101-1-xypron.glpk@gmx.de> In-Reply-To: <20210101195227.59101-1-xypron.glpk@gmx.de> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: 5E691920ADA82F4D8ED2304C4A15AC1C.0 x-checkrecipientchecked: true Authentication-Results-Original: gmx.de; dkim=none (message not signed) header.d=none;gmx.de; dmarc=none action=none header.from=arm.com; x-originating-ip: [103.130.108.184] x-ms-publictraffictype: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: c821b829-e287-4457-2727-08d8b18c82c3 x-ms-traffictypediagnostic: HE1PR08MB2633:|AM7PR08MB5399: x-ms-exchange-transport-forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:41;OLM:5236; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: WD4MPf4NYjor06B3PZfT8OtJePX46O5xBjy3JonwhcBBCrbcH1MI4HLyGknVm7e9HiM4FiWyVXgBlSwDR8YcnMlR9zqGCI7S26FpL7quC5atmLYO0ePBOklO2MiaV3rcs67Im0t+xr1qNCGRVmZZfsPARZXph2oG/Ycru1ixqIAiYEctTis1ERLz9SqUYZxds7knJka8JO5K5UYazBp26BrtYMNS5osxzS32lxHlUADBBwPAelS9rGBV22mjzELe/C31PR6CakkzJ/caEUYLihO7y4vA721YoSzxq4M683eHfTzvHTo6k7BdsyAuDusvcJ8Y6kmPjIhlIr+715oY4fOgMZU2OVLdolfo3GEK8DvF9AqfXYHvckc2hoVpkkOWUFfn/sQdLpT6S1XBSqYHDWEcV+RtDTuAfjivhYMymbqIoqi9WyzKLGcDBzXsYYSRrgPKgD834WXjkGMEj6hUGP1qZd/+SfoqkOtC7Qc0pRky0NS8QcXyuEbrOozB629h0wc0RkM2ax+1ObTJkCoZAw== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:HE1PR0801MB1691.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(6029001)(4636009)(376002)(136003)(39860400002)(346002)(396003)(366004)(86362001)(83380400001)(6506007)(66946007)(66556008)(186003)(53546011)(55016002)(66446008)(66476007)(478600001)(2906002)(33656002)(76116006)(64756008)(966005)(71200400001)(316002)(7696005)(54906003)(52536014)(26005)(4326008)(5660300002)(110136005)(19627235002)(8936002)(9686003)(8676002)(145603002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?TtSP3f3fGRPKcLauBaRDyhD4iNbwAbh1sEbOQ3vq8n3hDmSBnq3EcDNfyIGz?= =?us-ascii?Q?yj033UuXN+m3BXyIoUWAQb5XVLzWGjKSG8zXp+BDAJwgBz/OgXFgGSEvhHkU?= =?us-ascii?Q?PCGTKnyu/7HeQjHPlmwBxcxSGkGLGMrFbX0+1D5unpE1ObP3Lxceo89lFwP2?= =?us-ascii?Q?k4ee2lZvi/yfk5fnQlvnfWprKJ+9mS8AJCObP1Xi6tgCHeM5FLTMAyUuAQUt?= =?us-ascii?Q?Vhg6bFab75UOEm8h6hESs8xDgBszHEIzasXSDbr/4AMNH4yzUVZONcz/vSql?= =?us-ascii?Q?cvlkIaQD1/K6m7AIWILdAljrojyXzzCmBiVg79Sb0AOetjkPMI4IFrejnfrn?= =?us-ascii?Q?u7cCOMo6WNtjup3Q61xs1m2UK71KqjklJzA1hXT8eQYxmdZPb2LWALLkFzm3?= =?us-ascii?Q?djZM0Bj64xie6nHKO6GCYaAQXE3aTJbwHI2QIDbA32ZhN8CfbwTvFbTe2P8e?= =?us-ascii?Q?9ZQ7xMYQMo1eV8Hz+54vZ7rdiDi2gIktnqJ/rz3yA39r9XX5w2Nh57u8rfB+?= =?us-ascii?Q?vsuBsiLHUr+sv2ddynXI/h16UsqHSXdgPYU70PTcYeeuUbbyT1xSxarRZKBG?= =?us-ascii?Q?q8XQix0KEUW3TNLHpYoI27EQXZpvTaf2N4mXEwUs3SygA44vt1vZe45G4nE5?= =?us-ascii?Q?TwG3wQ5o3HZyGXXsdgW2amtsQ/qF+SeYebcxTmAdA7eySuvm4sBPEdreiZ5t?= =?us-ascii?Q?VkNh4B6R9zqPsgQvajVRBWiVX3THaeGw8Og0ApLLl9PJ3BMg8IPksJFk5PIf?= =?us-ascii?Q?VQNYuqTexDRsd6imqHIqw7Vau/cYKpi6fRmrif4K5fax30miy1rVzHEXOHXL?= =?us-ascii?Q?zAxuDDyswFqyTnCbC/Cw7kqwmOYvbMghc9cKTpCAaL5FtDqESAmZRMm9Trmp?= =?us-ascii?Q?sxfze60T9aetO7ZE/Uv/3GlkJc0URLK8eA/2MuYB0I5/BfOEUc0N0canruDv?= =?us-ascii?Q?nZWYYZimenn2pHA4a0w26PLDzA5OJBdCwsu845fmHUc=3D?= MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR08MB2633 Original-Authentication-Results: gmx.de; dkim=none (message not signed) header.d=none;gmx.de; dmarc=none action=none header.from=arm.com; Return-Path: Edhaya.Chandran@arm.com X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT009.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 4611b1db-fae0-4913-a7b1-08d8b18c7dfe X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: WC1j5fBwyU72bRSf7QYFLVF4aljNDA5qKNBAs/IsM6c+70dVYJDwsr9dPJS74pljUf6N/x5XySMNuRf3bpfh3uMkfoi3qjIKlqudv8FfCTJFqYKSKi+dWX1S8Ckn0KDowESy4FBYhhLj64Fbu/P0PgK6soRSlG168QFoFWk4Ch4H6ZvIDoNmJwGRC0oiu5+VZDOj+SHxBv/tuBch2bnNbFsz3URH81UQRVE90Lyi9CfOBvZ+hq7SKUHAjWIorIUka/k0leyzmkupfclRzOB/Xjib3BevhbOfesxQYuTt+OjkdwQE5iDQ75DM3avBlNuHxO527L6lXRKP5HYrpRHJd2SPY+jqPjtXPI5KrqubbR4zURHzRD+Ntd87KHKXR5Xsd3CcLZFyjYD2flv6biJxU3kBUUWmRgM5P+fduscnjzeR33KGw9wJc1lgQ3HCrwQqFU1oD/vvB4R5dFrEMDrJY7bGGxLvZJcHW6slOSInlSp3nnqUBdbMlVQIC5jn/fGGDxL8D8NJ7kI9uh76UVxdd0mJXCK7CPq0R+VM7uPK+yLtVdCmOp73ChlotSJU56CY X-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFS:(6029001)(4636009)(396003)(136003)(39860400002)(346002)(376002)(46966006)(70206006)(54906003)(316002)(4326008)(8676002)(86362001)(110136005)(55016002)(356005)(966005)(478600001)(81166007)(83380400001)(70586007)(8936002)(2906002)(47076005)(82310400003)(336012)(26005)(33656002)(186003)(9686003)(19627235002)(82740400003)(52536014)(5660300002)(7696005)(6506007)(53546011)(145603002);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jan 2021 15:13:51.9680 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c821b829-e287-4457-2727-08d8b18c82c3 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM5EUR03FT009.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR08MB5399 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-By: G Edhaya Chandran > -----Original Message----- > From: Heinrich Schuchardt > Sent: 02 January 2021 01:22 > To: EDK II Development > Cc: Eric Jin ; G Edhaya Chandran > ; Barton Gao ; Arvin > Chen ; Samer El-Haj-Mahmoud Mahmoud@arm.com>; Heinrich Schuchardt > Subject: [PATCH 1/1] uefi-sct/SctPkg: format string > BBTestFatToStrFunctionAutoTest > > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3146 > > 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: Heinrich Schuchardt > --- > .../BlackBoxTest/UnicodeCollation2BBTestFunction.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/uefi- > sct/SctPkg/TestCase/UEFI/EFI/Protocol/UnicodeCollation2/BlackBoxTest/Unic= od > eCollation2BBTestFunction.c b/uefi- > sct/SctPkg/TestCase/UEFI/EFI/Protocol/UnicodeCollation2/BlackBoxTest/Unic= od > eCollation2BBTestFunction.c > index 8bf5170f..22b57f21 100644 > --- a/uefi- > sct/SctPkg/TestCase/UEFI/EFI/Protocol/UnicodeCollation2/BlackBoxTest/Unic= od > eCollation2BBTestFunction.c > +++ b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/UnicodeCollation2/Black > +++ BoxTest/UnicodeCollation2BBTestFunction.c > @@ -636,7 +636,7 @@ BBTestFatToStrFunctionAutoTest ( > AssertionType, > gUnicodeCollationFunctionTestAssertionGuid007, > L"EFI_UNICODE_COLLATION_PROTOCOL.FatToStr - Verificat= ion of > FatToStr interface", > - L"%a:%d: Fat=3D'%s', FatToStr=3D'%s', FatSize=3D%d, S= trSize=3D%d", > + L"%a:%d: Fat=3D'%a', FatToStr=3D'%s', FatSize=3D%d, > + StrSize=3D%d", > __FILE__, > (UINTN)__LINE__, > TestData[Index], > @@ -668,7 +668,7 @@ BBTestFatToStrFunctionAutoTest ( > AssertionType, > gUnicodeCollationFunctionTestAssertionGuid008, > L"EFI_UNICODE_COLLATION_PROTOCOL.FatToStr - Verific= ation > 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 - Verific= ation > 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], > -- > 2.29.2 IMPORTANT NOTICE: The contents of this email and any attachments are confid= ential and may also be privileged. If you are not the intended recipient, p= lease notify the sender immediately and do not disclose the contents to any= other person, use it for any purpose, or store or copy the information in = any medium. Thank you.