Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Sep 2005 18:03:45 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern subr_prf.c
Message-ID:  <200509041803.j84I3jH2082397@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
delphij     2005-09-04 18:03:45 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             subr_prf.c 
  Log:
  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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200509041803.j84I3jH2082397>