]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Library/DxePrintLibPrint2Protocol/PrintLib.c
MdeModulePkg/PrintLib: Add deprecated flag for APIs [A|U]ValueToString
[mirror_edk2.git] / MdeModulePkg / Library / DxePrintLibPrint2Protocol / PrintLib.c
index 589d4db619f24ecf55356d9db0892348bff32dea..434736f9742b613bd06845e2f1da0f20778d96ea 100644 (file)
@@ -598,7 +598,11 @@ UnicodeSPrintAsciiFormat (
   return NumberOfPrinted;\r
 }\r
 \r
+#ifndef DISABLE_NEW_DEPRECATED_INTERFACES\r
+\r
 /**\r
+  [ATTENTION] This function is deprecated for security reason.\r
+\r
   Converts a decimal value to a Null-terminated Unicode string.\r
   \r
   Converts the decimal number specified by Value to a Null-terminated Unicode \r
@@ -665,6 +669,8 @@ UnicodeValueToString (
   return StrnLenS (Buffer, BufferSize / sizeof (CHAR16));\r
 }\r
 \r
+#endif\r
+\r
 /**\r
   Converts a decimal value to a Null-terminated Unicode string.\r
 \r
@@ -1071,7 +1077,11 @@ AsciiSPrintUnicodeFormat (
 }\r
 \r
 \r
+#ifndef DISABLE_NEW_DEPRECATED_INTERFACES\r
+\r
 /**\r
+  [ATTENTION] This function is deprecated for security reason.\r
+\r
   Converts a decimal value to a Null-terminated ASCII string.\r
   \r
   Converts the decimal number specified by Value to a Null-terminated ASCII string \r
@@ -1137,6 +1147,8 @@ AsciiValueToString (
   return AsciiStrnLenS (Buffer, BufferSize / sizeof (CHAR8));\r
 }\r
 \r
+#endif\r
+\r
 /**\r
   Converts a decimal value to a Null-terminated Ascii string.\r
 \r