From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) (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 9B74381DEE for ; Mon, 16 Jan 2017 21:35:51 -0800 (PST) Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga103.jf.intel.com with ESMTP; 16 Jan 2017 21:35:51 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,243,1477983600"; d="scan'208";a="54079523" Received: from shwdeopenpsi014.ccr.corp.intel.com ([10.239.9.13]) by fmsmga005.fm.intel.com with ESMTP; 16 Jan 2017 21:35:50 -0800 From: Hao Wu To: edk2-devel@lists.01.org Cc: Hao Wu , Jiewen Yao , Liming Gao , Michael Kinney Date: Tue, 17 Jan 2017 13:34:57 +0800 Message-Id: <1484631299-6168-1-git-send-email-hao.a.wu@intel.com> X-Mailer: git-send-email 1.9.5.msysgit.0 Subject: [PATCH 0/2] PrintLib: Refine the SPrint functions 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: Tue, 17 Jan 2017 05:35:51 -0000 Refine the ASSERT conditions and the return value when ASSERT triggers for the following APIs in PrintLib: UnicodeVSPrint UnicodeBSPrint UnicodeSPrint UnicodeVSPrintAsciiFormat UnicodeBSPrintAsciiFormat UnicodeSPrintAsciiFormat AsciiVSPrint AsciiBSPrint AsciiSPrint AsciiVSPrintUnicodeFormat AsciiBSPrintUnicodeFormat AsciiSPrintUnicodeFormat SPrintLength SPrintLengthAsciiFormat Cc: Jiewen Yao Cc: Liming Gao Cc: Michael Kinney Hao Wu (2): MdePkg/BasePrintLib: Refine the SPrint functions MdeModulePkg/PrintLib: Refine the SPrint functions .../DxePrintLibPrint2Protocol.inf | 7 +- .../Library/DxePrintLibPrint2Protocol/PrintLib.c | 562 +++++++++++++-------- MdePkg/Include/Library/PrintLib.h | 498 ++++++++++-------- MdePkg/Library/BasePrintLib/BasePrintLib.inf | 8 +- MdePkg/Library/BasePrintLib/PrintLib.c | 416 ++++++++------- MdePkg/Library/BasePrintLib/PrintLibInternal.c | 101 ++-- MdePkg/Library/BasePrintLib/PrintLibInternal.h | 3 +- 7 files changed, 942 insertions(+), 653 deletions(-) -- 1.9.5.msysgit.0