Re: [Etherboot-developers] Q: Non-Standard printf?
Brought to you by:
marty_connor,
stefanhajnoczi
|
From: Eric W B. <ebi...@ln...> - 2002-07-26 01:30:08
|
ke...@us... (Ken Yap) writes:
> >I'm trying to understand why the printf in etherboot is non-standard.
> >If this is just something that happened or if this that has a good reason
> >behind it.
> >As I share code between projects my biggest bug is that code like:
> >printf("%04x\n", foo);
> >Fails and I get really strange debugging output.
>
> You mean it doesn't pay attention to the width specifier?
Primarily. Though I think I have seen a few other anomolies as well.
> That was never
> implemented, for space reasons. If you want to have better compatibility
> without using up much code space you could get the printf to ignore the
> width specifier.
I will look. Given that this is a code space thing. I will look very carefully
before touching it.
Eric
|