]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.c
MdeModulePkg: SmbiosDxe: soften DEBUG messages about table reallocation
[mirror_edk2.git] / MdeModulePkg / Universal / SmbiosDxe / SmbiosDxe.c
index 43d78a6a07951136087fa4c0416881ffe513ad13..809dff84ac9b42abd48b4244404c8732863bea4d 100644 (file)
@@ -665,7 +665,7 @@ SmbiosUpdateString (
       //\r
       TargetStrLen = AsciiStrLen(StrStart);\r
       if (InputStrLen == TargetStrLen) {\r
-        AsciiStrCpy(StrStart, String);\r
+        AsciiStrCpyS(StrStart, TargetStrLen + 1, String);\r
         //\r
         // Some UEFI drivers (such as network) need some information in SMBIOS table.\r
         // Here we create SMBIOS table and publish it in\r
@@ -1143,7 +1143,8 @@ SmbiosCreateTable (
     // If new SMBIOS table size exceeds the previous allocated page, \r
     // it is time to re-allocate memory (below 4GB).\r
     // \r
-    DEBUG ((EFI_D_ERROR, "SmbiosCreateTable() re-allocate SMBIOS 32-bit table\n"));\r
+    DEBUG ((EFI_D_INFO, "%a() re-allocate SMBIOS 32-bit table\n",\r
+      __FUNCTION__));\r
     if (EntryPointStructure->TableAddress != 0) {\r
       //\r
       // Free the previous allocated page\r
@@ -1311,7 +1312,8 @@ SmbiosCreate64BitTable (
     // If new SMBIOS table size exceeds the previous allocated page, \r
     // it is time to re-allocate memory at anywhere.\r
     //\r
-    DEBUG ((EFI_D_ERROR, "SmbiosCreate64BitTable() re-allocate SMBIOS 64-bit table\n"));\r
+    DEBUG ((EFI_D_INFO, "%a() re-allocate SMBIOS 64-bit table\n",\r
+      __FUNCTION__));\r
     if (Smbios30EntryPointStructure->TableAddress != 0) {\r
       //\r
       // Free the previous allocated page\r