]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BasePrintLib/PrintLib.c
MdePkg/BasePrintLib: Add deprecated flag for APIs [A|U]ValueToString
[mirror_edk2.git] / MdePkg / Library / BasePrintLib / PrintLib.c
index 221b52e23cf21dc96035641b0967020fa3ceb351..7453e952a76309f8426591bb4ab1f27f4d19facc 100644 (file)
@@ -349,7 +349,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
@@ -403,6 +407,8 @@ UnicodeValueToString (
   return BasePrintLibConvertValueToString ((CHAR8 *)Buffer, Flags, Value, Width, 2);\r
 }\r
 \r
+#endif\r
+\r
 /**\r
   Converts a decimal value to a Null-terminated Unicode string.\r
 \r
@@ -781,7 +787,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
@@ -833,6 +843,8 @@ AsciiValueToString (
   return BasePrintLibConvertValueToString (Buffer, Flags, Value, Width, 1);\r
 }\r
 \r
+#endif\r
+\r
 /**\r
   Converts a decimal value to a Null-terminated Ascii string.\r
 \r