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 &BufferSize
); );
if (!EFI_ERROR (Status)) { if (!EFI_ERROR (Status)) {
Description = AllocateZeroPool (StrSize (L"SATA: ") + ModelNameLength * sizeof (CHAR16)); Description = AllocateZeroPool (ModelNameLength * sizeof (CHAR16));
ASSERT (Description != NULL); ASSERT (Description != NULL);
for (Index = 0; Index + 1 < ModelNameLength; Index += 2) { for (Index = 0; Index + 1 < ModelNameLength; Index += 2) {
Description[Index] = (CHAR16) IdentifyData.ModelName[Index + 1]; Description[Index] = (CHAR16) IdentifyData.ModelName[Index + 1];
@ -179,11 +179,6 @@ BmGetDescriptionFromDiskInfo (
BmEliminateExtraSpaces (Description); BmEliminateExtraSpaces (Description);
DescTemp = AllocateZeroPool (0x60); 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); StrCatS (DescTemp, 0x60 / sizeof (CHAR16), Description);
StrCpyS(Description, StrSize (DescTemp) / sizeof (CHAR16), DescTemp); StrCpyS(Description, StrSize (DescTemp) / sizeof (CHAR16), DescTemp);
FreePool (DescTemp); FreePool (DescTemp);
@ -310,10 +305,9 @@ BmGetUsbDescription (
return NULL; return NULL;
} }
DescMaxSize = StrSize (L"USB: ") + StrSize (Manufacturer) + StrSize (Product); DescMaxSize = StrSize (Manufacturer) + StrSize (Product);
Description = AllocateZeroPool (DescMaxSize); Description = AllocateZeroPool (DescMaxSize);
ASSERT (Description != NULL); ASSERT (Description != NULL);
StrCatS (Description, DescMaxSize/sizeof(CHAR16), L"USB: ");
StrCatS (Description, DescMaxSize/sizeof(CHAR16), Manufacturer); StrCatS (Description, DescMaxSize/sizeof(CHAR16), Manufacturer);
StrCatS (Description, DescMaxSize/sizeof(CHAR16), L" "); StrCatS (Description, DescMaxSize/sizeof(CHAR16), L" ");
@ -613,7 +607,6 @@ BmGetNvmeDescription (
} }
BmEliminateExtraSpaces (Description); BmEliminateExtraSpaces (Description);
DescTemp = AllocateZeroPool (0x60); DescTemp = AllocateZeroPool (0x60);
StrCatS (DescTemp, 0x60 / sizeof (CHAR16), L"NVMe: ");
StrCatS (DescTemp, 0x60 / sizeof (CHAR16), Description); StrCatS (DescTemp, 0x60 / sizeof (CHAR16), Description);
StrCpyS(Description, StrSize (DescTemp) / sizeof (CHAR16), DescTemp); StrCpyS(Description, StrSize (DescTemp) / sizeof (CHAR16), DescTemp);
FreePool (DescTemp); FreePool (DescTemp);