From c95158e419f22f296705fe7fd8f310512f180925 Mon Sep 17 00:00:00 2001 From: Laszlo Ersek Date: Tue, 12 Sep 2023 16:17:14 +0200 Subject: OvmfPkg/PlatformBootManagerLib: refer to virtio console subsys symbolically "OvmfPkg/Include/IndustryStandard/Virtio095.h" defines the macro VIRTIO_SUBSYSTEM_CONSOLE with value 3; other locations in the tree already use it (such as ArmVirtPkg/PlatformBootManagerLib, OvmfPkg/VirtioSerialDxe). We should use it in OvmfPkg/PlatformBootManagerLib too, rather than the naked constant 3. Signed-off-by: Laszlo Ersek Acked-by: Ard Biesheuvel --- OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c b/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c index 88c39df4ae..d9f61757cf 100644 --- a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c +++ b/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c @@ -1250,7 +1250,7 @@ DetectAndPreparePlatformVirtioDevicePath ( DEBUG ((DEBUG_INFO, "%a:%d: id %d\n", __func__, __LINE__, VirtIo->SubSystemDeviceId)); switch (VirtIo->SubSystemDeviceId) { - case 3: + case VIRTIO_SUBSYSTEM_CONSOLE: PrepareVirtioSerialDevicePath (Handle); break; default: -- cgit v1.2.3