/**\r
\r
-Copyright (c) 1999 - 2008, Intel Corporation. All rights reserved\r
-This software and associated documentation (if any) is furnished\r
-under a license and may only be used or copied in accordance\r
-with the terms of the license. Except as permitted by such\r
-license, no part of this software or documentation may be\r
-reproduced, stored in a retrieval system, or transmitted in any\r
-form or by any means without the express written consent of\r
-Intel Corporation.\r
+Copyright (c) 1999 - 2010, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials are licensed and made available \r
+under the terms and conditions of the BSD License which accompanies this \r
+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
Module Name:\r
/*++\r
Routine Description:\r
\r
- This function converts GUID string to GUID\r
+ This function split version to major version and minor version\r
\r
Arguments:\r
\r
Str - String representing in form XX.XX\r
- MajorVer - The major vertion\r
- MinorVer - The minor vertion\r
+ MajorVer - The major version\r
+ MinorVer - The minor version\r
\r
Returns:\r
\r
- EFI_SUCCESS - The fuction completed successfully.\r
+ EFI_SUCCESS - The function completed successfully.\r
\r
--*/\r
{\r
CHAR8 StrPtr[40];\r
CHAR8 *Token;\r
- UINTN Length;\r
unsigned Major;\r
unsigned Minor;\r
\r
Token = strtok (NULL, ".");\r
}\r
\r
- Length = strlen (StrPtr);\r
sscanf (\r
StrPtr,\r
- "%01x%02x",\r
+ "%02d%02d",\r
&Major,\r
&Minor\r
);\r
VtfInfo->LocationType = SECOND_VTF;\r
} else {\r
VtfInfo->LocationType = NONE;\r
- Warning(UTILITY_NAME, 0, 0001, "Unknown location for component.", VtfInfo->CompName);\r
}\r
} else if (strnicmp (*TokenStr, "COMP_TYPE", 9) == 0) {\r
TokenStr++;\r
//\r
// Copyright declaration\r
//\r
- fprintf (stdout, "Copyright (c) 2007 - 2009, Intel Corporation. All rights reserved.\n\n");\r
+ fprintf (stdout, "Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.\n\n");\r
//\r
// Details Option\r
//\r