Page 3 of 3

Re: I/O functions

Posted: Fri May 10, 2013 9:43 am
by Nable
gusc wrote:I know that I'm jumping late in to the printf game, but I wanted to share my tiny writef implementation https://github.com/gusc/mbr2gpt/blob/ma ... rnel/lib.c
And after sparse checking:
https://github.com/gusc/mbr2gpt/blob/ma ... /lib.c#L72 - see, it seems that you have type mismatch, uint64 seems to be the type of return value instead of uint32.
Checking your code with at least `gcc -W -Wall' seems to be a good idea.

Re: I/O functions

Posted: Fri May 10, 2013 10:00 am
by gusc
Nable wrote:
gusc wrote:I know that I'm jumping late in to the printf game, but I wanted to share my tiny writef implementation https://github.com/gusc/mbr2gpt/blob/ma ... rnel/lib.c
And after sparse checking:
https://github.com/gusc/mbr2gpt/blob/ma ... /lib.c#L72 - see, it seems that you have type mismatch, uint64 seems to be the type of return value instead of uint32.
Checking your code with at least `gcc -W -Wall' seems to be a good idea.
Yep, thanks, I'll fix it in the next push.