Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Jul 2010 22:21:18 +0000 (UTC)
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/lib/libstand printf.c
Message-ID:  <201007082221.o68MLXEW026258@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jkim        2010-07-08 22:21:18 UTC

  FreeBSD src repository

  Modified files:
    lib/libstand         printf.c 
  Log:
  SVN rev 209837 on 2010-07-08 22:21:18Z by jkim
  
  Sync. printf() of libstand(3) with sys/kern/subr_prf.c.
  
  CVS r1.94       jhb:
  Cast the integer read as the first argument for %b to an unsigned integer
  so it's value is not sign extended when assigned to the uintmax_t variable
  used internally by printf.  For example, if bit 31 is set in the cpuid
  feature word, then %b would print out the initial value as a 16 character
  hexadecimal value.  Now it only prints out an 8 character value.
  
  CVS r1.109      njl:
  Add support for 'h' and 'hh' modifiers for printf(9).
  
  CVS r1.117      phk:
  If we ignore an unknown % sequence, we must stop interpreting the remaining
  % arguments because the varargs are now out of sync and there is a risk that
  we might for instance dereference an integer in a %s argument.
  
  SVN r209836     jkim:
  Implement optional 'precision' for numbers.  Previously, it was parsed but
  ignored.  Some third-party modules (e.g., APCICA) prefer this format over
  zero padding flag '0'.
  
  Revision  Changes    Path
  1.12      +45 -12    src/lib/libstand/printf.c



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