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 <tcrawford@system76.com>
This commit is contained in:
Tim Crawford
2021-11-16 10:10:20 -07:00
parent 601bcb9ce2
commit cbff8f0510

View File

@ -172,7 +172,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];
@ -182,11 +182,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);
@ -314,10 +309,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" ");
@ -633,7 +627,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);