From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) (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 07DA4802BD for ; Tue, 14 Mar 2017 22:52:18 -0700 (PDT) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP; 14 Mar 2017 22:52:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,167,1486454400"; d="scan'208";a="60523949" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga002.jf.intel.com with ESMTP; 14 Mar 2017 22:52:17 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 14 Mar 2017 22:52:17 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.177]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.132]) with mapi id 14.03.0248.002; Wed, 15 Mar 2017 13:52:16 +0800 From: "Tian, Feng" To: "Zeng, Star" , "edk2-devel@lists.01.org" CC: "Gao, Liming" , "Ni, Ruiyu" , "Tian, Feng" Thread-Topic: [PATCH 3/3] MdeModulePkg BmPerf: Handle "/" separator in debug path for GCC build Thread-Index: AQHSnVAWHE6uvWkPTEG17uaRyeJ+t6GVZe0A Date: Wed, 15 Mar 2017 05:52:15 +0000 Message-ID: <7F1BAD85ADEA444D97065A60D2E97EE5699BA8BF@SHSMSX101.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> In-Reply-To: <1489557032-4064-4-git-send-email-star.zeng@intel.com> Accept-Language: zh-CN, en-US 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 05:52:18 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Feng Tian Thanks Feng -----Original Message----- From: Zeng, Star=20 Sent: Wednesday, March 15, 2017 1:51 PM To: edk2-devel@lists.01.org Cc: Zeng, Star ; Gao, Liming ; N= i, Ruiyu ; Tian, Feng Subject: [PATCH 3/3] MdeModulePkg BmPerf: Handle "/" separator in debug pat= h for GCC build 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(-) diff --git a/MdeModulePkg/Library/UefiBootManagerLib/BmPerformance.c b/MdeM= odulePkg/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 availab= le under the terms and conditions of the BSD License which accompanies thi= s 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 '= /'))=20 + { StartIndex =3D Index + 1; } =20 -- 2.7.0.windows.1