]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkModulePkg/Universal/BdsDxe/MemoryTest.c
IntelFrameworkModulePkg: Replace [Ascii|Unicode]ValueToString
[mirror_edk2.git] / IntelFrameworkModulePkg / Universal / BdsDxe / MemoryTest.c
index 700e3e6626af83cc908bd45a235cf5ca86f4955e..118808201d1f02db454ff6d34f346bcfe9de303e 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Perform the platform memory test\r
 \r
-Copyright (c) 2004 - 2015, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2017, 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
@@ -318,7 +318,7 @@ BdsMemoryTest (
                               TempData\r
                               );\r
       if (TestPercent != PreviousValue) {\r
-        UnicodeValueToString (StrPercent, 0, TestPercent, 0);\r
+        UnicodeValueToStringS (StrPercent, sizeof (StrPercent), 0, TestPercent, 0);\r
         TmpStr = GetStringById (STRING_TOKEN (STR_MEMORY_TEST_PERCENT));\r
         if (TmpStr != NULL) {\r
           //\r
@@ -386,7 +386,7 @@ BdsMemoryTest (
 \r
 Done:\r
   if (!FeaturePcdGet(PcdBootlogoOnlyEnable)) {\r
-    UnicodeValueToString (StrTotalMemory, COMMA_TYPE, TotalMemorySize, 0);\r
+    UnicodeValueToStringS (StrTotalMemory, StrTotalMemorySize, COMMA_TYPE, TotalMemorySize, 0);\r
     if (StrTotalMemory[0] == L',') {\r
       StrTotalMemory++;\r
       StrTotalMemorySize -= sizeof (CHAR16);\r