summaryrefslogtreecommitdiffstats
path: root/MdePkg/Library/BasePrintLib
diff options
context:
space:
mode:
authorHao Wu <hao.a.wu@intel.com>2017-02-13 11:25:20 +0800
committerHao Wu <hao.a.wu@intel.com>2017-03-02 09:59:21 +0800
commit342fdb6eaa5934eacdf59158a99fb047fea797d6 (patch)
tree93c3b4c4994efb5900b574dc9798327506fb9942 /MdePkg/Library/BasePrintLib
parent695e4c49bed6754f67aaf304edaecd3f65dca5e8 (diff)
downloadedk2-342fdb6eaa5934eacdf59158a99fb047fea797d6.tar.gz
edk2-342fdb6eaa5934eacdf59158a99fb047fea797d6.tar.bz2
edk2-342fdb6eaa5934eacdf59158a99fb047fea797d6.zip
MdePkg/BasePrintLib: 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>
Diffstat (limited to 'MdePkg/Library/BasePrintLib')
-rw-r--r--MdePkg/Library/BasePrintLib/PrintLib.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/MdePkg/Library/BasePrintLib/PrintLib.c b/MdePkg/Library/BasePrintLib/PrintLib.c
index 221b52e23c..7453e952a7 100644
--- a/MdePkg/Library/BasePrintLib/PrintLib.c
+++ b/MdePkg/Library/BasePrintLib/PrintLib.c
@@ -349,7 +349,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
@@ -403,6 +407,8 @@ UnicodeValueToString (
return BasePrintLibConvertValueToString ((CHAR8 *)Buffer, Flags, Value, Width, 2);
}
+#endif
+
/**
Converts a decimal value to a Null-terminated Unicode string.
@@ -781,7 +787,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
@@ -833,6 +843,8 @@ AsciiValueToString (
return BasePrintLibConvertValueToString (Buffer, Flags, Value, Width, 1);
}
+#endif
+
/**
Converts a decimal value to a Null-terminated Ascii string.