From a618e43977ff73fee5030ec4c3d481cc13a8d8d3 Mon Sep 17 00:00:00 2001 From: Tim Crawford Date: Tue, 16 Nov 2021 10:10:20 -0700 Subject: [PATCH] MdeModulePkg/BmBootDesciption: Remove device prefixes Remove the device prefixes to match current System76 firmware UI in the One Time Boot menu. Signed-off-by: Tim Crawford --- .../Library/UefiBootManagerLib/BmBootDescription.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/MdeModulePkg/Library/UefiBootManagerLib/BmBootDescription.c b/MdeModulePkg/Library/UefiBootManagerLib/BmBootDescription.c index 25a6f23c9b..2b4a7b4670 100644 --- a/MdeModulePkg/Library/UefiBootManagerLib/BmBootDescription.c +++ b/MdeModulePkg/Library/UefiBootManagerLib/BmBootDescription.c @@ -169,7 +169,7 @@ BmGetDescriptionFromDiskInfo ( &BufferSize ); if (!EFI_ERROR (Status)) { - Description = AllocateZeroPool (StrSize (L"SATA: ") + ModelNameLength * sizeof (CHAR16)); + Description = AllocateZeroPool (ModelNameLength * sizeof (CHAR16)); ASSERT (Description != NULL); for (Index = 0; Index + 1 < ModelNameLength; Index += 2) { Description[Index] = (CHAR16) IdentifyData.ModelName[Index + 1]; @@ -179,11 +179,6 @@ BmGetDescriptionFromDiskInfo ( BmEliminateExtraSpaces (Description); DescTemp = AllocateZeroPool (0x60); - if (CompareGuid (&DiskInfo->Interface, &gEfiDiskInfoAhciInterfaceGuid)) { - StrCatS (DescTemp, 0x60 / sizeof (CHAR16), L"SATA: "); - } else { - StrCatS (DescTemp, 0x60 / sizeof (CHAR16), L"IDE: "); - } StrCatS (DescTemp, 0x60 / sizeof (CHAR16), Description); StrCpyS(Description, StrSize (DescTemp) / sizeof (CHAR16), DescTemp); FreePool (DescTemp); @@ -310,10 +305,9 @@ BmGetUsbDescription ( return NULL; } - DescMaxSize = StrSize (L"USB: ") + StrSize (Manufacturer) + StrSize (Product); + DescMaxSize = StrSize (Manufacturer) + StrSize (Product); Description = AllocateZeroPool (DescMaxSize); ASSERT (Description != NULL); - StrCatS (Description, DescMaxSize/sizeof(CHAR16), L"USB: "); StrCatS (Description, DescMaxSize/sizeof(CHAR16), Manufacturer); StrCatS (Description, DescMaxSize/sizeof(CHAR16), L" "); @@ -326,7 +320,7 @@ BmGetUsbDescription ( if (Product != &NullChar) { FreePool (Product); } - + BmEliminateExtraSpaces (Description); return Description; @@ -613,7 +607,6 @@ BmGetNvmeDescription ( } BmEliminateExtraSpaces (Description); DescTemp = AllocateZeroPool (0x60); - StrCatS (DescTemp, 0x60 / sizeof (CHAR16), L"NVMe: "); StrCatS (DescTemp, 0x60 / sizeof (CHAR16), Description); StrCpyS(Description, StrSize (DescTemp) / sizeof (CHAR16), DescTemp); FreePool (DescTemp);