From: Laszlo Ersek Date: Tue, 13 Mar 2018 14:55:12 +0000 (+0100) Subject: OvmfPkg/QemuBootOrderLib: clean up translation of virtio-net over MMIO X-Git-Tag: edk2-stable201903~2144 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=90f09188462cc9f2166fe5690639dea5412f2ef4 OvmfPkg/QemuBootOrderLib: clean up translation of virtio-net over MMIO The "/MAC(" suffix of the translated UEFI devpath prefix is unnecessary for matching, because the virtio-mmio base address in VenHwString is unique anyway. Furthermore, the partial string "MAC(" cannot be processed by ConvertTextToDevicePath(), which will become relevant later in this series. Remove "/MAC(". While at it, remove a bogus comment on PCI. Cc: Ard Biesheuvel Cc: Jordan Justen Cc: Shannon Zhao Cc: Xiang Zheng Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Laszlo Ersek Tested-by: Ard Biesheuvel # ArmVirtQemu Reviewed-by: Ard Biesheuvel Tested-by: Xiang Zheng --- diff --git a/OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.c b/OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.c index b699970b12..a4213cf6d2 100644 --- a/OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.c +++ b/OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.c @@ -1217,14 +1217,14 @@ TranslateMmioOfwNodes ( // | fixed // base address of virtio-mmio register block // - // UEFI device path prefix (dependent on presence of nonzero PCI function): + // UEFI device path prefix: // - // /MAC( + // // Written = UnicodeSPrintAsciiFormat ( Translated, *TranslatedSize * sizeof (*Translated), // BufferSize in bytes - "%s/MAC(", + "%s", VenHwString ); } else {