Re: [edk2] sprintf

2015-08-27 Thread Foster, Matthew I
Thanks Andrew, I meant EDK2. I should have known to look at the PrintLib! 
Thanks!

From: Andrew Fish [mailto:[email protected]]
Sent: Thursday, August 27, 2015 9:56 AM
To: Foster, Matthew I
Cc: [email protected]
Subject: Re: [edk2] sprintf


On Aug 27, 2015, at 9:42 AM, Foster, Matthew I 
mailto:[email protected]>> 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel


Re: [edk2] sprintf

2015-08-27 Thread Andrew Fish

> On Aug 27, 2015, at 9:42 AM, Foster, Matthew I  
> 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel