ShellPkg: Clean up source files
1. Do not use tab characters 2. No trailing white space in one line 3. All files must end with CRLF Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
Main file for NULL named library for debug1 profile shell command functions.
|
||||
|
||||
Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
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
|
||||
@ -173,7 +173,7 @@ GetSystemConfigurationTable (
|
||||
|
||||
/**
|
||||
Clear the line at the specified Row.
|
||||
|
||||
|
||||
@param[in] Row The row number to be cleared ( start from 1 )
|
||||
@param[in] LastCol The last printable column.
|
||||
@param[in] LastRow The last printable row.
|
||||
@ -210,7 +210,7 @@ EditorClearLine (
|
||||
Line[LastCol % (ARRAY_SIZE (Line) - 1)] = CHAR_NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// print out the blank line
|
||||
//
|
||||
@ -243,7 +243,7 @@ IsValidFileNameChar (
|
||||
|
||||
/**
|
||||
Check if file name has illegal characters.
|
||||
|
||||
|
||||
@param Name The filename to check.
|
||||
|
||||
@retval TRUE The filename is ok.
|
||||
@ -323,18 +323,18 @@ EditGetDefaultFileName (
|
||||
}
|
||||
|
||||
/**
|
||||
Read a file into an allocated buffer. The buffer is the responsibility
|
||||
Read a file into an allocated buffer. The buffer is the responsibility
|
||||
of the caller to free.
|
||||
|
||||
@param[in] FileName The filename of the file to open.
|
||||
@param[out] Buffer Upon successful return, the pointer to the
|
||||
address of the allocated buffer.
|
||||
@param[out] Buffer Upon successful return, the pointer to the
|
||||
address of the allocated buffer.
|
||||
@param[out] BufferSize If not NULL, then the pointer to the size
|
||||
of the allocated buffer.
|
||||
@param[out] ReadOnly Upon successful return TRUE if the file is
|
||||
read only. FALSE otherwise.
|
||||
|
||||
@retval EFI_NOT_FOUND The filename did not represent a file in the
|
||||
@retval EFI_NOT_FOUND The filename did not represent a file in the
|
||||
file system.
|
||||
@retval EFI_SUCCESS The file was read into the buffer.
|
||||
@retval EFI_OUT_OF_RESOURCES A memory allocation failed.
|
||||
@ -381,7 +381,7 @@ ReadFileIntoBuffer (
|
||||
}
|
||||
|
||||
Info = ShellGetFileInfo(FileHandle);
|
||||
|
||||
|
||||
if (Info->Attribute & EFI_FILE_DIRECTORY) {
|
||||
FreePool (Info);
|
||||
return EFI_INVALID_PARAMETER;
|
||||
|
Reference in New Issue
Block a user