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 9FACE8034C for ; Wed, 15 Mar 2017 02:22:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=intel; t=1489569752; x=1521105752; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=xG3phD23uk9dI4fLcTA3PHDk9HqCSZpQt/hFaQNSi+k=; b=aqZgrp6A+CjkrTey4vAE9GUjp9zYiGuSqrPi1+hK2V/xSQtrBT/AN3u+ Uqt+bkNBB+pW+QOkptZsSALOOVo5tw==; Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Mar 2017 02:22:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,168,1486454400"; d="scan'208";a="75599436" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga005.jf.intel.com with ESMTP; 15 Mar 2017 02:22:32 -0700 Received: from fmsmsx126.amr.corp.intel.com (10.18.125.43) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 15 Mar 2017 02:22:31 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX126.amr.corp.intel.com (10.18.125.43) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 15 Mar 2017 02:22:31 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.59]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.132]) with mapi id 14.03.0248.002; Wed, 15 Mar 2017 17:22:29 +0800 From: "Ni, Ruiyu" To: "Tian, Feng" , "Zeng, Star" , "edk2-devel@lists.01.org" CC: "Gao, Liming" Thread-Topic: [PATCH 3/3] MdeModulePkg BmPerf: Handle "/" separator in debug path for GCC build Thread-Index: AQHSnVAWDcBK0q7mkU6siPGu+8aezKGU39yAgADAspA= Date: Wed, 15 Mar 2017 09:22:27 +0000 Deferred-Delivery: Wed, 15 Mar 2017 09:22:00 +0000 Message-ID: <734D49CCEBEEF84792F5B80ED585239D5B8CA5CA@SHSMSX104.ccr.corp.intel.com> References: <1489557032-4064-1-git-send-email-star.zeng@intel.com> <1489557032-4064-4-git-send-email-star.zeng@intel.com> <7F1BAD85ADEA444D97065A60D2E97EE5699BA8BF@SHSMSX101.ccr.corp.intel.com> In-Reply-To: <7F1BAD85ADEA444D97065A60D2E97EE5699BA8BF@SHSMSX101.ccr.corp.intel.com> Accept-Language: en-US, zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH 3/3] MdeModulePkg BmPerf: Handle "/" separator in debug path for GCC build 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: Wed, 15 Mar 2017 09:22:32 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Ruiyu Ni Thanks/Ray > -----Original Message----- > From: Tian, Feng > Sent: Wednesday, March 15, 2017 1:52 PM > To: Zeng, Star ; edk2-devel@lists.01.org > Cc: Gao, Liming ; Ni, Ruiyu ; > Tian, Feng > Subject: RE: [PATCH 3/3] MdeModulePkg BmPerf: Handle "/" separator in > debug path for GCC build >=20 > Reviewed-by: Feng Tian >=20 > Thanks > Feng >=20 > -----Original Message----- > From: Zeng, Star > Sent: Wednesday, March 15, 2017 1:51 PM > To: edk2-devel@lists.01.org > Cc: Zeng, Star ; Gao, Liming ; > Ni, Ruiyu ; Tian, Feng > Subject: [PATCH 3/3] MdeModulePkg BmPerf: Handle "/" separator in debug > path for GCC build >=20 > Cc: Liming Gao > Cc: Ruiyu Ni > Cc: Feng Tian > Contributed-under: TianoCore Contribution Agreement 1.0 > Signed-off-by: Star Zeng > --- > MdeModulePkg/Library/UefiBootManagerLib/BmPerformance.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/MdeModulePkg/Library/UefiBootManagerLib/BmPerformance.c > b/MdeModulePkg/Library/UefiBootManagerLib/BmPerformance.c > index 0abd0194409c..4d4495b2a826 100644 > --- a/MdeModulePkg/Library/UefiBootManagerLib/BmPerformance.c > +++ b/MdeModulePkg/Library/UefiBootManagerLib/BmPerformance.c > @@ -3,7 +3,7 @@ > performance, all the function will only include if the performance > switch is set. >=20 > -Copyright (c) 2004 - 2015, Intel Corporation. All rights reserved.
> +Copyright (c) 2004 - 2017, Intel Corporation. All rights reserved.
> This program and the accompanying materials are licensed and made > available under the terms and conditions of the BSD License which > accompanies this distribution. The full text of the license may be found= at > @@ -49,7 +49,7 @@ BmGetShortPdbFileName ( > ; >=20 > for (Index =3D 0; PdbFileName[Index] !=3D 0; Index++) { > - if (PdbFileName[Index] =3D=3D '\\') { > + if ((PdbFileName[Index] =3D=3D '\\') || (PdbFileName[Index] =3D=3D= '/')) > + { > StartIndex =3D Index + 1; > } >=20 > -- > 2.7.0.windows.1