mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-23 21:54:27 +02:00
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:
parent
45137bca2f
commit
d939a25d41
@ -20,7 +20,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
|||||||
{ \
|
{ \
|
||||||
TCG_RESULT ret = (arg); \
|
TCG_RESULT ret = (arg); \
|
||||||
if (ret != TcgResultSuccess) { \
|
if (ret != TcgResultSuccess) { \
|
||||||
DEBUG ((DEBUG_INFO, "ERROR_CHECK failed at %a:%u\n", __FILE__, __LINE__)); \
|
DEBUG ((DEBUG_INFO, "ERROR_CHECK failed at %a:%u\n", __FILE__, DEBUG_LINE_NUMBER)); \
|
||||||
return ret; \
|
return ret; \
|
||||||
} \
|
} \
|
||||||
}
|
}
|
||||||
@ -34,7 +34,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
|||||||
#define NULL_CHECK(arg) \
|
#define NULL_CHECK(arg) \
|
||||||
do { \
|
do { \
|
||||||
if ((arg) == NULL) { \
|
if ((arg) == NULL) { \
|
||||||
DEBUG ((DEBUG_INFO, "NULL_CHECK(%a) failed at %a:%u\n", #arg, __FILE__, __LINE__)); \
|
DEBUG ((DEBUG_INFO, "NULL_CHECK(%a) failed at %a:%u\n", #arg, __FILE__, DEBUG_LINE_NUMBER)); \
|
||||||
return TcgResultFailureNullPointer; \
|
return TcgResultFailureNullPointer; \
|
||||||
} \
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user