From nobody Fri May 17 20:25:20 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+55916+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+55916+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1584429238; cv=none; d=zohomail.com; s=zohoarc; b=DQy1Cemic7pwbJIpu0l9auVC4pt6HspMDfG5zAt7mfZzNQKljuug3yTfEcDC09ILFSzJWVdFNAX6sCJR1NqURFXjih9siaJl3DVdsTGmi48lojj4LyeMb0pc5VOyedyDL2MBkCZfCX02ll9Pgoc5PwjC7ty8eD/Ipub7RWKkf0U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1584429238; h=Content-Transfer-Encoding:Cc:Date:From:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=324YBRidDbmgoOnJVcl6lF3PZp9/V/jVjYBrG5vmavo=; b=HOOlIjAfAEZzv8gT4rQKQ/P66clw+o1OCsLkCi/zuqo6q8cshVP+Khq93CQu+nsH6G3sOfdi3biDV5E7+aHrVPk5AYPIRMHZ0KI2EhCsxChA/+M1zSdskUsHhKSJdlnTqTr7dC2Lp/DbfMf9uJRaAmFa17CLwi9CI9QguFU8Kb0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+55916+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1584429238896533.8451410056288; Tue, 17 Mar 2020 00:13:58 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id WnnrYY1788612xUpsWuLPf7N; Tue, 17 Mar 2020 00:13:58 -0700 X-Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mx.groups.io with SMTP id smtpd.web11.707.1584429237454559850 for ; Tue, 17 Mar 2020 00:13:57 -0700 IronPort-SDR: uVhEfBD1+MHxJQcXyp3OKUxR80M66SdzUKFPh2h0zgWs1LPpC22gVqYjHh6ZP7+QxXkrwWzg/O yQcyVsns5L/g== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Mar 2020 00:13:56 -0700 IronPort-SDR: ZBe7anTfunQ7ITsTR6CkWtpEqI8MWGGmwytREDkuLH6yuVbJf9Swensrf8H8Lby7fwveROzZ1i l9G+pti8bpbg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,563,1574150400"; d="scan'208";a="355280649" X-Received: from fieedk002.ccr.corp.intel.com ([10.239.158.178]) by fmsmga001.fm.intel.com with ESMTP; 17 Mar 2020 00:13:55 -0700 From: "Zhiguang Liu" To: devel@edk2.groups.io Cc: Michael D Kinney , Liming Gao Subject: [edk2-devel] [PATCH] MdePkg DebugLib: Enable FILE NAME as DEBUG ASSERT for CLANG Date: Tue, 17 Mar 2020 15:13:17 +0800 Message-Id: <20200317071317.959-1-zhiguang.liu@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,zhiguang.liu@intel.com X-Gm-Message-State: M890h1vEHEAG9PQnRs3iDFhrx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1584429238; bh=Vx0webSBtIdglRPAp5GfAbQgOS5Ahoeu6h7oRAbrTfg=; h=Cc:Date:From:Reply-To:Subject:To; b=G0d3yF0g9H9LDS0r0Oyv9izz3B8mNU1WvEXgMGx2bf1aEd5fNQPljIKnpFZ1PaoVG+n x9T061vm5Gce8xXHr0O3HPabjEAAN1wJOuSdxQRSAjyrJszQWPo5FHvBhUL+BG5CSSF5d ECfIC1ttw/RgijqFViYHCErvtEgaTsb/siM= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D1548 This change will make the generated image not include the absolute file pat= h. If so, the generated debug image can be reproduced in the different root directory. Also, it will reduce the size of debug image size. CC: Michael D Kinney CC: Liming Gao Signed-off-by: Zhiguang Liu --- MdePkg/Include/Library/DebugLib.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/MdePkg/Include/Library/DebugLib.h b/MdePkg/Include/Library/Deb= ugLib.h index f1d55cf62b..baab34bf05 100644 --- a/MdePkg/Include/Library/DebugLib.h +++ b/MdePkg/Include/Library/DebugLib.h @@ -8,7 +8,7 @@ of size reduction when compiler optimization is disabled. If MDEPKG_NDEB= UG is defined, then debug and assert related macros wrapped by it are the NULL= implementations. =20 -Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.
+Copyright (c) 2006 - 2020, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent =20 **/ @@ -289,7 +289,11 @@ DebugPrintLevelEnabled ( @param Expression Boolean expression that evaluated to FALSE =20 **/ +#if defined(__clang__) && defined(__FILE_NAME__) +#define _ASSERT(Expression) DebugAssert (__FILE_NAME__, __LINE__, #Expres= sion) +#else #define _ASSERT(Expression) DebugAssert (__FILE__, __LINE__, #Expression) +#endif =20 =20 /** --=20 2.25.1.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#55916): https://edk2.groups.io/g/devel/message/55916 Mute This Topic: https://groups.io/mt/72019244/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-