From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mx.groups.io with SMTP id smtpd.web11.378.1635791944897474298 for ; Mon, 01 Nov 2021 11:39:06 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.126, mailfrom: michael.d.kinney@intel.com) X-IronPort-AV: E=McAfee;i="6200,9189,10155"; a="217997882" X-IronPort-AV: E=Sophos;i="5.87,200,1631602800"; d="scan'208";a="217997882" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Nov 2021 11:29:54 -0700 X-IronPort-AV: E=Sophos;i="5.87,200,1631602800"; d="scan'208";a="488751832" Received: from mdkinney-mobl2.amr.corp.intel.com ([10.209.76.205]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Nov 2021 11:29:53 -0700 From: "Michael D Kinney" To: devel@edk2.groups.io Cc: Maciej Rabeda , Jiaxin Wu , Siyuan Fu , Michael Kubacki Subject: [Patch 4/6] NetworkPkg: Reproduce builds across source format changes Date: Mon, 1 Nov 2021 11:29:40 -0700 Message-Id: <20211101182942.321-5-michael.d.kinney@intel.com> X-Mailer: git-send-email 2.32.0.windows.1 In-Reply-To: <20211101182942.321-1-michael.d.kinney@intel.com> References: <20211101182942.321-1-michael.d.kinney@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3688 Use DEBUG_LINE_NUMBER instead of __LINE__. Cc: Maciej Rabeda Cc: Jiaxin Wu Cc: Siyuan Fu Cc: Michael Kubacki Signed-off-by: Michael D Kinney --- NetworkPkg/Include/Library/NetLib.h | 8 ++++---- NetworkPkg/Library/DxeNetLib/DxeNetLib.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/NetworkPkg/Include/Library/NetLib.h b/NetworkPkg/Include/Library/NetLib.h index 858d0b6ba07c..6c0924863147 100644 --- a/NetworkPkg/Include/Library/NetLib.h +++ b/NetworkPkg/Include/Library/NetLib.h @@ -277,7 +277,7 @@ typedef struct { NETDEBUG_LEVEL_TRACE, \ Module, \ __FILE__, \ - __LINE__, \ + DEBUG_LINE_NUMBER, \ NetDebugASPrint PrintArg \ ) @@ -286,7 +286,7 @@ typedef struct { NETDEBUG_LEVEL_WARNING, \ Module, \ __FILE__, \ - __LINE__, \ + DEBUG_LINE_NUMBER, \ NetDebugASPrint PrintArg \ ) @@ -295,7 +295,7 @@ typedef struct { NETDEBUG_LEVEL_ERROR, \ Module, \ __FILE__, \ - __LINE__, \ + DEBUG_LINE_NUMBER, \ NetDebugASPrint PrintArg \ ) @@ -311,7 +311,7 @@ typedef struct { NETDEBUG_LEVEL_TRACE, "Tcp", __FILE__, - __LINE__, + DEBUG_LINE_NUMBER, NetDebugASPrint ("State transit to %a\n", Name) ) diff --git a/NetworkPkg/Library/DxeNetLib/DxeNetLib.c b/NetworkPkg/Library/DxeNetLib/DxeNetLib.c index 2a555a7b90fa..0f95ce4b710d 100644 --- a/NetworkPkg/Library/DxeNetLib/DxeNetLib.c +++ b/NetworkPkg/Library/DxeNetLib/DxeNetLib.c @@ -434,7 +434,7 @@ SyslogBuildPacket ( NETDEBUG_LEVEL_TRACE, "Tcp", __FILE__, - __LINE__, + DEBUG_LINE_NUMBER, NetDebugASPrint ("State transit to %a\n", Name) ) -- 2.32.0.windows.1