public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [edk2-UDK2017] issue about AsciiPrint
@ 2017-08-02  9:19 krishnaLee
  2017-08-02 11:40 ` Gao, Liming
  0 siblings, 1 reply; 2+ messages in thread
From: krishnaLee @ 2017-08-02  9:19 UTC (permalink / raw)
  To: edk2-devel@lists.01.org

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










^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-08-02 11:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-02  9:19 [edk2-UDK2017] issue about AsciiPrint krishnaLee
2017-08-02 11:40 ` Gao, Liming

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox