]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkModulePkg/Universal/DataHubStdErrDxe/DataHubStdErr.c
IntelFrameworkModulePkg: Clean up source files
[mirror_edk2.git] / IntelFrameworkModulePkg / Universal / DataHubStdErrDxe / DataHubStdErr.c
index 34ef690d76d8cf617f192b112cd4d45accd1c9b8..d400cda00784698694b2e4f7611473d77c94d406 100644 (file)
@@ -1,9 +1,9 @@
-/**@file\r
+/** @file\r
   Data Hub filter driver that takes DEBUG () info from Data Hub and writes it\r
   to StdErr if it exists.\r
 \r
-Copyright (c) 2006, Intel Corporation\r
-All rights reserved. This program and the accompanying materials\r
+Copyright (c) 2006 - 2018, 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
 http://opensource.org/licenses/bsd-license.php\r
@@ -13,12 +13,10 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 **/\r
 \r
-\r
 #include <FrameworkDxe.h>\r
-\r
-\r
 #include <Guid/DataHubStatusCodeRecord.h>\r
 #include <Guid/StatusCodeDataTypeId.h>\r
+#include <Guid/StatusCodeDataTypeDebug.h>\r
 #include <Protocol/DataHub.h>\r
 #include <Protocol/SimpleTextOut.h>\r
 \r
@@ -35,10 +33,9 @@ EFI_EVENT             mDataHubStdErrEvent;
   Event handler registered with the Data Hub to parse EFI_DEBUG_CODE. This\r
   handler reads the Data Hub and sends any DEBUG info to StdErr.\r
 \r
-  @param Event    - The event that occured, not used\r
-  @param Context  - DataHub Protocol Pointer\r
+  @param Event      The event that occured, not used\r
+  @param Context    DataHub Protocol Pointer\r
 **/\r
-STATIC\r
 VOID\r
 EFIAPI\r
 DataHubStdErrEventHandler (\r
@@ -59,7 +56,7 @@ DataHubStdErrEventHandler (
   //\r
   // If StdErr is not yet initialized just return a DEBUG print in the BDS\r
   // after consoles are connect will make sure data gets flushed properly\r
-  // when StdErr is availible.\r
+  // when StdErr is available.\r
   //\r
   if (gST == NULL) {\r
     return ;\r
@@ -68,6 +65,7 @@ DataHubStdErrEventHandler (
   if (gST->StdErr == NULL) {\r
     return ;\r
   }\r
+\r
   //\r
   // Mtc of zero means return the next record that has not been read by the\r
   // event handler.\r
@@ -100,12 +98,11 @@ DataHubStdErrEventHandler (
   Register an event handler with the Data Hub to parse EFI_DEBUG_CODE. This\r
   handler reads the Data Hub and sends any DEBUG info to StdErr.\r
 \r
-  @param ImageHandle - Image handle of this driver.\r
-  @param SystemTable - Pointer to EFI system table.\r
+  @param ImageHandle                Image handle of this driver.\r
+  @param SystemTable                Pointer to EFI system table.\r
 \r
-  @retval EFI_SUCCESS             - The event handler was registered.\r
-  @retval EFI_OUT_OF_RESOURCES    - The event hadler was not registered due to lack of\r
-                            system resources.\r
+  @retval EFI_SUCCESS               The event handler was registered.\r
+  @retval EFI_OUT_OF_RESOURCES      The event hadler was not registered due to lack of system resources.\r
 **/\r
 EFI_STATUS\r
 EFIAPI\r