From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id 722A7740032 for ; Fri, 3 May 2024 01:56:51 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=twfXruFVcchzoUfdaGUJf6v6WFjYRqvc8uiVxZz74nw=; c=relaxed/simple; d=groups.io; h=Received-SPF:From:To:CC:Subject:Date:Message-ID:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding:Content-Type; s=20240206; t=1714701409; v=1; b=e3sH8MgXOL2mLadObZI5TSBVqxERcYGhyMoHCkuYSkDAp8O6CoJ0+aiuNgjqKXskWpmG+lPR NT42aZvXicj4Hw7SpVspqC8HSVKN/IQm4+xT3Npc9l3NuQAj7R2T+CD1nyyVgGDrQOZNegX71mF C9jij4ot8mXLbvzFW2nCV8v+7t62EZizxG1hEV0ch5oLlAUoZxb6hlyYKHZhij0XcY9id4K31CK LKEJsDCAx5v7Cr+l8TM7R3YVh0g2+Ij2Y4NNZOX/OCvs7d9mMgNYU7/IAsJM+rbMeyUXanygJuw S1uWT2RSWSxBXiyKgZgO+UpIgrx60so3xOye81HD63ZLg== X-Received: by 127.0.0.2 with SMTP id tUerYY7687511xSaqGjNCnJ2; Thu, 02 May 2024 18:56:49 -0700 X-Received: from NAM12-MW2-obe.outbound.protection.outlook.com (NAM12-MW2-obe.outbound.protection.outlook.com [40.107.244.74]) by mx.groups.io with SMTP id smtpd.web10.3160.1714701408763387008 for ; Thu, 02 May 2024 18:56:48 -0700 X-Received: from CH0PR03CA0446.namprd03.prod.outlook.com (2603:10b6:610:10e::35) by PH7PR12MB5901.namprd12.prod.outlook.com (2603:10b6:510:1d5::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.34; Fri, 3 May 2024 01:56:44 +0000 X-Received: from CH3PEPF0000000B.namprd04.prod.outlook.com (2603:10b6:610:10e:cafe::61) by CH0PR03CA0446.outlook.office365.com (2603:10b6:610:10e::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.36 via Frontend Transport; Fri, 3 May 2024 01:56:43 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C X-Received: from mail.nvidia.com (216.228.117.160) by CH3PEPF0000000B.mail.protection.outlook.com (10.167.244.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.19 via Frontend Transport; Fri, 3 May 2024 01:56:43 +0000 X-Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Thu, 2 May 2024 18:56:26 -0700 X-Received: from NV-CL38DL3.nvidia.com (10.126.230.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Thu, 2 May 2024 18:56:24 -0700 From: "Nickle Wang via groups.io" To: CC: Abner Chang , Igor Kulchytskyy , "Nick Ramirez" Subject: [edk2-devel] [PATCH] RedfishPkg: Rename x-uefi-redfish to x-UEFI-redfish Date: Fri, 3 May 2024 09:56:17 +0800 Message-ID: <20240503015617.42078-1-nicklew@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail201.nvidia.com (10.129.68.8) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH3PEPF0000000B:EE_|PH7PR12MB5901:EE_ X-MS-Office365-Filtering-Correlation-Id: 99d45459-3aac-406b-475a-08dc6b144869 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?OrCAGGlaV0cccr60Cy+L7X4m+QDdZc59mKGY8jigO10XwK80YrzpyJcF/5fC?= =?us-ascii?Q?AiwdfdcatybOj4N21DS2+zirJWzceRE9nr0qkhJBhj1qmSeXNrb7soPrjrCG?= =?us-ascii?Q?dGYsL7W3er+JUEhqDStBMT+4Mu9PgdAzlSrqRRyG2M4RrCc5SRn4HlzPzUdn?= =?us-ascii?Q?7sZd3lG3rABYtCX4XE+Ylkf80LoRcWIhwv5t3HVaycBIrNue/vuQxUZBnYNw?= =?us-ascii?Q?8gzNwNPNE4jLtoUULA8nsjQKcBXi89XXUY7a6DVgbL6APLlB4WZCp64bcnRL?= =?us-ascii?Q?8IoNcz43e90N1P/1A0PxLKZJ4lzPiyVCnz8Z43a0Vze7jaPKus9mngxeMOn/?= =?us-ascii?Q?8VLKaXKRPNsud5mpy+YKcE4+5PceJXKHGmZMXf07qtqg/UQ7tl5VE3BP4pyM?= =?us-ascii?Q?1J9uJrDMfh4LV2yHu3f6K0jd1grP2rM4hzWdeKMZpnkVy0+VP4KvtGURs4yT?= =?us-ascii?Q?QzyUL7Xf967CGI3uVR8DKLXO0WYngGNNPljAsxH7RxAbO9cqC0YBRv+gPnPG?= =?us-ascii?Q?HtAHuUPx+Me69BE5M3PNFhKQhWZ7jO7yLVl/0S5qiijG8IxUabcJ5+vmAr//?= =?us-ascii?Q?vbEs7OcDgLT5f/vtIUBXJhW8XydISGVI7j19MOhhIpTd710aZtOcRiaGEOkK?= =?us-ascii?Q?qTCVO7eKKLRlCwmncHEkkPsWRsICMN6a67Ed6Ig7vZ73E9duRUPVQMU8hHrE?= =?us-ascii?Q?CdFfucyz9gGwkk0lO+EmrFmlEkG/WJ371x32IilGZ1BgtnAVD7/lbc8O5lDt?= =?us-ascii?Q?jEmOrpgnGwqjjprVMfJPlQxL5sjEie+MCPOiXHei4M3icj6I1HqR/hupA06X?= =?us-ascii?Q?qvcj2ao+Hlcaar3lVbikEztoMAXRo9RrzJZPS/r72keJXckAepdJggxqozHi?= =?us-ascii?Q?3z7vutgYUJ+ZcvlswAV0ChnE0UZ56EDaRGFRzznwkrxP4WrJ+N/ssyCsq67L?= =?us-ascii?Q?hNDdlA+3Yt2o9cX03eFIKJg5ADGRoyj5MIv0g+r5pg1PX7bY0AGEj0wqsk8U?= =?us-ascii?Q?E48ZRxA67IKBv45alGkrHFgY7LXQ5C2i0bKfDvww7XVg7LBgTdaQndnhB+Bt?= =?us-ascii?Q?uf7QxcHhKFMXxN91d4Du27Rx7GmPYl1ybUAm06Kcf7JuTspf9c/mBKa5XlBE?= =?us-ascii?Q?1KQ8HDAUTE71JfF+tMlWD29XExALOoZD3v9j0HnZUGHJX6MWtwdicBFB8iDk?= =?us-ascii?Q?NMXjWKZ7TvXshG6WHWmyHJaaDDY9gEKhmM1BLjhs1bsHOE/Hm7MJUXscBjxa?= =?us-ascii?Q?nfR4VwlRwdximyuDje0Atl6X20v37J4tlBcpl1trzxBIkkabG0ibULonJAkw?= =?us-ascii?Q?gsdQ9/5Qpo60p7W4jyLuVf8PyYdHqIdtAg8F8xe8ssLXF2m/i3tBNQOwvKKy?= =?us-ascii?Q?Y2/WsuTMoRYwmOAWA6Xsm17iecC5?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 May 2024 01:56:43.5957 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 99d45459-3aac-406b-475a-08dc6b144869 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.160];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CH3PEPF0000000B.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB5901 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Thu, 02 May 2024 18:56:48 -0700 Resent-From: nicklew@nvidia.com Reply-To: devel@edk2.groups.io,nicklew@nvidia.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: xWynz7N2jyULXQEy9UckImWrx7686176AA= Content-Transfer-Encoding: quoted-printable Content-Type: text/plain X-Spam-Flag: yes X-Spam-Level: ************ X-GND-Spam-Score: 190 X-GND-Status: SPAM Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=e3sH8MgX; dmarc=pass (policy=none) header.from=groups.io; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io Rename x-uefi-redfish to x-UEFI-redfish to match the format of UEFI configuration namespace prefix. RFC: https://edk2.groups.io/g/rfc/message/849 Signed-off-by: Jeff Brasen Co-authored-by: Nickle Wang Cc: Abner Chang Cc: Igor Kulchytskyy Cc: Nick Ramirez --- RedfishPkg/RedfishPkg.dec | 6 +- .../Library/RedfishPlatformConfigLib.h | 4 +- .../Protocol/EdkIIRedfishPlatformConfig.h | 4 +- .../RedfishPlatformConfigDxe.h | 2 +- .../RedfishPlatformConfigImpl.h | 16 ++-- .../RedfishPlatformConfigLib.c | 4 +- .../RedfishPlatformConfigDxe.c | 4 +- .../RedfishPlatformConfigImpl.c | 86 +++++++++---------- 8 files changed, 63 insertions(+), 63 deletions(-) diff --git a/RedfishPkg/RedfishPkg.dec b/RedfishPkg/RedfishPkg.dec index c048e43f53..54318527fe 100644 --- a/RedfishPkg/RedfishPkg.dec +++ b/RedfishPkg/RedfishPkg.dec @@ -195,10 +195,10 @@ gEfiRedfishPkgTokenSpaceGuid.PcdRedfishDebugCategory|0|UINT64|0x00001012 # # Redfish RedfishPlatformConfigDxe Debug Properties - # 0x00000001 x-uefi-redfish string database message enabled + # 0x00000001 x-UEFI-redfish string database message enabled # 0x00000002 Debug Message for dumping formset - # 0x00000004 Debug Message for x-uefi-redfish searching result - # 0x00000008 Debug Message for x-uefi-redfish Regular Expression sear= ching result + # 0x00000004 Debug Message for x-UEFI-redfish searching result + # 0x00000008 Debug Message for x-UEFI-redfish Regular Expression sear= ching result # gEfiRedfishPkgTokenSpaceGuid.PcdRedfishPlatformConfigDebugProperty|0|UIN= T32|0x00001013 # diff --git a/RedfishPkg/Include/Library/RedfishPlatformConfigLib.h b/Redfis= hPkg/Include/Library/RedfishPlatformConfigLib.h index 51a1861639..b6e60635ea 100644 --- a/RedfishPkg/Include/Library/RedfishPlatformConfigLib.h +++ b/RedfishPkg/Include/Library/RedfishPlatformConfigLib.h @@ -2,7 +2,7 @@ Definitions of RedfishPlatformConfigLib =20 (C) Copyright 2021 Hewlett Packard Enterprise Development LP
- Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES. All rights res= erved. + Copyright (c) 2022-2024, NVIDIA CORPORATION & AFFILIATES. All rights res= erved. =20 SPDX-License-Identifier: BSD-2-Clause-Patent =20 @@ -82,7 +82,7 @@ RedfishPlatformConfigGetConfigureLang ( Get the list of supported Redfish schema from platform configuration. =20 @param[out] SupportedSchema The supported schema list which is sepa= rated by ';'. - For example: "x-uefi-redfish-Memory.v1_= 7_1;x-uefi-redfish-Boot.v1_0_1" + For example: "x-UEFI-redfish-Memory.v1_= 7_1;x-UEFI-redfish-Boot.v1_0_1" The SupportedSchema is allocated by the= callee. It's caller's responsibility to free this buffer usin= g FreePool(). =20 diff --git a/RedfishPkg/Include/Protocol/EdkIIRedfishPlatformConfig.h b/Red= fishPkg/Include/Protocol/EdkIIRedfishPlatformConfig.h index d20b2c980e..a1d5592c7e 100644 --- a/RedfishPkg/Include/Protocol/EdkIIRedfishPlatformConfig.h +++ b/RedfishPkg/Include/Protocol/EdkIIRedfishPlatformConfig.h @@ -2,7 +2,7 @@ This file defines the EDKII_REDFISH_PLATFORM_CONFIG_PROTOCOL interface. =20 (C) Copyright 2021-2022 Hewlett Packard Enterprise Development LP
- Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES. All rights res= erved. + Copyright (c) 2022-2024, NVIDIA CORPORATION & AFFILIATES. All rights res= erved. =20 SPDX-License-Identifier: BSD-2-Clause-Patent =20 @@ -227,7 +227,7 @@ EFI_STATUS =20 @param[in] This Pointer to EDKII_REDFISH_PLATFORM_CONFI= G_PROTOCOL instance. @param[out] SupportedSchema The supported schema list which is sepa= rated by ';'. - For example: "x-uefi-redfish-Memory.v1_= 7_1;x-uefi-redfish-Boot.v1_0_1" + For example: "x-UEFI-redfish-Memory.v1_= 7_1;x-UEFI-redfish-Boot.v1_0_1" The SupportedSchema is allocated by the= callee. It's caller's responsibility to free this buffer usin= g FreePool(). =20 diff --git a/RedfishPkg/RedfishPlatformConfigDxe/RedfishPlatformConfigDxe.h= b/RedfishPkg/RedfishPlatformConfigDxe/RedfishPlatformConfigDxe.h index 8eb7b0dc2a..e3e185a03b 100644 --- a/RedfishPkg/RedfishPlatformConfigDxe/RedfishPlatformConfigDxe.h +++ b/RedfishPkg/RedfishPlatformConfigDxe/RedfishPlatformConfigDxe.h @@ -111,7 +111,7 @@ typedef struct { =20 #define REDFISH_PLATFORM_CONFIG_PRIVATE_FROM_THIS(a) BASE_CR (a, REDFISH_= PLATFORM_CONFIG_PRIVATE, Protocol) #define REGULAR_EXPRESSION_INCLUDE_ALL L".*" -#define CONFIGURE_LANGUAGE_PREFIX "x-uefi-redfish-" +#define CONFIGURE_LANGUAGE_PREFIX "x-UEFI-redfish-" #define REDFISH_PLATFORM_CONFIG_VERSION 0x00010000 =20 #define REDFISH_MENU_PATH_SIZE 8 diff --git a/RedfishPkg/RedfishPlatformConfigDxe/RedfishPlatformConfigImpl.= h b/RedfishPkg/RedfishPlatformConfigDxe/RedfishPlatformConfigImpl.h index 24a7dae517..525ca43fa9 100644 --- a/RedfishPkg/RedfishPlatformConfigDxe/RedfishPlatformConfigImpl.h +++ b/RedfishPkg/RedfishPlatformConfigDxe/RedfishPlatformConfigImpl.h @@ -29,7 +29,7 @@ =20 #define IS_EMPTY_STRING(a) (a =3D=3D NULL || a[0] =3D=3D L'\0') #define ENGLISH_LANGUAGE_CODE "en-US" -#define X_UEFI_SCHEMA_PREFIX "x-uefi-redfish-" +#define X_UEFI_SCHEMA_PREFIX "x-UEFI-redfish-" =20 #define MAX_X_UEFI_REDFISH_STRING_SIZE (128 * 2)// 128 character in UCS. =20 @@ -55,7 +55,7 @@ typedef struct { #define X_UEFI_REDFISH_STRING_ARRAY_ENTRY_NUMBER 1024 =20 // -// Definition of x-uefi-redfish string element. +// Definition of x-UEFI-redfish string element. // typedef struct { EFI_STRING_ID StringId; @@ -71,14 +71,14 @@ typedef struct { } REDFISH_X_UEFI_STRINGS_ARRAY; =20 // -// x-uefi-redfish string database, x-uefi-redfish language based. +// x-UEFI-redfish string database, x-UEFI-redfish language based. // typedef struct { - LIST_ENTRY NextXuefiRedfishLanguage; = // Link to the next suppoted x-uefi-Redfish language. - CHAR8 *XuefiRedfishLanguage; = // x-uefi-redfish language. + LIST_ENTRY NextXuefiRedfishLanguage; = // Link to the next suppoted x-UEFI-Redfish language. + CHAR8 *XuefiRedfishLanguage; = // x-UEFI-redfish language. UINTN StringsArrayBlocks; = // Number of the array blocks that accommodate X_UEFI_REDFISH_STRING_AR= RAY_NUMBER = // elements in each. - LIST_ENTRY XuefiRedfishStringArrays; = // Link entry of x-uefi-redfish string array. + LIST_ENTRY XuefiRedfishStringArrays; = // Link entry of x-UEFI-redfish string array. } REDFISH_X_UEFI_STRING_DATABASE; =20 // @@ -93,7 +93,7 @@ typedef struct { LIST_ENTRY HiiFormList; // Form li= st that keep form data under this formset. CHAR16 *DevicePathStr; // Device = path of this formset. REDFISH_PLATFORM_CONFIG_SCHEMA SupportedSchema; // Schema = that is supported in this formset. - LIST_ENTRY XuefiRedfishStringDatabase; // x-uefi-= redfish string/Id data base; + LIST_ENTRY XuefiRedfishStringDatabase; // x-UEFI-= redfish string/Id data base; } REDFISH_PLATFORM_CONFIG_FORM_SET_PRIVATE; =20 #define REDFISH_PLATFORM_CONFIG_FORMSET_FROM_LINK(a) BASE_CR (a, REDFISH_= PLATFORM_CONFIG_FORM_SET_PRIVATE, Link) @@ -133,7 +133,7 @@ struct _REDFISH_PLATFORM_CONFIG_STATEMENT_PRIVATE { HII_STATEMENT *HiiStatement; // Pointer = to HII statement data. EFI_QUESTION_ID QuestionId; // Question= ID of this statement. EFI_STRING_ID Description; // String t= oken of this question. - CHAR16 *XuefiRedfishStr; // x-uefi-r= edfish string of this question. + CHAR16 *XuefiRedfishStr; // x-UEFI-r= edfish string of this question. EFI_STRING_ID Help; // String t= oken of help message. UINT8 Flags; // The stat= ement flag. REDFISH_PLATFORM_CONFIG_STATEMENT_DATA StatementData; // The max/= min for statement value. diff --git a/RedfishPkg/Library/RedfishPlatformConfigLib/RedfishPlatformCon= figLib.c b/RedfishPkg/Library/RedfishPlatformConfigLib/RedfishPlatformConfi= gLib.c index 3500b6aa8f..decb1fd012 100644 --- a/RedfishPkg/Library/RedfishPlatformConfigLib/RedfishPlatformConfigLib.= c +++ b/RedfishPkg/Library/RedfishPlatformConfigLib/RedfishPlatformConfigLib.= c @@ -2,7 +2,7 @@ Wrapper function to support Redfish Platform Config protocol. =20 (C) Copyright 2021 Hewlett Packard Enterprise Development LP
- Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES. All rights res= erved. + Copyright (c) 2022-2024, NVIDIA CORPORATION & AFFILIATES. All rights res= erved. =20 SPDX-License-Identifier: BSD-2-Clause-Patent =20 @@ -191,7 +191,7 @@ RedfishPlatformConfigGetConfigureLang ( Get the list of supported Redfish schema from platform configuration. =20 @param[out] SupportedSchema The supported schema list which is sepa= rated by ';'. - For example: "x-uefi-redfish-Memory.v1_= 7_1;x-uefi-redfish-Boot.v1_0_1" + For example: "x-UEFI-redfish-Memory.v1_= 7_1;x-UEFI-redfish-Boot.v1_0_1" The SupportedSchema is allocated by the= callee. It's caller's responsibility to free this buffer usin= g FreePool(). =20 diff --git a/RedfishPkg/RedfishPlatformConfigDxe/RedfishPlatformConfigDxe.c= b/RedfishPkg/RedfishPlatformConfigDxe/RedfishPlatformConfigDxe.c index 8bcee5a16a..46d01fca60 100644 --- a/RedfishPkg/RedfishPlatformConfigDxe/RedfishPlatformConfigDxe.c +++ b/RedfishPkg/RedfishPlatformConfigDxe/RedfishPlatformConfigDxe.c @@ -1419,7 +1419,7 @@ HiiValueToRedfishValue ( RedfishValue->Value.Buffer =3D HiiGetRedfishAsciiString (HiiHandle, = FullSchema, HiiStatement->ExtraData.TextTwo); if (RedfishValue->Value.Buffer =3D=3D NULL) { // - // No x-uefi-redfish string defined. Try to get string in English. + // No x-UEFI-redfish string defined. Try to get string in English. // RedfishValue->Value.Buffer =3D HiiGetEnglishAsciiString (HiiHandle= , HiiStatement->ExtraData.TextTwo); } @@ -2112,7 +2112,7 @@ RELEASE_RESOURCE: =20 @param[in] This Pointer to EDKII_REDFISH_PLATFORM_CONFI= G_PROTOCOL instance. @param[out] SupportedSchema The supported schema list which is sepa= rated by ';'. - For example: "x-uefi-redfish-Memory.v1_= 7_1;x-uefi-redfish-Boot.v1_0_1" + For example: "x-UEFI-redfish-Memory.v1_= 7_1;x-UEFI-redfish-Boot.v1_0_1" The SupportedSchema is allocated by the= callee. It's caller's responsibility to free this buffer usin= g FreePool(). =20 diff --git a/RedfishPkg/RedfishPlatformConfigDxe/RedfishPlatformConfigImpl.= c b/RedfishPkg/RedfishPlatformConfigDxe/RedfishPlatformConfigImpl.c index 5fcaf42610..6a90e31f6a 100644 --- a/RedfishPkg/RedfishPlatformConfigDxe/RedfishPlatformConfigImpl.c +++ b/RedfishPkg/RedfishPlatformConfigDxe/RedfishPlatformConfigImpl.c @@ -657,7 +657,7 @@ GetStatementPrivateByConfigureLangRegex ( } } else { if (!RedfishPlatformConfigFeatureProp (REDFISH_PLATFORM_CONFIG= _BUILD_MENU_PATH)) { - DEBUG ((DEBUG_ERROR, "%a: HiiStatementPrivate->XuefiRedfishS= tr is NULL, x-uefi-string has something wrong.\n", __func__)); + DEBUG ((DEBUG_ERROR, "%a: HiiStatementPrivate->XuefiRedfishS= tr is NULL, x-UEFI-string has something wrong.\n", __func__)); ASSERT (FALSE); } } @@ -758,7 +758,7 @@ GetStatementPrivateByConfigureLang ( } } else { if (!RedfishPlatformConfigFeatureProp (REDFISH_PLATFORM_CONFIG= _BUILD_MENU_PATH)) { - DEBUG ((DEBUG_ERROR, "%a: HiiStatementPrivate->XuefiRedfishS= tr is NULL, x-uefi-string has something wrong.\n", __func__)); + DEBUG ((DEBUG_ERROR, "%a: HiiStatementPrivate->XuefiRedfishS= tr is NULL, x-UEFI-string has something wrong.\n", __func__)); ASSERT (FALSE); } } @@ -819,7 +819,7 @@ GetFormsetPrivateByHiiHandle ( } =20 /** - Release x-uefi-string related information. + Release x-UEFI-string related information. =20 @param[in] FormsetPrivate Pointer to HII form-set private instance. =20 @@ -842,7 +842,7 @@ ReleaseXuefiStringDatabase ( FreePool (FormsetPrivate->HiiPackageListHeader); } =20 - // Walk through x-uefi-redfish string database. + // Walk through x-UEFI-redfish string database. if (!IsListEmpty (&FormsetPrivate->XuefiRedfishStringDatabase)) { EndDatabase =3D FALSE; ThisDatabase =3D (REDFISH_X_UEFI_STRING_DATABASE *)GetFirstNode (&Form= setPrivate->XuefiRedfishStringDatabase); @@ -989,9 +989,9 @@ NewFormsetPrivate ( } =20 /** - Create new x-uefi-redfish string array. + Create new x-UEFI-redfish string array. =20 - @param[in] XuefiRedfishStringDatabase The x-uefi-redfish string da= tabase. + @param[in] XuefiRedfishStringDatabase The x-UEFI-redfish string da= tabase. =20 @retval EFI_OUT_OF_RESOURCES Not enough memory for creating a n= ew array. EFI_SUCCESS New array is created successfully. @@ -1028,13 +1028,13 @@ NewRedfishXuefiStringArray ( } =20 /** - Get the pointer of x-uefi-redfish database or create a new database. + Get the pointer of x-UEFI-redfish database or create a new database. =20 @param[in] FormsetPrivate Pointer to HII form-set private = instance. @param[in] HiiStringPackageHeader HII string package header. =20 @retval Pointer to REDFISH_X_UEFI_STRING_DATABASE. - If NULL, it fails to obtain x-uefi-redfish database. + If NULL, it fails to obtain x-UEFI-redfish database. =20 **/ REDFISH_X_UEFI_STRING_DATABASE * @@ -1068,7 +1068,7 @@ GetExistOrCreateXuefiStringDatabase ( } =20 if (CreateNewOne) { - DEBUG ((DEBUG_REDFISH_PLATFORM_CONFIG, " Creating x-uefi-redfish (%a)= string database...\n", HiiStringPackageHeader->Language)); + DEBUG ((DEBUG_REDFISH_PLATFORM_CONFIG, " Creating x-UEFI-redfish (%a)= string database...\n", HiiStringPackageHeader->Language)); XuefiRedfishStringDatabase =3D (REDFISH_X_UEFI_STRING_DATABASE *)Alloc= ateZeroPool (sizeof (REDFISH_X_UEFI_STRING_DATABASE)); if (XuefiRedfishStringDatabase =3D=3D NULL) { DEBUG ((DEBUG_ERROR, " Failed to allocate REDFISH_X_UEFI_STRING_DAT= ABASE.\n")); @@ -1088,7 +1088,7 @@ GetExistOrCreateXuefiStringDatabase ( =20 DEBUG (( DEBUG_REDFISH_PLATFORM_CONFIG, - " x-uefi-redfish (%a):\n String array is added to XuefiRedfishSt= ringDatabase, total %d arrays now.\n", + " x-UEFI-redfish (%a):\n String array is added to XuefiRedfishSt= ringDatabase, total %d arrays now.\n", XuefiRedfishStringDatabase->XuefiRedfishLanguage, XuefiRedfishStringDatabase->StringsArrayBlocks )); @@ -1101,14 +1101,14 @@ GetExistOrCreateXuefiStringDatabase ( } =20 /** - Check and allocate a new x-uefi-redfish array if it is insufficient for = the - newly added x-uefi-redfish string. + Check and allocate a new x-UEFI-redfish array if it is insufficient for = the + newly added x-UEFI-redfish string. =20 @param[in] FormsetPrivate Pointer to HII form-set priv= ate instance. - @param[in] XuefiRedfishStringDatabase Pointer to the x-uefi-redfis= h database. + @param[in] XuefiRedfishStringDatabase Pointer to the x-UEFI-redfis= h database. @param[in] StringId String ID added to database. =20 - @retval EFI_SUCCESS The size of x-uefi-string ar= ray is adjusted or + @retval EFI_SUCCESS The size of x-UEFI-string ar= ray is adjusted or is not required to be adjust= ed. Otherwise, refer to the error code returned from NewRedf= ishXuefiStringArray(). =20 @@ -1125,7 +1125,7 @@ RedfishXuefiStringAdjustArrays ( while (((StringId + X_UEFI_REDFISH_STRING_ARRAY_ENTRY_NUMBER) / X_UEFI_R= EDFISH_STRING_ARRAY_ENTRY_NUMBER) > (UINT16)XuefiRedfishStringDatabase->Str= ingsArrayBlocks) { Status =3D NewRedfishXuefiStringArray (XuefiRedfishStringDatabase); if (EFI_ERROR (Status)) { - DEBUG ((DEBUG_ERROR, "%a: Failed to adjust x-uefi-string array", __f= unc__)); + DEBUG ((DEBUG_ERROR, "%a: Failed to adjust x-UEFI-string array", __f= unc__)); return Status; } } @@ -1134,7 +1134,7 @@ RedfishXuefiStringAdjustArrays ( } =20 /** - Insert a x-uefi-redfish string to database. + Insert a x-UEFI-redfish string to database. =20 @param[in] FormsetPrivate Pointer to HII form-set private = instance. @param[in] HiiStringPackageHeader Pointer to HII string package. @@ -1161,19 +1161,19 @@ RedfishXuefiStringInsertDatabase ( =20 XuefiRedfishStringDatabase =3D GetExistOrCreateXuefiStringDatabase (Form= setPrivate, HiiStringPackageHeader); if (XuefiRedfishStringDatabase =3D=3D NULL) { - DEBUG ((DEBUG_ERROR, "%a: Failed to get REDFISH_X_UEFI_STRING_DATABASE= of x-uefi-redfish language %a.\n", __func__, HiiStringPackageHeader->Langu= age)); + DEBUG ((DEBUG_ERROR, "%a: Failed to get REDFISH_X_UEFI_STRING_DATABASE= of x-UEFI-redfish language %a.\n", __func__, HiiStringPackageHeader->Langu= age)); ReleaseXuefiStringDatabase (FormsetPrivate); return EFI_LOAD_ERROR; } =20 Status =3D RedfishXuefiStringAdjustArrays (FormsetPrivate, XuefiRedfishS= tringDatabase, StringId); if (EFI_ERROR (Status)) { - DEBUG ((DEBUG_ERROR, "%a: Failed to adjust x-uefi-redfish string array= .\n", __func__)); + DEBUG ((DEBUG_ERROR, "%a: Failed to adjust x-UEFI-redfish string array= .\n", __func__)); ReleaseXuefiStringDatabase (FormsetPrivate); return EFI_LOAD_ERROR; } =20 - // Insert string to x-uefi-redfish string array. + // Insert string to x-UEFI-redfish string array. StringIdOffset =3D (UINTN)StringId; ThisArray =3D (REDFISH_X_UEFI_STRINGS_ARRAY *)GetFirstNode (&XuefiR= edfishStringDatabase->XuefiRedfishStringArrays); while (StringIdOffset >=3D X_UEFI_REDFISH_STRING_ARRAY_ENTRY_NUMBER) { @@ -1187,7 +1187,7 @@ RedfishXuefiStringInsertDatabase ( =20 DEBUG_REDFISH_THIS_MODULE ( REDFISH_PLATFORM_CONFIG_DEBUG_STRING_DATABASE, - " Insert string ID: (%d) to database\n x-uefi-string: \"%s\"\n = Language: %a.\n", + " Insert string ID: (%d) to database\n x-UEFI-string: \"%s\"\n = Language: %a.\n", StringId, StringTextPtr, HiiStringPackageHeader->Language @@ -1196,14 +1196,14 @@ RedfishXuefiStringInsertDatabase ( } =20 /** - Get x-uefi-redfish string and language by string ID. + Get x-UEFI-redfish string and language by string ID. =20 @param[in] FormsetPrivate Pointer to HII form-set private= instance. @param[in] HiiStringPackageHeader HII string package header. @param[out] TotalStringAdded Return the total strings added = to database. =20 - @retval TRUE x-uefi-redfish string and ID map is inserted to database= . - FALSE Something is wrong when insert x-uefi-redfish string and= ID map. + @retval TRUE x-UEFI-redfish string and ID map is inserted to database= . + FALSE Something is wrong when insert x-UEFI-redfish string and= ID map. =20 **/ BOOLEAN @@ -1288,7 +1288,7 @@ CreateXuefiLanguageStringIdMap ( Offset =3D sizeof (EFI_HII_STRING_BLOCK); StringTextPtr =3D BlockHdr + Offset; =20 - // x-uefi-redfish string is always encoded as UCS and started with= '/'. + // x-UEFI-redfish string is always encoded as UCS and started with= '/'. if (*StringTextPtr =3D=3D (UINT16)'/') { Status =3D RedfishXuefiStringInsertDatabase ( FormsetPrivate, @@ -1297,7 +1297,7 @@ CreateXuefiLanguageStringIdMap ( (CHAR16 *)StringTextPtr ); if (EFI_ERROR (Status)) { - DEBUG ((DEBUG_ERROR, "%a: Failed to insert x-uefi-redfish stri= ng %s.\n", __func__, StringTextPtr)); + DEBUG ((DEBUG_ERROR, "%a: Failed to insert x-UEFI-redfish stri= ng %s.\n", __func__, StringTextPtr)); return FALSE; } =20 @@ -1398,13 +1398,13 @@ CreateXuefiLanguageStringIdMap ( } =20 /** - Get x-uefi-redfish string and language by string ID. + Get x-UEFI-redfish string and language by string ID. =20 @param[in] FormsetPrivate Pointer to HII form-set private ins= tance. @param[in] StringId The HII string ID. @param[out] String Optionally return USC string. - @param[out] Language Optionally return x-uefi-redfish la= nguage. - @param[out] XuefiStringDatabase Optionally return x-uefi-redfish da= tabase. + @param[out] Language Optionally return x-UEFI-redfish la= nguage. + @param[out] XuefiStringDatabase Optionally return x-UEFI-redfish da= tabase. =20 @retval EFI_SUCCESS String information is returned. EFI_INVALID_PARAMETER One of the given parameters to this func= tion is @@ -1456,7 +1456,7 @@ GetXuefiStringAndLangByStringId ( // // NOTE: The string ID in the formset is a unique number. // If the string in the array is NULL, then the matched string I= D - // should be in another x-uefi-redfish database. + // should be in another x-UEFI-redfish database. // if ((StringArray->ArrayEntryAddress + StringIndex)->UcsString !=3D NUL= L) { // @@ -1489,7 +1489,7 @@ ErrorExit:; } =20 /** - Build a x-uefi-redfish database for the newly added x-uefi-redfish langu= age. + Build a x-UEFI-redfish database for the newly added x-UEFI-redfish langu= age. =20 @param[in] FormsetPrivate Pointer to HII form-set private = instance. =20 @@ -1510,7 +1510,7 @@ BuildXUefiRedfishStringDatabase ( UINTN TotalStringsAdded; UINTN NumberPackageStrings; =20 - DEBUG ((DEBUG_REDFISH_PLATFORM_CONFIG, "%a: Building x-uefi-redfish stri= ng database, HII Formset GUID - %g.\n", __func__, FormsetPrivate->Guid)); + DEBUG ((DEBUG_REDFISH_PLATFORM_CONFIG, "%a: Building x-UEFI-redfish stri= ng database, HII Formset GUID - %g.\n", __func__, FormsetPrivate->Guid)); =20 BufferSize =3D 0; Status =3D mRedfishPlatformConfigPrivate->HiiDatabase->ExportPackage= Lists ( @@ -1555,7 +1555,7 @@ BuildXUefiRedfishStringDatabase ( StringIdMapIsBuilt =3D FALSE; HiiStringPackageHeader =3D (EFI_HII_STRING_PACKAGE_HDR *)PackageHe= ader; =20 - // Check if this is the string package for x-uefi-redfish + // Check if this is the string package for x-UEFI-redfish for (SupportedSchemaLangCount =3D 0; SupportedSchemaLangCount < FormsetPrivate->SupportedSchema.Co= unt; SupportedSchemaLangCount++ @@ -1578,9 +1578,9 @@ BuildXUefiRedfishStringDatabase ( =20 if (StringIdMapIsBuilt =3D=3D FALSE) { if (AsciiStrStr (HiiStringPackageHeader->Language, X_UEFI_SCHEMA= _PREFIX) =3D=3D NULL) { - DEBUG ((DEBUG_REDFISH_PLATFORM_CONFIG, " No need to build x-u= efi-redfish string ID map for HII language %a\n", HiiStringPackageHeader->L= anguage)); + DEBUG ((DEBUG_REDFISH_PLATFORM_CONFIG, " No need to build x-U= EFI-redfish string ID map for HII language %a\n", HiiStringPackageHeader->L= anguage)); } else { - DEBUG ((DEBUG_ERROR, " Failed to build x-uefi-redfish string = ID map of HII language %a\n", HiiStringPackageHeader->Language)); + DEBUG ((DEBUG_ERROR, " Failed to build x-UEFI-redfish string = ID map of HII language %a\n", HiiStringPackageHeader->Language)); } } =20 @@ -1589,7 +1589,7 @@ BuildXUefiRedfishStringDatabase ( } } =20 - DEBUG ((DEBUG_REDFISH_PLATFORM_CONFIG, " Total %d x-uefi-redfish config= language are added.\n", TotalStringsAdded)); + DEBUG ((DEBUG_REDFISH_PLATFORM_CONFIG, " Total %d x-UEFI-redfish config= language are added.\n", TotalStringsAdded)); } =20 /** @@ -1599,7 +1599,7 @@ BuildXUefiRedfishStringDatabase ( @param[out] FormsetPrivate The formset private data. =20 @retval EFI_STATUS The formset is loaded successfully. - @retval EFI_UNSUPPORTED This formset doesn't have any x-uefi-redfish= configuration. + @retval EFI_UNSUPPORTED This formset doesn't have any x-UEFI-redfish= configuration. =20 **/ EFI_STATUS @@ -1656,15 +1656,15 @@ LoadFormset ( Status =3D GetSupportedSchema (FormsetPrivate->Hi= iHandle, &FormsetPrivate->SupportedSchema); if (EFI_ERROR (Status)) { if (!RedfishPlatformConfigFeatureProp (REDFISH_PLATFORM_CONFIG_BUILD_M= ENU_PATH)) { - DEBUG ((DEBUG_REDFISH_PLATFORM_CONFIG, "%a: No x-uefi-redfish config= uration found on the formset - %g\n", __func__, FormsetPrivate->Guid)); + DEBUG ((DEBUG_REDFISH_PLATFORM_CONFIG, "%a: No x-UEFI-redfish config= uration found on the formset - %g\n", __func__, FormsetPrivate->Guid)); // - // If there is no x-uefi-redfish language in this form-set, we don't= add formset + // If there is no x-UEFI-redfish language in this form-set, we don't= add formset // since we don't need to build menu path for attribute registry. // return EFI_UNSUPPORTED; } } else { - // Building x-uefi-redfish string database + // Building x-UEFI-redfish string database BuildXUefiRedfishStringDatabase (FormsetPrivate); } =20 @@ -1739,7 +1739,7 @@ LoadFormset ( } } =20 - // Get x-uefi-redfish string using String ID. + // Get x-UEFI-redfish string using String ID. Status =3D GetXuefiStringAndLangByStringId (FormsetPrivate, HiiState= mentPrivate->Description, &String, NULL, NULL); if (!EFI_ERROR (Status)) { HiiStatementPrivate->XuefiRedfishStr =3D String; @@ -1750,13 +1750,13 @@ LoadFormset ( } else { if (!RedfishPlatformConfigFeatureProp (REDFISH_PLATFORM_CONFIG_BUI= LD_MENU_PATH)) { // - // If there is no x-uefi-redfish language for this statement, we= don't add this statement + // If there is no x-UEFI-redfish language for this statement, we= don't add this statement // since we don't need to build menu path for attribute registry= . // FreePool (HiiStatementPrivate); } else { // - // This is not x-uefi-redfish string and we don't cache its stri= ng for searching Redfish configure language. + // This is not x-UEFI-redfish string and we don't cache its stri= ng for searching Redfish configure language. // When caller wants the string, we will read English string by = calling HiiGetString(). // HiiStatementPrivate->XuefiRedfishStr =3D NULL; @@ -2111,7 +2111,7 @@ ProcessPendingList ( Status =3D LoadFormsetList (Target->HiiHandle, FormsetList); if (EFI_ERROR (Status)) { if (Status =3D=3D EFI_UNSUPPORTED) { - DEBUG ((DEBUG_ERROR, " The formset has no x-uefi-redfish config= urations.\n")); + DEBUG ((DEBUG_ERROR, " The formset has no x-UEFI-redfish config= urations.\n")); } else { DEBUG ((DEBUG_ERROR, " load formset from HII handle: 0x%x faile= d: %r\n", Target->HiiHandle, Status)); } --=20 2.34.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#118549): https://edk2.groups.io/g/devel/message/118549 Mute This Topic: https://groups.io/mt/105880826/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-