summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Dong <eric.dong@intel.com>2018-08-09 13:12:32 +0800
committerEric Dong <eric.dong@intel.com>2018-08-16 08:41:59 +0800
commit0ca81c0d373ce92a61199faf3d207eefdca1eaa2 (patch)
treea1c8fc6b0eb7e234d623871aae61d925729ec64a
parent0fc5e71c68b1827750111ae0bf3031b667c1f893 (diff)
downloadedk2-0ca81c0d373ce92a61199faf3d207eefdca1eaa2.tar.gz
edk2-0ca81c0d373ce92a61199faf3d207eefdca1eaa2.tar.bz2
edk2-0ca81c0d373ce92a61199faf3d207eefdca1eaa2.zip
SecurityPkg/TcgStorageCoreLib.h: Use ascii instead of unicode.
_FILE_ parameter is an ASCII string. Current implementation used as unicode string instead of ascii string. This patch fixed this issue. BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1081 Cc: Hao Wu <hao.a.wu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed_off_by: Eric Dong <eric.dong@intel.com> Reviewed-by: Hao Wu <hao.a.wu@intel.com>
-rw-r--r--SecurityPkg/Include/Library/TcgStorageCoreLib.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/SecurityPkg/Include/Library/TcgStorageCoreLib.h b/SecurityPkg/Include/Library/TcgStorageCoreLib.h
index b2a0ef8f0c..213140de32 100644
--- a/SecurityPkg/Include/Library/TcgStorageCoreLib.h
+++ b/SecurityPkg/Include/Library/TcgStorageCoreLib.h
@@ -26,21 +26,21 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
{ \
TCG_RESULT ret = (arg); \
if (ret != TcgResultSuccess) { \
- DEBUG ((DEBUG_INFO, "ERROR_CHECK failed at %s:%u\n", __FILE__, __LINE__)); \
+ DEBUG ((DEBUG_INFO, "ERROR_CHECK failed at %a:%u\n", __FILE__, __LINE__)); \
return ret; \
} \
}
#define METHOD_STATUS_ERROR_CHECK(arg, failRet) \
if ((arg) != TCG_METHOD_STATUS_CODE_SUCCESS) { \
- DEBUG ((DEBUG_INFO, "Method Status error: 0x%02X (%s)\n", arg, TcgMethodStatusString(arg))); \
+ DEBUG ((DEBUG_INFO, "Method Status error: 0x%02X (%a)\n", arg, TcgMethodStatusString(arg))); \
return (failRet); \
}
#define NULL_CHECK(arg) \
do { \
if ((arg) == NULL) { \
- DEBUG ((DEBUG_INFO, "NULL_CHECK(%s) failed at %s:%u\n", #arg, __FILE__, __LINE__)); \
+ DEBUG ((DEBUG_INFO, "NULL_CHECK(%a) failed at %a:%u\n", #arg, __FILE__, __LINE__)); \
return TcgResultFailureNullPointer; \
} \
} while (0)