summaryrefslogtreecommitdiffstats
path: root/ShellPkg
diff options
context:
space:
mode:
authorDandan Bi <dandan.bi@intel.com>2017-09-28 10:25:23 +0800
committerHao Wu <hao.a.wu@intel.com>2017-09-29 09:40:31 +0800
commitb6e0f0c6d1f6b8e3e2f7be546c63e9387bdf3c9b (patch)
tree223dc0efdb321f51c89b2801d4b3d3327125d678 /ShellPkg
parent770f3f6144b47b7b52f2fb6b3f7f532630f2fc32 (diff)
downloadedk2-b6e0f0c6d1f6b8e3e2f7be546c63e9387bdf3c9b.tar.gz
edk2-b6e0f0c6d1f6b8e3e2f7be546c63e9387bdf3c9b.tar.bz2
edk2-b6e0f0c6d1f6b8e3e2f7be546c63e9387bdf3c9b.zip
ShellPkg/Dh: Refine variable naming style
Avoid using only lower-case characters for variable name. Cc: Ruiyu Ni <ruiyu.ni@intel.com> Cc: Jaben Carsey <jaben.carsey@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Dandan Bi <dandan.bi@intel.com> Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
Diffstat (limited to 'ShellPkg')
-rw-r--r--ShellPkg/Library/UefiShellDriver1CommandsLib/Dh.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ShellPkg/Library/UefiShellDriver1CommandsLib/Dh.c b/ShellPkg/Library/UefiShellDriver1CommandsLib/Dh.c
index 7d06163a7b..a7bd2516d0 100644
--- a/ShellPkg/Library/UefiShellDriver1CommandsLib/Dh.c
+++ b/ShellPkg/Library/UefiShellDriver1CommandsLib/Dh.c
@@ -286,7 +286,7 @@ GetProtocolInfoString(
UINTN Size;
CHAR16 *Temp;
CHAR16 GuidStr[40];
- VOID *instance;
+ VOID *Instance;
CHAR16 InstanceStr[17];
ProtocolGuidArray = NULL;
@@ -316,10 +316,10 @@ GetProtocolInfoString(
StrnCatGrow(&RetVal, &Size, L"%N", 0);
if(Verbose) {
- Status = gBS->HandleProtocol (TheHandle, ProtocolGuidArray[ProtocolIndex], &instance);
+ Status = gBS->HandleProtocol (TheHandle, ProtocolGuidArray[ProtocolIndex], &Instance);
if (!EFI_ERROR (Status)) {
StrnCatGrow (&RetVal, &Size, L"(%H", 0);
- UnicodeSPrint (InstanceStr, sizeof (InstanceStr), L"%x", instance);
+ UnicodeSPrint (InstanceStr, sizeof (InstanceStr), L"%x", Instance);
StrnCatGrow (&RetVal, &Size, InstanceStr, 0);
StrnCatGrow (&RetVal, &Size, L"%N)", 0);
}