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 A6F3E21967BE6 for ; Thu, 8 Jun 2017 01:37:54 -0700 (PDT) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP; 08 Jun 2017 01:39:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.39,314,1493708400"; d="scan'208,217";a="978248758" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by orsmga003.jf.intel.com with ESMTP; 08 Jun 2017 01:39:03 -0700 Received: from fmsmsx113.amr.corp.intel.com (10.18.116.7) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 8 Jun 2017 01:39:03 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by FMSMSX113.amr.corp.intel.com (10.18.116.7) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 8 Jun 2017 01:39:02 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.146]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.197]) with mapi id 14.03.0319.002; Thu, 8 Jun 2017 16:39:00 +0800 From: "Yao, Jiewen" To: "Zeng, Star" , "edk2-devel@lists.01.org" CC: "Yao, Jiewen" , "Chan, Amy" , "Chiu, Chasel" , "Zhang, Chao B" Thread-Topic: [PATCH] SecurityPkg TcgDxe: Simplify debug msg when "TPM not working properly" Thread-Index: AQHS3/+gop/IAjBK0UqJ3DwI71KWTKIao5jAgAABdQA= Date: Thu, 8 Jun 2017 08:39:00 +0000 Message-ID: <74D8A39837DF1E4DA445A8C0B3885C503A96677A@shsmsx102.ccr.corp.intel.com> References: <1496889199-60988-1-git-send-email-star.zeng@intel.com> <0C09AFA07DD0434D9E2A0C6AEB0483103B8E4B96@shsmsx102.ccr.corp.intel.com> In-Reply-To: <0C09AFA07DD0434D9E2A0C6AEB0483103B8E4B96@shsmsx102.ccr.corp.intel.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 10.0.102.7 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 Subject: Re: [PATCH] SecurityPkg TcgDxe: Simplify debug msg when "TPM not working properly" 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, 08 Jun 2017 08:37:54 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Jiewen.yao@intel.com -----Original Message----- From: Zeng, Star Sent: Thursday, June 8, 2017 10:33 AM To: edk2-devel@lists.01.org Cc: Zeng, Star >; Yao, Jiew= en >; Chan, Amy >; Chiu, Chasel >; Zhang, Chao B > Subject: [PATCH] SecurityPkg TcgDxe: Simplify debug msg when "TPM not worki= ng properly" Current code for case "TPM not working properly" uses the predefined macro = __FILE__ in debug format string, but uses predefined macro __LINE__ as para= meter, and it also uses multiple pairs of "" in debug format string. To be simple and clear, this patch is to update the code to just use "DriverEntry: TPM not working properly\n" as the debug message. Cc: Jiewen Yao > Cc: Amy Chan > Cc: Chasel Chiu > Cc: Chao Zhang > Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng > --- SecurityPkg/Tcg/TcgDxe/TcgDxe.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/SecurityPkg/Tcg/TcgDxe/TcgDxe.c b/SecurityPkg/Tcg/TcgDxe/TcgDx= e.c index 5b7c5c3e165b..4a90c5ccef16 100644 --- a/SecurityPkg/Tcg/TcgDxe/TcgDxe.c +++ b/SecurityPkg/Tcg/TcgDxe/TcgDxe.c @@ -1406,9 +1406,7 @@ DriverEntry ( if (EFI_ERROR (Status)) { DEBUG (( EFI_D_ERROR, - "Line %d in file " __FILE__ ":\n " - "DriverEntry: TPM not working properly\n", - __LINE__ + "DriverEntry: TPM not working properly\n" )); return Status; } -- 2.7.0.windows.1