]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BasePrintLib/PrintLib.c
MdePkg BaseStackCheckLib: Correct style of file header
[mirror_edk2.git] / MdePkg / Library / BasePrintLib / PrintLib.c
index 221b52e23cf21dc96035641b0967020fa3ceb351..34793919f67a06520c00aedfce0ff67df3737c08 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
@@ -857,8 +869,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