diff options
author | Ruiyu Ni <ruiyu.ni@intel.com> | 2017-03-06 15:15:22 +0800 |
---|---|---|
committer | Ruiyu Ni <ruiyu.ni@intel.com> | 2017-03-06 15:33:35 +0800 |
commit | 891417a74d5cd3bd202f63cec74c233cc0c57008 (patch) | |
tree | 544c8807aa91cf1443cec7aeac2697061a341e0c /ShellPkg | |
parent | 8491e302e1450db96822838a83c283962c6a35f7 (diff) | |
download | edk2-891417a74d5cd3bd202f63cec74c233cc0c57008.tar.gz edk2-891417a74d5cd3bd202f63cec74c233cc0c57008.tar.bz2 edk2-891417a74d5cd3bd202f63cec74c233cc0c57008.zip |
ShellPkg/comp: Use proper parameter names
The patch doesn't impact the functionality.
The rename also fixes the inconsistency between function
header comments and function parameters.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Diffstat (limited to 'ShellPkg')
-rw-r--r-- | ShellPkg/Library/UefiShellDebug1CommandsLib/Comp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/Comp.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/Comp.c index 5b91327efc..05edcb7c99 100644 --- a/ShellPkg/Library/UefiShellDebug1CommandsLib/Comp.c +++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/Comp.c @@ -41,9 +41,9 @@ VOID PrintDifferentPoint(
CONST CHAR16 *FileName,
UINT8 *Buffer,
- UINT64 DataSize,
+ UINT64 BufferSize,
UINTN Address,
- UINT64 BufferSize
+ UINT64 DifferentBytes
)
{
UINTN Index;
@@ -53,11 +53,11 @@ PrintDifferentPoint( //
// Print data in hex-format.
//
- for (Index = 0; Index < DataSize; Index++) {
+ for (Index = 0; Index < BufferSize; Index++) {
ShellPrintEx (-1, -1, L" %02x", Buffer[Index]);
}
- if (DataSize < BufferSize) {
+ if (BufferSize < DifferentBytes) {
ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_COMP_END_OF_FILE), gShellDebug1HiiHandle);
}
@@ -66,7 +66,7 @@ PrintDifferentPoint( //
// Print data in char-format.
//
- for (Index = 0; Index < DataSize; Index++) {
+ for (Index = 0; Index < BufferSize; Index++) {
if (Buffer[Index] >= 0x20 && Buffer[Index] <= 0x7E) {
ShellPrintEx (-1, -1, L"%c", Buffer[Index]);
} else {
|