summaryrefslogtreecommitdiff
path: root/lib/libstand/printf.c
Commit message (Collapse)AuthorAgeFilesLines
* Move lib/libstand to sys/boot/libsaWarner Losh2017-10-121-518/+0
| | | | | | | | | | Move the sources to sys/boot. Make adjustments related to the move. Kill LIBSTAND_SRC since it's no longer needed. Sponsored by: Netflix Notes: svn path=/head/; revision=324551
* Renumber copyright clause 4Warner Losh2017-02-281-1/+1
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* Add support for %S to libstand as well so /boot/loader and friends canWarner Losh2016-05-171-0/+5
| | | | | | | use it. Notes: svn path=/head/; revision=300078
* Fix usage example in kvprintf(9) and its copy in libstand(3): trailing '\n'Alexey Dokuchaev2015-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 Notes: svn path=/head/; revision=277560
* style(9) requires an empty line when function have no local variables.Hans Petter Selasky2014-05-301-0/+2
| | | | | | | | Suggested by: ae @ Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=266879
* Add support for snprintf() to libstand.Hans Petter Selasky2014-05-301-6/+53
| | | | | | | | Reviewed by: brooks @ Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=266878
* Use type-specific inline function imax() instead of deprecated macro MAX().Jung-uk Kim2010-07-121-2/+1
| | | | | | | Prodded by: bde Notes: svn path=/head/; revision=209949
* Fix build by defining MAX() macro here.Jung-uk Kim2010-07-091-0/+1
| | | | Notes: svn path=/head/; revision=209842
* Sync. printf() of libstand(3) with sys/kern/subr_prf.c.Jung-uk Kim2010-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'. Notes: svn path=/head/; revision=209837
* Obey signedness flag in %z case.Xin LI2008-11-181-1/+1
| | | | | | | MFC after: 2 months Notes: svn path=/head/; revision=185037
* Remove California Regent's clause 3, per letterWarner Losh2007-01-091-4/+0
| | | | Notes: svn path=/head/; revision=165906
* Implement printf 'X' conversion for both libstand and kernel.Jung-uk Kim2006-03-091-9/+11
| | | | Notes: svn path=/head/; revision=156518
* Sync up with kern/subr_prf.c. This adds %ll, %j, %q, %z, etc.Peter Wemm2003-04-061-47/+115
| | | | Notes: svn path=/head/; revision=113159
* Use the standardized CHAR_BIT constant instead of NBBY in userland.Mike Barcroft2002-09-251-1/+2
| | | | Notes: svn path=/head/; revision=103949
* Remove 'register' keyword.David E. O'Brien2002-03-211-3/+3
| | | | Notes: svn path=/head/; revision=92913
* Add __FBSDID()s to libstandMatthew Dillon2001-09-301-1/+3
| | | | Notes: svn path=/head/; revision=84221
* Tidy up some loose ends. nullfs_read/write were returning the wrong value.Peter Wemm1999-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 Notes: svn path=/head/; revision=55137
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Add:Mike Smith1998-11-011-4/+10
| | | | | | | | | assert() setjmp()/longjmp() vsprintf() Notes: svn path=/head/; revision=40805
* This is libstand; a support library for standalone executables (eg. bootstrapMike Smith1998-08-201-0/+355
modules). Obtained from: NetBSD, with some architectural changes and many additions. Notes: svn path=/cvs2svn/branches/MSMITH/; revision=38451