kprintf update
    Sascha Wildner 
    saw at online.de
       
    Sun Dec 24 13:32:16 PST 2006
    
    
  
Hi,
please review and test this patch which brings in some code from FreeBSD 
to kprintf (support for %j, e.g.):
http://leaf.dragonflybsd.org/~swildner/kprintf.diff
The commit message would be:
===================
- addlog(...) is identical to log(-1, ...). Get rid of it to avoid
  duplicate code and change sppp(4) to use log(-1, ...).
- Add support for the 'j' and 't' size modifiers.
- Add support for the 'i' (alias for 'd'), 'n' and 'X' conversions. Use
  uintmax_t in ksprintn() and get rid of ksprintqn(). Do some structural
  cleanup in kvcprintf().
- Make 'z' modifier always print values as signed.
- Change a return to a break to properly free the local buffers.
- When padding with zero, do pad after prefixes rather than before.
- Perform some style(9) cleanup.
Taken-from (with some adjustments): FreeBSD
===================
If there are no objections, I'll commit it within the next 2-3 days.
Sascha
--
http://yoyodyne.ath.cx
    
    
More information about the Kernel
mailing list