From: krishnaLee <sssky307@163.com>
To: "edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Subject: [edk2-UDK2017] issue about AsciiPrint
Date: Wed, 2 Aug 2017 17:19:45 +0800 (CST) [thread overview]
Message-ID: <751eeaf3.1e1.15da23e6a2d.Coremail.sssky307@163.com> (raw)
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
next reply other threads:[~2017-08-02 9:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-02 9:19 krishnaLee [this message]
2017-08-02 11:40 ` [edk2-UDK2017] issue about AsciiPrint Gao, Liming
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=751eeaf3.1e1.15da23e6a2d.Coremail.sssky307@163.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