From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) (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 975B1821CD for ; Sun, 19 Feb 2017 18:53:31 -0800 (PST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Feb 2017 18:53:31 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,184,1484035200"; d="scan'208";a="826195855" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by FMSMGA003.fm.intel.com with ESMTP; 19 Feb 2017 18:53:31 -0800 Received: from fmsmsx116.amr.corp.intel.com (10.18.116.20) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.248.2; Sun, 19 Feb 2017 18:53:31 -0800 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by fmsmsx116.amr.corp.intel.com (10.18.116.20) with Microsoft SMTP Server (TLS) id 14.3.248.2; Sun, 19 Feb 2017 18:53:31 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.88]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.132]) with mapi id 14.03.0248.002; Mon, 20 Feb 2017 10:53:28 +0800 From: "Gao, Liming" To: "Wu, Hao A" , "edk2-devel@lists.01.org" CC: "Yao, Jiewen" , "Kinney, Michael D" Thread-Topic: [PATCH v2 0/4] PrintLib: Add safe print functions [A|U]ValueToStringS Thread-Index: AQHSgporlkujqCsXJ0y87fsP6+ovJ6FxQ89Q Date: Mon, 20 Feb 2017 02:53:28 +0000 Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14D6E0BBE@shsmsx102.ccr.corp.intel.com> References: <1486620170-38136-1-git-send-email-hao.a.wu@intel.com> In-Reply-To: <1486620170-38136-1-git-send-email-hao.a.wu@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [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: Mon, 20 Feb 2017 02:53:31 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Liming Gao >-----Original Message----- >From: Wu, Hao A >Sent: Thursday, February 09, 2017 2:03 PM >To: edk2-devel@lists.01.org >Cc: Wu, Hao A ; Yao, Jiewen ; >Gao, Liming ; Kinney, Michael D > >Subject: [PATCH v2 0/4] PrintLib: Add safe print functions >[A|U]ValueToStringS > >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