From b6e0f0c6d1f6b8e3e2f7be546c63e9387bdf3c9b Mon Sep 17 00:00:00 2001 From: Dandan Bi Date: Thu, 28 Sep 2017 10:25:23 +0800 Subject: [PATCH] ShellPkg/Dh: Refine variable naming style Avoid using only lower-case characters for variable name. Cc: Ruiyu Ni Cc: Jaben Carsey Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Dandan Bi Reviewed-by: Ruiyu Ni Reviewed-by: Jaben Carsey --- ShellPkg/Library/UefiShellDriver1CommandsLib/Dh.c | 6 +++--- 1 file 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); }