Skip to content

Commit

Permalink
ShellPkg/comp: Use proper parameter names
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
niruiyu committed Mar 6, 2017
1 parent 8491e30 commit 891417a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ShellPkg/Library/UefiShellDebug1CommandsLib/Comp.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ VOID
PrintDifferentPoint(
CONST CHAR16 *FileName,
UINT8 *Buffer,
UINT64 DataSize,
UINT64 BufferSize,
UINTN Address,
UINT64 BufferSize
UINT64 DifferentBytes
)
{
UINTN Index;
Expand All @@ -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);
}

Expand All @@ -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 {
Expand Down

0 comments on commit 891417a

Please sign in to comment.