]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Nt32/PlatformBootManagerLib: Enable STD_ERROR on all consoles
authorMichael D Kinney <michael.d.kinney@intel.com>
Mon, 14 Aug 2017 22:18:10 +0000 (15:18 -0700)
committerMichael D Kinney <michael.d.kinney@intel.com>
Tue, 15 Aug 2017 15:30:55 +0000 (08:30 -0700)
Add STD_ERROR flag to all output consoles that the Nt32
platform supports so all messages sent to the standard
error console device(s) are visible by default.

The Boot Maintenance Manager can be used to manually disable
standard error output to specific console devices.

UEFI Applications and UEFI Drivers are recommended to be
built with DEBUG() and ASSERT() messages sent to the standard
error device using MdePkg/Library/UefiDebugLibStdErr. Prior
to this change, a user would have to use the Boot Maintenance
Manager to configure a standard error console device to make
these messages visible.

Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Hao Wu <hao.a.wu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Sunny Wang <sunnywang@hpe.com>
Tested-by: Sunny Wang <sunnywang@hpe.com>
Nt32Pkg/Library/PlatformBootManagerLib/PlatformData.c

index e92f377bd1a8dd27bd85eb5466c92bda3b438a88..e4b400b4a3785e4bcf159906fc11369624cb65ea 100644 (file)
@@ -2,7 +2,7 @@
   Defined the platform specific device path which will be filled to\r
   ConIn/ConOut variables.\r
    \r
   Defined the platform specific device path which will be filled to\r
   ConIn/ConOut variables.\r
    \r
-Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2015 - 2017, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials                          \r
 are licensed and made available under the terms and conditions of the BSD License         \r
 which accompanies this distribution.  The full text of the license may be found at        \r
 This program and the accompanying materials                          \r
 are licensed and made available under the terms and conditions of the BSD License         \r
 which accompanies this distribution.  The full text of the license may be found at        \r
@@ -137,19 +137,19 @@ NT_ISA_SERIAL_DEVICE_PATH   gNtSerialDevicePath1 = {
 PLATFORM_CONSOLE_CONNECT_ENTRY   gPlatformConsole[] = {\r
   {\r
     (EFI_DEVICE_PATH_PROTOCOL *) &gNtSerialDevicePath0,\r
 PLATFORM_CONSOLE_CONNECT_ENTRY   gPlatformConsole[] = {\r
   {\r
     (EFI_DEVICE_PATH_PROTOCOL *) &gNtSerialDevicePath0,\r
-    (CONSOLE_OUT | CONSOLE_IN)\r
+    (CONSOLE_OUT | CONSOLE_IN | STD_ERROR)\r
   },\r
   {\r
     (EFI_DEVICE_PATH_PROTOCOL *) &gNtSerialDevicePath1,\r
   },\r
   {\r
     (EFI_DEVICE_PATH_PROTOCOL *) &gNtSerialDevicePath1,\r
-    (CONSOLE_OUT | CONSOLE_IN)\r
+    (CONSOLE_OUT | CONSOLE_IN | STD_ERROR)\r
   },\r
   {\r
     (EFI_DEVICE_PATH_PROTOCOL *) &gGopDevicePath0,\r
   },\r
   {\r
     (EFI_DEVICE_PATH_PROTOCOL *) &gGopDevicePath0,\r
-    (CONSOLE_OUT | CONSOLE_IN)\r
+    (CONSOLE_OUT | CONSOLE_IN | STD_ERROR)\r
   },\r
   {\r
     (EFI_DEVICE_PATH_PROTOCOL *) &gGopDevicePath1,\r
   },\r
   {\r
     (EFI_DEVICE_PATH_PROTOCOL *) &gGopDevicePath1,\r
-    (CONSOLE_OUT | CONSOLE_IN)\r
+    (CONSOLE_OUT | CONSOLE_IN | STD_ERROR)\r
   },\r
   {\r
     NULL,\r
   },\r
   {\r
     NULL,\r