summaryrefslogtreecommitdiffstats
path: root/lib/libstand/printf.c
Commit message (Collapse)AuthorAgeFilesLines
* Add support for %S to libstand as well so /boot/loader and friends canimp2016-05-171-0/+5
| | | | use it.
* Fix usage example in kvprintf(9) and its copy in libstand(3): trailing '\n'danfe2015-01-231-2/+2
| | | | | | | | | | | | | in bitfield argument is wrong, as it will be treated as bit 10, causing any code printing >=10 bits with bit 10 on as having a trailing comma. Newline (intended one) should be part of the format string (already present in the examples). Also fix grammar and kill EOL whitespace in comment while here. PR: 195005 Approved by: bdrewery
* style(9) requires an empty line when function have no local variables.hselasky2014-05-301-0/+2
| | | | | Suggested by: ae @ Sponsored by: DARPA, AFRL
* Add support for snprintf() to libstand.hselasky2014-05-301-6/+53
| | | | | Reviewed by: brooks @ Sponsored by: DARPA, AFRL
* Use type-specific inline function imax() instead of deprecated macro MAX().jkim2010-07-121-2/+1
| | | | Prodded by: bde
* Fix build by defining MAX() macro here.jkim2010-07-091-0/+1
|
* Sync. printf() of libstand(3) with sys/kern/subr_prf.c.jkim2010-07-081-12/+45
| | | | | | | | | | | | | | | | | | | | | | 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'.
* Obey signedness flag in %z case.delphij2008-11-181-1/+1
| | | | MFC after: 2 months
* Remove California Regent's clause 3, per letterimp2007-01-091-4/+0
|
* Implement printf 'X' conversion for both libstand and kernel.jkim2006-03-091-9/+11
|
* Sync up with kern/subr_prf.c. This adds %ll, %j, %q, %z, etc.peter2003-04-061-47/+115
|
* Use the standardized CHAR_BIT constant instead of NBBY in userland.mike2002-09-251-1/+2
|
* Remove 'register' keyword.obrien2002-03-211-3/+3
|
* Add __FBSDID()s to libstanddillon2001-09-301-1/+3
|
* Tidy up some loose ends. nullfs_read/write were returning the wrong value.peter1999-12-271-0/+1
| | | | | | Fix some ctype problems - isascii() caused a warning if fed an unsigned char - it's always > 0 and libstand is compiled with -Wall. Missing prototype/include in printf.c
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Add:msmith1998-11-011-4/+10
| | | | | | assert() setjmp()/longjmp() vsprintf()
* This is libstand; a support library for standalone executables (eg. bootstrapmsmith1998-08-201-0/+355
modules). Obtained from: NetBSD, with some architectural changes and many additions.
OpenPOWER on IntegriCloud