]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SecurityPkg/Include/Library/TcgStorageCoreLib.h
SecurityPkg: Fix spelling errors
[mirror_edk2.git] / SecurityPkg / Include / Library / TcgStorageCoreLib.h
index 67ccf22892239951f3e5907ddb4696efd3dc6842..c25a56a14ca2fcef8d9d44bebb93af470e670181 100644 (file)
@@ -1,14 +1,13 @@
 /** @file\r
   Public API for the Tcg Core library to perform the lowest level TCG Data encoding.\r
 \r
-Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials\r
-are licensed and made available under the terms and conditions of the BSD License\r
-which accompanies this distribution.  The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php\r
+  (TCG Storage Architecture Core Specification, Version 2.01, Revision 1.00,\r
+  https://trustedcomputinggroup.org/tcg-storage-architecture-core-specification/)\r
 \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+  Check http://trustedcomputinggroup.org for latest specification updates.\r
+\r
+Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.<BR>\r
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 \r
@@ -21,21 +20,21 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   {                                                                              \\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
-    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
-      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
@@ -697,7 +696,7 @@ TcgGetTokenUINT64(
   Get next specify value.\r
 \r
   @param    ParseStruct   Input parse structure.\r
-  @param    Value         Return vlaue.\r
+  @param    Value         Return value.\r
 \r
   @retval   return the action result.\r
 \r
@@ -714,7 +713,7 @@ TcgGetNextUINT8(
   Get next specify value.\r
 \r
   @param    ParseStruct   Input parse structure.\r
-  @param    Value         Return vlaue.\r
+  @param    Value         Return value.\r
 \r
   @retval   return the action result.\r
 \r
@@ -730,7 +729,7 @@ TcgGetNextUINT16(
   Get next specify value.\r
 \r
   @param    ParseStruct   Input parse structure.\r
-  @param    Value         Return vlaue.\r
+  @param    Value         Return value.\r
 \r
   @retval   return the action result.\r
 \r
@@ -746,7 +745,7 @@ TcgGetNextUINT32(
   Get next specify value.\r
 \r
   @param    ParseStruct   Input parse structure.\r
-  @param    Value         Return vlaue.\r
+  @param    Value         Return value.\r
 \r
   @retval   return the action result.\r
 \r
@@ -762,7 +761,7 @@ TcgGetNextUINT64(
   Get next specify value.\r
 \r
   @param    ParseStruct   Input parse structure.\r
-  @param    Value         Return vlaue.\r
+  @param    Value         Return value.\r
 \r
   @retval   return the action result.\r
 \r
@@ -1262,7 +1261,7 @@ TcgEnumLevel0Discovery(
   Get Feature code from the header.\r
 \r
   @param     DiscoveryHeader    The discovery header.\r
-  @param     FeatureCode        reutrn the Feature code.\r
+  @param     FeatureCode        return the Feature code.\r
   @param     FeatureSize        return the Feature size.\r
 \r
   @retval    return the Feature code data.\r