/** @file\r
This driver measures SMBIOS table to TPM.\r
- \r
+\r
Copyright (c) 2015, 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
- \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
+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
+\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
\r
**/\r
\r
// look for the two consecutive zeros, check the string limit by the way.\r
//\r
String = NULL;\r
- while (*CharInStr != 0 || *(CharInStr+1) != 0) { \r
+ while (*CharInStr != 0 || *(CharInStr+1) != 0) {\r
if (*CharInStr == 0) {\r
Size += 1;\r
CharInStr++;\r
\r
@param Head Pointer to the beginning of SMBIOS structure.\r
@param NumberOfStrings The returned number of optional strings that follow the formatted structure.\r
- \r
+\r
@return Size The returned size.\r
**/\r
UINTN\r
//\r
// look for the two consecutive zeros, check the string limit by the way.\r
//\r
- while (*CharInStr != 0 || *(CharInStr+1) != 0) { \r
+ while (*CharInStr != 0 || *(CharInStr+1) != 0) {\r
if (*CharInStr == 0) {\r
Size += 1;\r
CharInStr++;\r
\r
/**\r
\r
- Driver to produce Smbios measurement. \r
+ Driver to produce Smbios measurement.\r
\r
@param ImageHandle Module's image handle\r
@param SystemTable Pointer of EFI_SYSTEM_TABLE\r
Status = gBS->LocateProtocol (&gEfiSmbiosProtocolGuid, NULL, (VOID **) &mSmbios);\r
ASSERT_EFI_ERROR (Status);\r
DEBUG ((DEBUG_INFO, "The Smbios Table Version: %x.%x\n", mSmbios->MajorVersion, mSmbios->MinorVersion));\r
- \r
+\r
if (mSmbios->MajorVersion < 2 || (mSmbios->MajorVersion == 2 && mSmbios->MinorVersion < 7)){\r
mMaxLen = SMBIOS_STRING_MAX_LENGTH;\r
} else if (mSmbios->MajorVersion < 3) {\r