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 E49E921954088 for ; Wed, 19 Apr 2017 19:50:52 -0700 (PDT) Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Apr 2017 19:50:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,223,1488873600"; d="scan'208";a="89983437" Received: from ray-dev.ccr.corp.intel.com ([10.239.9.25]) by orsmga005.jf.intel.com with ESMTP; 19 Apr 2017 19:50:46 -0700 From: Ruiyu Ni To: edk2-devel@lists.01.org Cc: Chen A Chen Date: Thu, 20 Apr 2017 10:50:42 +0800 Message-Id: <20170420025043.66620-1-ruiyu.ni@intel.com> X-Mailer: git-send-email 2.12.2.windows.2 Subject: [PATCH] ShellPkg/comp: Fix file tag name. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Apr 2017 02:50:53 -0000 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen A Chen Reviewed-by: Ruiyu Ni --- ShellPkg/Library/UefiShellDebug1CommandsLib/Comp.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/Comp.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/Comp.c index 05edcb7c99..f45f663dbb 100644 --- a/ShellPkg/Library/UefiShellDebug1CommandsLib/Comp.c +++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/Comp.c @@ -30,7 +30,8 @@ typedef enum { /** Function to print differnt point data. - @param[in] FileName File name + @param[in] FileName File name. + @param[in] FileTag File tag name. @param[in] Buffer Data buffer to be printed. @param[in] BufferSize Size of the data to be printed. @param[in] Address Address of the differnt point. @@ -40,6 +41,7 @@ typedef enum { VOID PrintDifferentPoint( CONST CHAR16 *FileName, + CHAR16 *FileTag, UINT8 *Buffer, UINT64 BufferSize, UINTN Address, @@ -48,7 +50,7 @@ PrintDifferentPoint( { UINTN Index; - ShellPrintEx (-1, -1, L"%s: %s\r\n %08x:", L"File1", FileName, Address); + ShellPrintEx (-1, -1, L"%s: %s\r\n %08x:", FileTag, FileName, Address); // // Print data in hex-format. @@ -302,8 +304,8 @@ ShellCommandRunComp ( ) { ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_COMP_DIFFERENCE_POINT), gShellDebug1HiiHandle, ++DiffPointNumber); - PrintDifferentPoint (FileName1, DataFromFile1, InsertPosition1, DiffPointAddress, DifferentBytes); - PrintDifferentPoint (FileName2, DataFromFile2, InsertPosition2, DiffPointAddress, DifferentBytes); + PrintDifferentPoint (FileName1, L"File1", DataFromFile1, InsertPosition1, DiffPointAddress, DifferentBytes); + PrintDifferentPoint (FileName2, L"File2", DataFromFile2, InsertPosition2, DiffPointAddress, DifferentBytes); // // One of two buffuers is empty, it means this is the last different point. -- 2.12.2.windows.2