]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Library/PrintLib.h
MdePkg/BasePrintLib: Refine the comment for AsciiValueToStringS API
[mirror_edk2.git] / MdePkg / Include / Library / PrintLib.h
index 8c11dab696353021863e9b5a26c0818ba1359bef..80a4fd21d3b6d1ba1f2a5d9f5bfeef0bbab3d045 100644 (file)
@@ -491,7 +491,11 @@ UnicodeSPrintAsciiFormat (
   ...\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
@@ -541,6 +545,8 @@ UnicodeValueToString (
   IN UINTN       Width\r
   );\r
 \r
+#endif\r
+\r
 /**\r
   Converts a decimal value to a Null-terminated Unicode string.\r
 \r
@@ -882,7 +888,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
@@ -931,6 +941,8 @@ AsciiValueToString (
   IN  UINTN      Width\r
   );\r
 \r
+#endif\r
+\r
 /**\r
   Converts a decimal value to a Null-terminated Ascii string.\r
 \r
@@ -955,8 +967,7 @@ AsciiValueToString (
   sign character, '0' characters, digit characters for Value, and the\r
   Null-terminator add up to Width characters.\r
 \r
-  If Buffer is not aligned on a 16-bit boundary, then ASSERT().\r
-  If an error would be returned, then the function will also ASSERT().\r
+  If an error would be returned, then the function will ASSERT().\r
 \r
   @param  Buffer      The pointer to the output buffer for the produced\r
                       Null-terminated Ascii string.\r