Refine comments.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8642 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
klu2 2009-06-24 06:13:43 +00:00
parent 2ab239290d
commit 0aa85c4a6b
2 changed files with 10 additions and 20 deletions

View File

@ -2,7 +2,7 @@
Data Hub filter driver that takes DEBUG () info from Data Hub and writes it Data Hub filter driver that takes DEBUG () info from Data Hub and writes it
to StdErr if it exists. 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 All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License 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 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 <FrameworkDxe.h> #include <FrameworkDxe.h>
#include <Guid/DataHubStatusCodeRecord.h> #include <Guid/DataHubStatusCodeRecord.h>
#include <Guid/StatusCodeDataTypeId.h> #include <Guid/StatusCodeDataTypeId.h>
#include <Guid/StatusCodeDataTypeDebug.h> #include <Guid/StatusCodeDataTypeDebug.h>
@ -36,8 +33,8 @@ EFI_EVENT mDataHubStdErrEvent;
Event handler registered with the Data Hub to parse EFI_DEBUG_CODE. This 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. handler reads the Data Hub and sends any DEBUG info to StdErr.
@param Event - The event that occured, not used @param Event The event that occured, not used
@param Context - DataHub Protocol Pointer @param Context DataHub Protocol Pointer
**/ **/
VOID VOID
EFIAPI EFIAPI
@ -68,6 +65,7 @@ DataHubStdErrEventHandler (
if (gST->StdErr == NULL) { if (gST->StdErr == NULL) {
return ; return ;
} }
// //
// Mtc of zero means return the next record that has not been read by the // Mtc of zero means return the next record that has not been read by the
// event handler. // event handler.
@ -100,12 +98,11 @@ DataHubStdErrEventHandler (
Register an event handler with the Data Hub to parse EFI_DEBUG_CODE. This 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. handler reads the Data Hub and sends any DEBUG info to StdErr.
@param ImageHandle - Image handle of this driver. @param ImageHandle Image handle of this driver.
@param SystemTable - Pointer to EFI system table. @param SystemTable Pointer to EFI system table.
@retval EFI_SUCCESS - The event handler was registered. @retval EFI_SUCCESS The event handler was registered.
@retval EFI_OUT_OF_RESOURCES - The event hadler was not registered due to lack of @retval EFI_OUT_OF_RESOURCES The event hadler was not registered due to lack of system resources.
system resources.
**/ **/
EFI_STATUS EFI_STATUS
EFIAPI EFIAPI

View File

@ -1,7 +1,6 @@
#/** @file #/** @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. # This driver takes DEBUG () info from Data Hub and writes it to StdErr if it exists.
#
# Copyright (c) 2006 - 2009, Intel Corporation # Copyright (c) 2006 - 2009, Intel Corporation
# #
# All rights reserved. This program and the accompanying materials # 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, # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
# #
#
#**/ #**/
[Defines] [Defines]
@ -37,24 +35,19 @@
IntelFrameworkPkg/IntelFrameworkPkg.dec IntelFrameworkPkg/IntelFrameworkPkg.dec
IntelFrameworkModulePkg/IntelFrameworkModulePkg.dec IntelFrameworkModulePkg/IntelFrameworkModulePkg.dec
[LibraryClasses] [LibraryClasses]
UefiBootServicesTableLib UefiBootServicesTableLib
BaseMemoryLib BaseMemoryLib
UefiDriverEntryPoint UefiDriverEntryPoint
DebugLib DebugLib
[Guids] [Guids]
gEfiStatusCodeDataTypeDebugGuid # SOMETIMES_CONSUMED gEfiStatusCodeDataTypeDebugGuid # SOMETIMES_CONSUMED
gEfiDataHubStatusCodeRecordGuid # SOMETIMES_CONSUMED gEfiDataHubStatusCodeRecordGuid # SOMETIMES_CONSUMED
[Protocols] [Protocols]
gEfiDataHubProtocolGuid # PROTOCOL ALWAYS_CONSUMED gEfiDataHubProtocolGuid # PROTOCOL CONSUMED
[Depex] [Depex]
gEfiDataHubProtocolGuid gEfiDataHubProtocolGuid