SecurityPkg: Reproduce builds across source format changes

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3688

Use DEBUG_LINE_NUMBER instead of __LINE__.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Michael Kubacki <michael.kubacki@microsoft.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Jiewen Yao <Jiewen.yao@intel.com>
Tested-by: Michael Kubacki <michael.kubacki@microsoft.com>
This commit is contained in:
Michael D Kinney 2021-10-12 16:41:35 -07:00 committed by mergify[bot]
parent 45137bca2f
commit d939a25d41
1 changed files with 13 additions and 13 deletions

View File

@ -16,13 +16,13 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
#include <IndustryStandard/TcgStorageCore.h>
#define ERROR_CHECK(arg) \
{ \
TCG_RESULT ret = (arg); \
if (ret != TcgResultSuccess) { \
DEBUG ((DEBUG_INFO, "ERROR_CHECK failed at %a:%u\n", __FILE__, __LINE__)); \
return ret; \
} \
#define ERROR_CHECK(arg) \
{ \
TCG_RESULT ret = (arg); \
if (ret != TcgResultSuccess) { \
DEBUG ((DEBUG_INFO, "ERROR_CHECK failed at %a:%u\n", __FILE__, DEBUG_LINE_NUMBER)); \
return ret; \
} \
}
#define METHOD_STATUS_ERROR_CHECK(arg, failRet) \
@ -31,12 +31,12 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
return (failRet); \
}
#define NULL_CHECK(arg) \
do { \
if ((arg) == NULL) { \
DEBUG ((DEBUG_INFO, "NULL_CHECK(%a) failed at %a:%u\n", #arg, __FILE__, __LINE__)); \
return TcgResultFailureNullPointer; \
} \
#define NULL_CHECK(arg) \
do { \
if ((arg) == NULL) { \
DEBUG ((DEBUG_INFO, "NULL_CHECK(%a) failed at %a:%u\n", #arg, __FILE__, DEBUG_LINE_NUMBER)); \
return TcgResultFailureNullPointer; \
} \
} while (0)
#pragma pack(1)