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

* Re: [edk2-UDK2017] issue about AsciiPrint
  2017-08-02  9:19 [edk2-UDK2017] issue about AsciiPrint krishnaLee
@ 2017-08-02 11:40 ` Gao, Liming
  0 siblings, 0 replies; 2+ messages in thread
From: Gao, Liming @ 2017-08-02 11:40 UTC (permalink / raw)
  To: krishnaLee, edk2-devel@lists.01.org

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


^ 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