public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH v2 0/4] PrintLib: Add safe print functions [A|U]ValueToStringS
@ 2017-02-09  6:02 Hao Wu
  2017-02-09  6:02 ` [PATCH v2 1/4] MdePkg/BasePrintLib: " Hao Wu
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Hao Wu @ 2017-02-09  6:02 UTC (permalink / raw)
  To: edk2-devel; +Cc: Hao Wu, Jiewen Yao, Liming Gao, Michael Kinney

V2 changes:
Add the EFI_PRINT2S_PROTOCOL as a safe version of the EFI_PRINT2_PROTOCOL,
the new protocol replaces the following 2 services in EFI_PRINT2_PROTOCOL:
UNICODE_VALUE_TO_STRING
ASCII_VALUE_TO_STRING
with:
UNICODE_VALUE_TO_STRING_S
ASCII_VALUE_TO_STRING_S

Now, the PrintLib instance MdeModulePkg/Library/DxePrintLibPrint2Protocol
will use EFI_PRINT2S_PROTOCOL instead of EFI_PRINT2_PROTOCOL to implement
its APIs.


V1 history:
Add the following 2 safe print functions in PrintLib:
UnicodeValueToStringS
AsciiValueToStringS

Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Michael Kinney <michael.d.kinney@intel.com>


Hao Wu (4):
  MdePkg/BasePrintLib: Add safe print functions [A|U]ValueToStringS
  MdeModulePkg: Add the EFI_PRINT2S_PROTOCOL
  MdeModulePkg/PrintLib: Use EFI_PRINT2S_PROTOCOL for this instance
  MdeModulePkg/PrintLib: Add safe print functions [A|U]ValueToStringS

 MdeModulePkg/Include/Protocol/Print2.h                                       | 150 +++++++++++++-
 MdeModulePkg/Library/DxePrintLibPrint2Protocol/DxePrintLibPrint2Protocol.inf |   4 +-
 MdeModulePkg/Library/DxePrintLibPrint2Protocol/DxePrintLibPrint2Protocol.uni |  10 +-
 MdeModulePkg/Library/DxePrintLibPrint2Protocol/PrintLib.c                    | 183 ++++++++++++++++--
 MdeModulePkg/MdeModulePkg.dec                                                |   3 +-
 MdeModulePkg/Universal/PrintDxe/Print.c                                      |  18 +-
 MdeModulePkg/Universal/PrintDxe/PrintDxe.inf                                 |   7 +-
 MdeModulePkg/Universal/PrintDxe/PrintDxe.uni                                 |  10 +-
 MdePkg/Include/Library/PrintLib.h                                            | 121 ++++++++++++
 MdePkg/Library/BasePrintLib/PrintLib.c                                       | 128 ++++++++++++
 MdePkg/Library/BasePrintLib/PrintLibInternal.c                               | 204 ++++++++++++++++++++
 MdePkg/Library/BasePrintLib/PrintLibInternal.h                               |  61 ++++++
 12 files changed, 865 insertions(+), 34 deletions(-)

-- 
1.9.5.msysgit.0



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-02-20  2:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-09  6:02 [PATCH v2 0/4] PrintLib: Add safe print functions [A|U]ValueToStringS Hao Wu
2017-02-09  6:02 ` [PATCH v2 1/4] MdePkg/BasePrintLib: " Hao Wu
2017-02-09  6:02 ` [PATCH v2 2/4] MdeModulePkg: Add the EFI_PRINT2S_PROTOCOL Hao Wu
2017-02-09  6:02 ` [PATCH v2 3/4] MdeModulePkg/PrintLib: Use EFI_PRINT2S_PROTOCOL for this instance Hao Wu
2017-02-09  6:02 ` [PATCH v2 4/4] MdeModulePkg/PrintLib: Add safe print functions [A|U]ValueToStringS Hao Wu
2017-02-20  2:53 ` [PATCH v2 0/4] PrintLib: " Gao, Liming

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox