Thanks Andrew, I meant EDK2. I should have known to look at the PrintLib! 
Thanks!

From: Andrew Fish [mailto:af...@apple.com]
Sent: Thursday, August 27, 2015 9:56 AM
To: Foster, Matthew I
Cc: edk2-devel@lists.sourceforge.net
Subject: Re: [edk2] sprintf


On Aug 27, 2015, at 9:42 AM, Foster, Matthew I 
<matthew.i.fos...@intel.com<mailto:matthew.i.fos...@intel.com>> wrote:

Does anyone know a way to use sprintf in EDK, or a library I can include to do 
the equivalent?


Well this is the edk2 mailing list, so I don’t remember EDK any more….


I tried to use it and include stdio.h but when it goes to link the library it 
cannot find the symbol.


If you are an App and you don’t mind all the extra overhead of the C Lib you 
can do this: 
https://github.com/tianocore/edk2/blob/master/AppPkg/Applications/Main/Main.inf

All the drivers, and most of the edk2 code just uses: 
https://github.com/tianocore/edk2/blob/master/MdePkg/Include/Library/PrintLib.h

Thanks,

Andrew Fish

------------------------------------------------------------------------------
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to