From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id AE0F681FB0 for ; Wed, 8 Feb 2017 22:02:54 -0800 (PST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP; 08 Feb 2017 22:02:54 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,349,1484035200"; d="scan'208";a="1092615558" Received: from shwdeopenpsi014.ccr.corp.intel.com ([10.239.9.13]) by orsmga001.jf.intel.com with ESMTP; 08 Feb 2017 22:02:53 -0800 From: Hao Wu To: edk2-devel@lists.01.org Cc: Hao Wu , Jiewen Yao , Liming Gao , Michael Kinney Date: Thu, 9 Feb 2017 14:02:46 +0800 Message-Id: <1486620170-38136-1-git-send-email-hao.a.wu@intel.com> X-Mailer: git-send-email 1.9.5.msysgit.0 Subject: [PATCH v2 0/4] PrintLib: Add safe print functions [A|U]ValueToStringS X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Feb 2017 06:02:54 -0000 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 Cc: Liming Gao Cc: Michael Kinney 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