From: Jose Luis Duran Date: Tue, 22 Feb 2022 11:39:03 +0000 (-0300) Subject: libefivar: Correct the string expression of UTF8 vendor device path X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=ec80ee29ae0f8f82a7fe2e0c7c7da519fe8b3f3d;p=people%2Froyger%2Ffreebsd.git 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: https://github.com/tianocore/edk2/commit/959be180e185869b71db9dad34c3f4bba660d724 Pull Request: https://github.com/freebsd/freebsd-src/pull/580 (cherry picked from commit 91a35e5803bef59b8ca67b0621216124cc2e42f8) --- diff --git a/lib/libefivar/efivar-dp-format.c b/lib/libefivar/efivar-dp-format.c index aa875dc45e70..14f6adc2fd98 100644 --- a/lib/libefivar/efivar-dp-format.c +++ b/lib/libefivar/efivar-dp-format.c @@ -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);