libefivar: Correct the string expression of UTF8 vendor device path

According to UEFI spec, the string expression of UTF8 vendor
device node should be displayed as: VenUtf8(). Current code
display it as: VenUft8() by mistake when convert device
path node to text.

This commit is to fix this bug.

Upstream Bug:	https://bugzilla.tianocore.org/show_bug.cgi?id=1225
Obtained from:	959be180e1
Pull Request:	https://github.com/freebsd/freebsd-src/pull/580
This commit is contained in:
Jose Luis Duran 2022-02-22 08:39:03 -03:00 committed by Warner Losh
parent 521dbfd6b1
commit 91a35e5803

View file

@ -255,7 +255,7 @@ DevPathToTextVendor (
UefiDevicePathLibCatPrint (Str, "VenVt100Plus()");
return ;
} else if (CompareGuid (&Vendor->Guid, &gEfiVTUTF8Guid)) {
UefiDevicePathLibCatPrint (Str, "VenUft8()");
UefiDevicePathLibCatPrint (Str, "VenUtf8()");
return ;
} else if (CompareGuid (&Vendor->Guid, &gEfiUartDevicePathGuid)) {
FlowControlMap = (((UART_FLOW_CONTROL_DEVICE_PATH *) Vendor)->FlowControlMap);