From nobody Sat Nov 2 08:34:23 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Authentication-Results: mx.zoho.com; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org; Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1492656657547488.541127407266; Wed, 19 Apr 2017 19:50:57 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 699BA21954088; Wed, 19 Apr 2017 19:50:54 -0700 (PDT) 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 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 X-Original-To: edk2-devel@lists.01.org X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,223,1488873600"; d="scan'208";a="89983437" From: Ruiyu Ni To: edk2-devel@lists.01.org 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: [edk2] [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: , Cc: Chen A Chen MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail: RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen A Chen Reviewed-by: Ruiyu Ni Reviewed-by: Jaben Carsey --- 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. =20 - @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; =20 - 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); =20 // // Print data in hex-format. @@ -302,8 +304,8 @@ ShellCommandRunComp ( ) { =20 ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_COMP_DIFFEREN= CE_POINT), gShellDebug1HiiHandle, ++DiffPointNumber); - PrintDifferentPoint (FileName1, DataFromFile1, InsertPosition1= , DiffPointAddress, DifferentBytes); - PrintDifferentPoint (FileName2, DataFromFile2, InsertPosition2= , DiffPointAddress, DifferentBytes); + PrintDifferentPoint (FileName1, L"File1", DataFromFile1, Inser= tPosition1, DiffPointAddress, DifferentBytes); + PrintDifferentPoint (FileName2, L"File2", DataFromFile2, Inser= tPosition2, DiffPointAddress, DifferentBytes); =20 // // One of two buffuers is empty, it means this is the last dif= ferent point. --=20 2.12.2.windows.2 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel