]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/PrintDxe: Handle the deprecation of [A|U]ValueToString
authorHao Wu <hao.a.wu@intel.com>
Mon, 13 Feb 2017 03:03:30 +0000 (11:03 +0800)
committerHao Wu <hao.a.wu@intel.com>
Thu, 2 Mar 2017 01:59:06 +0000 (09:59 +0800)
commitda1204cd3f66d2d3c6cf2a45a02871642dcaa6f0
tree435aba10c96586950bed7941b311b81b4f6ccbd7
parent91db774bf4b33e1bf07f2f1aded5fd79c6f27c44
MdeModulePkg/PrintDxe: Handle the deprecation of [A|U]ValueToString

To handle the deprecation of PrintLib APIs UnicodeValueToString and
AsciiValueToString by subsequent commits, the commit refines the logic for
the implemetation of the UnicodeValueToString and AsciiValueToString
services in EFI_PRINT2_PROTOCOL.

When the macro DISABLE_NEW_DEPRECATED_INTERFACES is defined (indicating
the deprecation of the PrintLib APIs), the above two services will ASSERT
and will return zero to reflect not being supported.

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>
MdeModulePkg/Universal/PrintDxe/Print.c