From 0aa85c4a6bc040fdb85da96112172b68748cfd9c Mon Sep 17 00:00:00 2001 From: klu2 Date: Wed, 24 Jun 2009 06:13:43 +0000 Subject: [PATCH] Refine comments. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8642 6f19259b-4bc3-4df7-8a09-765794883524 --- .../DataHubStdErrDxe/DataHubStdErr.c | 19 ++++++++----------- .../DataHubStdErrDxe/DataHubStdErrDxe.inf | 11 ++--------- 2 files changed, 10 insertions(+), 20 deletions(-) diff --git a/IntelFrameworkModulePkg/Universal/DataHubStdErrDxe/DataHubStdErr.c b/IntelFrameworkModulePkg/Universal/DataHubStdErrDxe/DataHubStdErr.c index d0ee4493ed..d814c6716d 100644 --- a/IntelFrameworkModulePkg/Universal/DataHubStdErrDxe/DataHubStdErr.c +++ b/IntelFrameworkModulePkg/Universal/DataHubStdErrDxe/DataHubStdErr.c @@ -2,7 +2,7 @@ Data Hub filter driver that takes DEBUG () info from Data Hub and writes it to StdErr if it exists. -Copyright (c) 2006, Intel Corporation +Copyright (c) 2006 - 2009, Intel Corporation All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -13,10 +13,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. **/ - #include - - #include #include #include @@ -36,8 +33,8 @@ EFI_EVENT mDataHubStdErrEvent; Event handler registered with the Data Hub to parse EFI_DEBUG_CODE. This handler reads the Data Hub and sends any DEBUG info to StdErr. - @param Event - The event that occured, not used - @param Context - DataHub Protocol Pointer + @param Event The event that occured, not used + @param Context DataHub Protocol Pointer **/ VOID EFIAPI @@ -68,6 +65,7 @@ DataHubStdErrEventHandler ( if (gST->StdErr == NULL) { return ; } + // // Mtc of zero means return the next record that has not been read by the // event handler. @@ -100,12 +98,11 @@ DataHubStdErrEventHandler ( Register an event handler with the Data Hub to parse EFI_DEBUG_CODE. This handler reads the Data Hub and sends any DEBUG info to StdErr. - @param ImageHandle - Image handle of this driver. - @param SystemTable - Pointer to EFI system table. + @param ImageHandle Image handle of this driver. + @param SystemTable Pointer to EFI system table. - @retval EFI_SUCCESS - The event handler was registered. - @retval EFI_OUT_OF_RESOURCES - The event hadler was not registered due to lack of - system resources. + @retval EFI_SUCCESS The event handler was registered. + @retval EFI_OUT_OF_RESOURCES The event hadler was not registered due to lack of system resources. **/ EFI_STATUS EFIAPI diff --git a/IntelFrameworkModulePkg/Universal/DataHubStdErrDxe/DataHubStdErrDxe.inf b/IntelFrameworkModulePkg/Universal/DataHubStdErrDxe/DataHubStdErrDxe.inf index 03be3e8b7c..9a79d02b07 100644 --- a/IntelFrameworkModulePkg/Universal/DataHubStdErrDxe/DataHubStdErrDxe.inf +++ b/IntelFrameworkModulePkg/Universal/DataHubStdErrDxe/DataHubStdErrDxe.inf @@ -1,7 +1,6 @@ #/** @file -# Component description file for Data Hub filter driver. -# # This driver takes DEBUG () info from Data Hub and writes it to StdErr if it exists. +# # Copyright (c) 2006 - 2009, Intel Corporation # # All rights reserved. This program and the accompanying materials @@ -11,7 +10,6 @@ # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. # -# #**/ [Defines] @@ -37,24 +35,19 @@ IntelFrameworkPkg/IntelFrameworkPkg.dec IntelFrameworkModulePkg/IntelFrameworkModulePkg.dec - - - [LibraryClasses] UefiBootServicesTableLib BaseMemoryLib UefiDriverEntryPoint DebugLib - [Guids] gEfiStatusCodeDataTypeDebugGuid # SOMETIMES_CONSUMED gEfiDataHubStatusCodeRecordGuid # SOMETIMES_CONSUMED [Protocols] - gEfiDataHubProtocolGuid # PROTOCOL ALWAYS_CONSUMED - + gEfiDataHubProtocolGuid # PROTOCOL CONSUMED [Depex] gEfiDataHubProtocolGuid -- 2.39.2