]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBm.c
ArmVirtPkg/PlatformBootManagerLib: use EfiBootManagerUpdateConsoleVariable
[mirror_edk2.git] / ArmVirtPkg / Library / PlatformBootManagerLib / PlatformBm.c
index 4920621e5d19f23fd1d00ccf6bfc38b3d87ccda0..56f0ea8ff77a8ba8ab2a597f06908aa1d5d3f1ee 100644 (file)
@@ -329,14 +329,14 @@ AddOutput (
     return;\r
   }\r
 \r
-  Status = BdsLibUpdateConsoleVariable (L"ConOut", DevicePath, NULL);\r
+  Status = EfiBootManagerUpdateConsoleVariable (ConOut, DevicePath, NULL);\r
   if (EFI_ERROR (Status)) {\r
     DEBUG ((EFI_D_ERROR, "%a: %s: adding to ConOut: %r\n", __FUNCTION__,\r
       ReportText, Status));\r
     return;\r
   }\r
 \r
-  Status = BdsLibUpdateConsoleVariable (L"ErrOut", DevicePath, NULL);\r
+  Status = EfiBootManagerUpdateConsoleVariable (ErrOut, DevicePath, NULL);\r
   if (EFI_ERROR (Status)) {\r
     DEBUG ((EFI_D_ERROR, "%a: %s: adding to ErrOut: %r\n", __FUNCTION__,\r
       ReportText, Status));\r
@@ -393,7 +393,7 @@ PlatformBootManagerAfterConsole (
   //\r
   // Add the hardcoded short-form USB keyboard device path to ConIn.\r
   //\r
-  BdsLibUpdateConsoleVariable (L"ConIn",\r
+  EfiBootManagerUpdateConsoleVariable (ConIn,\r
     (EFI_DEVICE_PATH_PROTOCOL *)&mUsbKeyboard, NULL);\r
 \r
   //\r
@@ -401,11 +401,11 @@ PlatformBootManagerAfterConsole (
   //\r
   CopyGuid (&mSerialConsole.TermType.Guid,\r
     PcdGetPtr (PcdTerminalTypeGuidBuffer));\r
-  BdsLibUpdateConsoleVariable (L"ConIn",\r
+  EfiBootManagerUpdateConsoleVariable (ConIn,\r
     (EFI_DEVICE_PATH_PROTOCOL *)&mSerialConsole, NULL);\r
-  BdsLibUpdateConsoleVariable (L"ConOut",\r
+  EfiBootManagerUpdateConsoleVariable (ConOut,\r
     (EFI_DEVICE_PATH_PROTOCOL *)&mSerialConsole, NULL);\r
-  BdsLibUpdateConsoleVariable (L"ErrOut",\r
+  EfiBootManagerUpdateConsoleVariable (ErrOut,\r
     (EFI_DEVICE_PATH_PROTOCOL *)&mSerialConsole, NULL);\r
 \r
   //\r