From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) (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 4A02021CE7491 for ; Wed, 2 Aug 2017 04:38:44 -0700 (PDT) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Aug 2017 04:40:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,311,1498546800"; d="scan'208";a="294661988" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga004.fm.intel.com with ESMTP; 02 Aug 2017 04:40:54 -0700 Received: from fmsmsx155.amr.corp.intel.com (10.18.116.71) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 2 Aug 2017 04:40:53 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by FMSMSX155.amr.corp.intel.com (10.18.116.71) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 2 Aug 2017 04:40:53 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.146]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.134]) with mapi id 14.03.0319.002; Wed, 2 Aug 2017 19:40:51 +0800 From: "Gao, Liming" To: krishnaLee , "edk2-devel@lists.01.org" Thread-Topic: [edk2] [edk2-UDK2017] issue about AsciiPrint Thread-Index: AQHTC3CXKDLnruWr2EqEoiZJMtTyqKJw8Ukw Date: Wed, 2 Aug 2017 11:40:50 +0000 Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14D75EA80@shsmsx102.ccr.corp.intel.com> References: <751eeaf3.1e1.15da23e6a2d.Coremail.sssky307@163.com> In-Reply-To: <751eeaf3.1e1.15da23e6a2d.Coremail.sssky307@163.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: [edk2-UDK2017] issue about AsciiPrint X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Aug 2017 11:38:44 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable You can see the usage in MdeModulePkg\Universal\Network\UefiPxeBcDxe\PxeBcD= hcp.c line 1618. The detail print format can be found in MdePkg\Include\Lib= rary\PrintLib.h >-----Original Message----- >From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of >krishnaLee >Sent: Wednesday, August 02, 2017 5:20 PM >To: edk2-devel@lists.01.org >Subject: [edk2] [edk2-UDK2017] issue about AsciiPrint > >Hi All, > >This function will output nothing or strange-output in my real Lenovo_Q270 >machine, follow is the key point: > > >//for(UINTN j=3D0;jSignature);j++) >//{ > //output byte by byte,or custom range...,or just s= ome specified >bytes in the string... > >//AsciiPrint("%c",j,SignatureStr[j]); >//} >--------------------------------------------------------------------------= ---------------- >I had read the Print function note,but I don't understand its meaning for= ascii >string using AsciiPrint, for example:If someone want print a part of ascii= -string >byte by byte..., >I am newer to write uefi code,May be I mis-understand it,Can anybody clari= fy >it ,or give the full instruction about AsciiPrint. >type: >% >Print a %%. >c >The argument is a Unicode character. ASCII characters can be printed = using >this type too by making sure bits 8..15 of the argument are set to 0. > > > > >attachment is the full test code. > > >my-platform-infomation: >udk2017-vs2015x86 >build command:build -p ShellPkg\ShellPkg.dsc -m >ShellPkg\Application\querytable\querytable.inf -a X64 -b RELEASE >uefi shell version 2.2 >cpu:Intel (r) G4520 3.6Ghz >mem:Sumsang 16G 2133 >motherboard:Lenovo_Q270 > > > > > > > > > >_______________________________________________ >edk2-devel mailing list >edk2-devel@lists.01.org >https://lists.01.org/mailman/listinfo/edk2-devel