From: Hao Wu Date: Fri, 28 Aug 2015 07:36:55 +0000 (+0000) Subject: MdePkg: Modify string expression of BMC device path to follow UEFI spec X-Git-Tag: edk2-stable201903~8940 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=678226f632a7a369b36429afc9267f2774846ad8 MdePkg: Modify string expression of BMC device path to follow UEFI spec According to UEFI 2.5 spec, the string expression of a BMC device node should be displayed as: BMC(Type,Address). However, current code displays it as: Bmc(Type,Address). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18353 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/MdePkg/Library/UefiDevicePathLib/DevicePathFromText.c b/MdePkg/Library/UefiDevicePathLib/DevicePathFromText.c index e5f6a1f062..2dccfcf472 100644 --- a/MdePkg/Library/UefiDevicePathLib/DevicePathFromText.c +++ b/MdePkg/Library/UefiDevicePathLib/DevicePathFromText.c @@ -3458,7 +3458,7 @@ GLOBAL_REMOVE_IF_UNREFERENCED DEVICE_PATH_FROM_TEXT_TABLE mUefiDevicePathLibDevP {L"MemoryMapped", DevPathFromTextMemoryMapped }, {L"VenHw", DevPathFromTextVenHw }, {L"Ctrl", DevPathFromTextCtrl }, - {L"Bmc", DevPathFromTextBmc }, + {L"BMC", DevPathFromTextBmc }, {L"AcpiPath", DevPathFromTextAcpiPath }, {L"Acpi", DevPathFromTextAcpi }, diff --git a/MdePkg/Library/UefiDevicePathLib/DevicePathToText.c b/MdePkg/Library/UefiDevicePathLib/DevicePathToText.c index 627308c340..08cc3e87f2 100644 --- a/MdePkg/Library/UefiDevicePathLib/DevicePathToText.c +++ b/MdePkg/Library/UefiDevicePathLib/DevicePathToText.c @@ -333,7 +333,7 @@ DevPathToTextBmc ( Bmc = DevPath; UefiDevicePathLibCatPrint ( Str, - L"Bmc(0x%x,0x%lx)", + L"BMC(0x%x,0x%lx)", Bmc->InterfaceType, ReadUnaligned64 ((UINT64 *) (&Bmc->BaseAddress)) );