From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id C50298214D for ; Tue, 13 Dec 2016 00:41:44 -0800 (PST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP; 13 Dec 2016 00:41:44 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,340,1477983600"; d="scan'208";a="1098432576" Received: from shwdeopenpsi114.ccr.corp.intel.com ([10.239.157.135]) by fmsmga002.fm.intel.com with ESMTP; 13 Dec 2016 00:41:43 -0800 From: Dandan Bi To: edk2-devel@lists.01.org Cc: Ruiyu Ni Date: Tue, 13 Dec 2016 16:40:11 +0800 Message-Id: <1481618428-101904-2-git-send-email-dandan.bi@intel.com> X-Mailer: git-send-email 1.9.5.msysgit.1 In-Reply-To: <1481618428-101904-1-git-send-email-dandan.bi@intel.com> References: <1481618428-101904-1-git-send-email-dandan.bi@intel.com> Subject: [patch 01/18] ShellPkg/UefiShellDebug1CommandsLib: Fix coding style issues X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2016 08:41:44 -0000 Cc: Ruiyu Ni Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dandan Bi --- ShellPkg/Library/UefiShellDebug1CommandsLib/DmpStore.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/DmpStore.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/DmpStore.c index 7133881..bb2c0b9 100644 --- a/ShellPkg/Library/UefiShellDebug1CommandsLib/DmpStore.c +++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/DmpStore.c @@ -82,12 +82,12 @@ GetAttrType ( } /** Convert binary to hex format string. - @param[in] BufferSize The size in bytes of the binary data. @param[in] Buffer The binary data. + @param[in] BufferSize The size in bytes of the binary data. @param[in, out] HexString Hex format string. @param[in] HexStringSize The size in bytes of the string. @return The hex format string. **/ @@ -421,10 +421,11 @@ CascadeProcessVariables ( UINT32 Atts; SHELL_STATUS ShellStatus; UINTN NameSize; CHAR16 *AttrString; CHAR16 *HexString; + EFI_STATUS SetStatus; if (ShellGetExecutionBreakFlag()) { return (SHELL_ABORTED); } @@ -546,11 +547,11 @@ CascadeProcessVariables ( } } else if (Type == DmpStoreDelete) { // // We only need name to delete it... // - EFI_STATUS SetStatus = gRT->SetVariable (FoundVarName, &FoundVarGuid, Atts, 0, NULL); + SetStatus = gRT->SetVariable (FoundVarName, &FoundVarGuid, Atts, 0, NULL); if (StandardFormatOutput) { if (SetStatus == EFI_SUCCESS) { ShellPrintHiiEx ( -1, -1, NULL, STRING_TOKEN (STR_DMPSTORE_NO_VAR_FOUND_NG_SFO), gShellDebug1HiiHandle, FoundVarName, &FoundVarGuid -- 1.9.5.msysgit.1