]> git.proxmox.com Git - mirror_edk2.git/commitdiff
SecurityPkg/TcgStorageCoreLib.h: Use ascii instead of unicode.
authorEric Dong <eric.dong@intel.com>
Thu, 9 Aug 2018 05:12:32 +0000 (13:12 +0800)
committerEric Dong <eric.dong@intel.com>
Thu, 16 Aug 2018 00:41:59 +0000 (08:41 +0800)
_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>
SecurityPkg/Include/Library/TcgStorageCoreLib.h

index b2a0ef8f0ce09997121e872ca032fc930d644088..213140de3265c7bcd1424940b3ba09858f734339 100644 (file)
@@ -26,21 +26,21 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   {                                                                              \\r
     TCG_RESULT ret = (arg);                                                      \\r
     if (ret != TcgResultSuccess) {                                               \\r
   {                                                                              \\r
     TCG_RESULT ret = (arg);                                                      \\r
     if (ret != TcgResultSuccess) {                                               \\r
-      DEBUG ((DEBUG_INFO, "ERROR_CHECK failed at %s:%u\n", __FILE__, __LINE__)); \\r
+      DEBUG ((DEBUG_INFO, "ERROR_CHECK failed at %a:%u\n", __FILE__, __LINE__)); \\r
       return ret;                                                                \\r
     }                                                                            \\r
   }\r
 \r
 #define METHOD_STATUS_ERROR_CHECK(arg, failRet)                                                  \\r
   if ((arg) != TCG_METHOD_STATUS_CODE_SUCCESS) {                                                 \\r
       return ret;                                                                \\r
     }                                                                            \\r
   }\r
 \r
 #define METHOD_STATUS_ERROR_CHECK(arg, failRet)                                                  \\r
   if ((arg) != TCG_METHOD_STATUS_CODE_SUCCESS) {                                                 \\r
-    DEBUG ((DEBUG_INFO, "Method Status error: 0x%02X (%s)\n", arg, TcgMethodStatusString(arg))); \\r
+    DEBUG ((DEBUG_INFO, "Method Status error: 0x%02X (%a)\n", arg, TcgMethodStatusString(arg))); \\r
     return (failRet);                                                                            \\r
   }\r
 \r
 #define NULL_CHECK(arg)                                                                   \\r
   do {                                                                                    \\r
     if ((arg) == NULL) {                                                                  \\r
     return (failRet);                                                                            \\r
   }\r
 \r
 #define NULL_CHECK(arg)                                                                   \\r
   do {                                                                                    \\r
     if ((arg) == NULL) {                                                                  \\r
-      DEBUG ((DEBUG_INFO, "NULL_CHECK(%s) failed at %s:%u\n", #arg, __FILE__, __LINE__)); \\r
+      DEBUG ((DEBUG_INFO, "NULL_CHECK(%a) failed at %a:%u\n", #arg, __FILE__, __LINE__)); \\r
       return TcgResultFailureNullPointer;                                                 \\r
     }                                                                                     \\r
   } while (0)\r
       return TcgResultFailureNullPointer;                                                 \\r
     }                                                                                     \\r
   } while (0)\r