cvs commit: src/sys/kern subr_prf.c

Xin LI delphij at
Sun Sep 4 11:03:46 PDT 2005

delphij     2005-09-04 18:03:45 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             subr_prf.c 
  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
  MFC After:      1 week
  Revision  Changes    Path
  1.118     +5 -1      src/sys/kern/subr_prf.c

More information about the cvs-src mailing list