For more information on the formatters that are used see the PrintLib 
information in the MdePkg documentation 

BR
Anders

-----Original Message-----
From: Andrew fish [mailto:[email protected]] 
Sent: den 8 juli 2014 07:24
To: [email protected]
Subject: Re: [edk2] How to print string using DEBUG

%s is Unicode, %a is ASCII.

So %s is CHAR16.

Sent from my iPhone

> On Jul 7, 2014, at 9:51 PM, WANG Siyuan <[email protected]> wrote:
> 
> Hi,
> I want to print a string by DEBUG:
> 
> const char *testc = "1234567890";
> DEBUG ((EFI_D_INFO , "test string: %s\n", testc));
> 
> I got this output:
> test string: 13579
> 
> How to print string using DEBUG?
> 
> Thanks,
> WANG Siyuan
> 
> ----------------------------------------------------------------------
> -------- Open source business process management suite built on Java 
> and Eclipse Turn processes into business applications with Bonita BPM 
> Community Edition Quickly connect people, data, and systems into 
> organized workflows Winner of BOSSIE, CODIE, OW2 and Gartner awards 
> http://p.sf.net/sfu/Bonitasoft 
> _______________________________________________
> edk2-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/edk2-devel

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse Turn 
processes into business applications with Bonita BPM Community Edition Quickly 
connect people, data, and systems into organized workflows Winner of BOSSIE, 
CODIE, OW2 and Gartner awards http://p.sf.net/sfu/Bonitasoft 
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to