cvs commit: src/sys/kern subr_prf.c
Xin LI
delphij at FreeBSD.org
Tue Sep 13 19:45:51 PDT 2005
delphij 2005-09-14 02:45:50 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_5)
sys/kern subr_prf.c
Log:
MFC 1.118:
When padding with zero, do pad after prefixes rather than padding
before prefixes.
Use cases:
printf("%05d", -42); --> "00-42" (should be "-0042")
printf("%#05x", 12); --> "000xc" (should be "0x00c")
Submitted by: Oliver Fromme
PR: kern/85520
Approved by: re (kensmith)
Revision Changes Path
1.113.2.1 +5 -1 src/sys/kern/subr_prf.c
More information about the cvs-src
mailing list