summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHao Wu <hao.a.wu@intel.com>2017-02-13 11:27:22 +0800
committerHao Wu <hao.a.wu@intel.com>2017-03-02 09:59:14 +0800
commit695e4c49bed6754f67aaf304edaecd3f65dca5e8 (patch)
tree09820799b3b80fef547714a6c712a29c4d6c38ea
parentda1204cd3f66d2d3c6cf2a45a02871642dcaa6f0 (diff)
downloadedk2-695e4c49bed6754f67aaf304edaecd3f65dca5e8.zip
edk2-695e4c49bed6754f67aaf304edaecd3f65dca5e8.tar.gz
edk2-695e4c49bed6754f67aaf304edaecd3f65dca5e8.tar.bz2
MdeModulePkg/PrintLib: Add deprecated flag for APIs [A|U]ValueToString
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu <hao.a.wu@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
-rw-r--r--MdeModulePkg/Library/DxePrintLibPrint2Protocol/PrintLib.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/MdeModulePkg/Library/DxePrintLibPrint2Protocol/PrintLib.c b/MdeModulePkg/Library/DxePrintLibPrint2Protocol/PrintLib.c
index 589d4db..434736f 100644
--- a/MdeModulePkg/Library/DxePrintLibPrint2Protocol/PrintLib.c
+++ b/MdeModulePkg/Library/DxePrintLibPrint2Protocol/PrintLib.c
@@ -598,7 +598,11 @@ UnicodeSPrintAsciiFormat (
return NumberOfPrinted;
}
+#ifndef DISABLE_NEW_DEPRECATED_INTERFACES
+
/**
+ [ATTENTION] This function is deprecated for security reason.
+
Converts a decimal value to a Null-terminated Unicode string.
Converts the decimal number specified by Value to a Null-terminated Unicode
@@ -665,6 +669,8 @@ UnicodeValueToString (
return StrnLenS (Buffer, BufferSize / sizeof (CHAR16));
}
+#endif
+
/**
Converts a decimal value to a Null-terminated Unicode string.
@@ -1071,7 +1077,11 @@ AsciiSPrintUnicodeFormat (
}
+#ifndef DISABLE_NEW_DEPRECATED_INTERFACES
+
/**
+ [ATTENTION] This function is deprecated for security reason.
+
Converts a decimal value to a Null-terminated ASCII string.
Converts the decimal number specified by Value to a Null-terminated ASCII string
@@ -1137,6 +1147,8 @@ AsciiValueToString (
return AsciiStrnLenS (Buffer, BufferSize / sizeof (CHAR8));
}
+#endif
+
/**
Converts a decimal value to a Null-terminated Ascii string.