From 022c6d45ef78605c173023f53984e4dfaf7b11f4 Mon Sep 17 00:00:00 2001 From: qhuang8 Date: Thu, 24 Jul 2008 02:54:45 +0000 Subject: Code Scrub for Dxe Core. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5560 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Core/Dxe/Image/Image.c | 4 +- MdeModulePkg/Core/Dxe/Image/ImageFile.c | 68 ++++++++++++++++----------------- 2 files changed, 36 insertions(+), 36 deletions(-) (limited to 'MdeModulePkg/Core/Dxe/Image') diff --git a/MdeModulePkg/Core/Dxe/Image/Image.c b/MdeModulePkg/Core/Dxe/Image/Image.c index 0c4baae2f7..dbb662519f 100644 --- a/MdeModulePkg/Core/Dxe/Image/Image.c +++ b/MdeModulePkg/Core/Dxe/Image/Image.c @@ -466,12 +466,12 @@ CoreLoadPeImage ( UINTN StartIndex; CHAR8 EfiFileName[256]; - + DEBUG ((DEBUG_INFO | DEBUG_LOAD, "Loading driver at 0x%10p EntryPoint=0x%10p ", (VOID *)(UINTN) Image->ImageContext.ImageAddress, FUNCTION_ENTRY_POINT ((UINTN) Image->ImageContext.EntryPoint))); - + // // Print Module Name by Pdb file path diff --git a/MdeModulePkg/Core/Dxe/Image/ImageFile.c b/MdeModulePkg/Core/Dxe/Image/ImageFile.c index c9fc6d632d..3776e57513 100644 --- a/MdeModulePkg/Core/Dxe/Image/ImageFile.c +++ b/MdeModulePkg/Core/Dxe/Image/ImageFile.c @@ -20,21 +20,21 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. will access the file either from a memory copy, from a file system interface, or from the load file interface. - @param BootPolicy Policy for Open Image File. - @param SourceBuffer Pointer to the memory location containing copy - of the image to be loaded. - @param SourceSize The size in bytes of SourceBuffer. - @param FilePath The specific file path from which the image is - loaded - @param DeviceHandle Pointer to the return device handle. - @param ImageFileHandle Pointer to the image file handle. - @param AuthenticationStatus Pointer to a caller-allocated UINT32 in which - the authentication status is returned. - - @retval EFI_SUCCESS Image file successfully opened. - @retval EFI_LOAD_ERROR If the caller passed a copy of the file, and - SourceSize is 0. - @retval EFI_INVALID_PARAMETER File path is not valid. + @param BootPolicy Policy for Open Image File. + @param SourceBuffer Pointer to the memory location containing copy + of the image to be loaded. + @param SourceSize The size in bytes of SourceBuffer. + @param FilePath The specific file path from which the image is + loaded + @param DeviceHandle Pointer to the return device handle. + @param ImageFileHandle Pointer to the image file handle. + @param AuthenticationStatus Pointer to a caller-allocated UINT32 in which + the authentication status is returned. + + @retval EFI_SUCCESS Image file successfully opened. + @retval EFI_LOAD_ERROR If the caller passed a copy of the file, and + SourceSize is 0. + @retval EFI_INVALID_PARAMETER File path is not valid. @retval EFI_NOT_FOUND File not found. **/ @@ -175,7 +175,7 @@ CoreOpenImageFile ( // // Duplicate the device path to avoid the access to unaligned device path node. // Because the device path consists of one or more FILE PATH MEDIA DEVICE PATH - // nodes, It assures the fields in device path nodes are 2 byte aligned. + // nodes, It assures the fields in device path nodes are 2 byte aligned. // FilePathNode = (FILEPATH_DEVICE_PATH *)CoreDuplicateDevicePath((EFI_DEVICE_PATH_PROTOCOL *)(UINTN)FilePathNode); if (FilePathNode == NULL) { @@ -220,7 +220,7 @@ CoreOpenImageFile ( FilePathNode = (FILEPATH_DEVICE_PATH *) NextDevicePathNode (&FilePathNode->Header); } // - // Free the allocated memory pool + // Free the allocated memory pool // CoreFreePool(OriginalFilePathNode); } @@ -337,13 +337,13 @@ Done: Read image file (specified by UserHandle) into user specified buffer with specified offset and length. - @param UserHandle Image file handle - @param Offset Offset to the source file - @param ReadSize For input, pointer of size to read; For output, - pointer of size actually read. - @param Buffer Buffer to write into + @param UserHandle Image file handle + @param Offset Offset to the source file + @param ReadSize For input, pointer of size to read; For output, + pointer of size actually read. + @param Buffer Buffer to write into - @retval EFI_SUCCESS Successfully read the specified part of file + @retval EFI_SUCCESS Successfully read the specified part of file into buffer. **/ @@ -382,11 +382,11 @@ CoreReadImageFile ( Search a handle to a device on a specified device path that supports a specified protocol, interface of that protocol on that handle is another output. - @param Protocol The protocol to search for - @param FilePath The specified device path - @param Interface Interface of the protocol on the handle - @param Handle The handle to the device on the specified device - path that supports the protocol. + @param Protocol The protocol to search for + @param FilePath The specified device path + @param Interface Interface of the protocol on the handle + @param Handle The handle to the device on the specified device + path that supports the protocol. @return Status code. @@ -414,13 +414,13 @@ CoreDevicePathToInterface ( to allocate the proper sized buffer for various EFI interfaces. - @param Status Current status - @param Buffer Current allocated buffer, or NULL - @param BufferSize Current buffer size needed + @param Status Current status + @param Buffer Current allocated buffer, or NULL + @param BufferSize Current buffer size needed - @retval TRUE if the buffer was reallocated and the caller - should try the API again. - @retval FALSE buffer could not be allocated and the caller + @retval TRUE if the buffer was reallocated and the caller + should try the API again. + @retval FALSE buffer could not be allocated and the caller should not try the API again. **/ -- cgit v1.2.3