mirror of https://github.com/acidanthera/audk.git
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
|
@ -16,13 +16,13 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||||
|
|
||||||
#include <IndustryStandard/TcgStorageCore.h>
|
#include <IndustryStandard/TcgStorageCore.h>
|
||||||
|
|
||||||
#define ERROR_CHECK(arg) \
|
#define ERROR_CHECK(arg) \
|
||||||
{ \
|
{ \
|
||||||
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; \
|
||||||
} \
|
} \
|
||||||
}
|
}
|
||||||
|
|
||||||
#define METHOD_STATUS_ERROR_CHECK(arg, failRet) \
|
#define METHOD_STATUS_ERROR_CHECK(arg, failRet) \
|
||||||
|
@ -31,12 +31,12 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||||
return (failRet); \
|
return (failRet); \
|
||||||
}
|
}
|
||||||
|
|
||||||
#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)
|
||||||
|
|
||||||
#pragma pack(1)
|
#pragma pack(1)
|
||||||
|
|
Loading…
Reference in New Issue