/** @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
{ \\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
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
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
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
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
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
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