public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Gao, Liming" <liming.gao@intel.com>
To: krishnaLee <sssky307@163.com>,
	"edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Subject: Re: [edk2-UDK2017] issue about AsciiPrint
Date: Wed, 2 Aug 2017 11:40:50 +0000	[thread overview]
Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14D75EA80@shsmsx102.ccr.corp.intel.com> (raw)
In-Reply-To: <751eeaf3.1e1.15da23e6a2d.Coremail.sssky307@163.com>

You can see the usage in MdeModulePkg\Universal\Network\UefiPxeBcDxe\PxeBcDhcp.c line 1618. The detail print format can be found in MdePkg\Include\Library\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=0;j<sizeof(RSDP->Signature);j++)
>//{
>                        //output byte by byte,or custom range...,or just some 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 clarify
>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


      reply	other threads:[~2017-08-02 11:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-02  9:19 [edk2-UDK2017] issue about AsciiPrint krishnaLee
2017-08-02 11:40 ` Gao, Liming [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A89E2EF3DFEDB4C8BFDE51014F606A14D75EA80@shsmsx102.ccr.corp.intel.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox