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 bbc04972bc
commit a618e43977

View File

@ -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" ");
@ -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);