summaryrefslogtreecommitdiffstats
path: root/SecurityPkg/Include/Library
diff options
context:
space:
mode:
authorMichael D Kinney <michael.d.kinney@intel.com>2021-10-12 16:41:35 -0700
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2021-11-08 18:01:35 +0000
commitd939a25d41b5cdcd7b5e3f680354de7b0431e2a5 (patch)
treef982d540bee7089b33f91d5bd99dae7533bdea52 /SecurityPkg/Include/Library
parent45137bca2fdf04a17f48b18d4e1eb88b7c06dc92 (diff)
downloadedk2-d939a25d41b5cdcd7b5e3f680354de7b0431e2a5.tar.gz
edk2-d939a25d41b5cdcd7b5e3f680354de7b0431e2a5.tar.bz2
edk2-d939a25d41b5cdcd7b5e3f680354de7b0431e2a5.zip
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>
Diffstat (limited to 'SecurityPkg/Include/Library')
-rw-r--r--SecurityPkg/Include/Library/TcgStorageCoreLib.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/SecurityPkg/Include/Library/TcgStorageCoreLib.h b/SecurityPkg/Include/Library/TcgStorageCoreLib.h
index 01a44c667c..a426251d69 100644
--- a/SecurityPkg/Include/Library/TcgStorageCoreLib.h
+++ b/SecurityPkg/Include/Library/TcgStorageCoreLib.h
@@ -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)