summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_prf.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* warn for strcpy|strcat|sprintf|vsprintf; ok art dhartmei pval, and either henning or pb, i cannot tell which it wasderaadt2003-05-101-2/+7
|
* use snprintfderaadt2003-05-061-6/+6
|
* Fix kernel snprintf function(s) to be likeweingart2003-01-131-29/+26
| | | | | | userland in return values. deraadt@ ok.
* Stuff needed for gcc 3.X.art2002-10-141-9/+38
| | | | | | | | | | | | | | gcc has the nice feature of optimizing various common constructs into more optimal ones, inlining various calls, etc. The problem with that is that it assumes that we have a proper libc backing us. We really don't want to loose all those features by defining -ffreestanding and right now there is no way to just disable some of them, so we have to make the kernel more libc-like in some aspects to make it work with newer gcc. rename putchar to kputchar because it was nothing like libc putchar (and only internal to this function). Implement dummy putchar and puts (not prototyped outside this file).
* Add one more level to the kern.splassert sysctl.art2002-05-201-4/+8
| | | | | | | | 0 - do nothing. 1 - small message on error (function name and the levels). 2 - big message on error (function name, levels and traceback (if possible)). 3 - panic. After suggestion from deraadt@.
* dump the stack on splassert failure (XXX - need some kind ofart2002-05-181-2/+2
| | | | rate limiting).
* If ddb.panic is disabled, print the stack trace before dumping.art2002-05-181-1/+3
|
* Implement splassert() for sparc - a tool for finding problems related toart2002-05-151-1/+24
| | | | | | | spl handling (already found 3 problems). Man page in a few seconds. deraadt@ ok.
* Kill #if __STDC__ used to do K&R vs. ANSI varargs/stdarg; just do thingsmillert2002-03-151-67/+1
| | | | the ANSI way.
* First round of __P removal in sysmillert2002-03-141-4/+4
|
* Allocate rusage, pgrp, ucred and session with pool.art2002-01-231-1/+2
|
* remove some XXX commentsderaadt2001-12-021-13/+6
|
* remove staticsniklas2001-11-151-6/+5
|
* make sure that va_start() has matching va_end()deraadt2001-09-051-3/+4
|
* use %ll instead of %qderaadt2001-09-051-4/+4
|
* remove old vmart2001-06-271-3/+3
|
* KNFderaadt2001-06-221-30/+30
|
* avoid sign extension for %bmickey2001-02-221-2/+2
|
* disable automatic crashdump when swap encryption is onprovos2000-06-251-1/+8
|
* Get rid of leading NULs in /kern/msgbuf. If the msgbuf modified in betweenmillert2000-03-131-1/+2
| | | | | reads at just the right time is is possible to get duplicate output but in practice this is extremely rare. Joint effort with Theo.
* Add an option DDB_SAFE_CONSOLE that defaults db_console to 1.art2000-03-021-1/+16
| | | | In many cases, setting db_console in /etc/rc is too late.
* enlarge msgbuf, somewhat line netbsd didderaadt2000-02-221-4/+8
|
* snprintf in kernel; assar@stacken.kth.sederaadt1999-12-021-17/+83
|
* panic prints a newline for you, don't do it in the panic stringmillert1999-01-111-2/+2
|
* NUL terminate the buffer in vsprintfniklas1999-01-101-2/+4
|
* default to console ddb offderaadt1998-04-041-2/+2
|
* rename ddb.panic_ddb, and add ddb.console. Now you can stop console ddb entryderaadt1998-02-051-3/+4
| | | | | with a sysctl. There will be architectures and drivers that lack function, and I trust the maintainers of those will forget to add the code..
* NULL derefniklas1998-01-241-6/+6
|
* support expanded panicstr; and add vsprintf backderaadt1998-01-211-4/+30
|
* sysctl ddb.panic_ddb; felix@mamba.pond.sub.orgderaadt1997-12-291-2/+6
|
* Do not lose the first char in msgbufniklas1997-12-281-5/+4
|
* import torek's vfprintf() from libc [renamed to kprintf and allchuck1997-11-041-424/+783
| | | | | | | | | | | | | | | | | | | | | | | floating point stuff removed]. the new kprintf replaces the 3 different (and buggy) versions of printf that were in the kernel before (kprintf, sprintf, and db_printf), thus reducing duplicated code by 2/3's. this fixes (or adds) several printf formats. XXX: new kprintf still supports several non-standard '%' formats: %: - passes an additional format string and argument list recursively %b - used to decode error registers %r - int, but print in radix "db_radix" [DDB only] %z - 'signed hex' [DDB only] %n - unsigned int, but print in radix "db_radix" [DDB only] note that DDB's "%n" conflicts with standard "%n" which takes the number of characters written so far and stores it into the integer indicated by the "int *" pointer arg. yuck! while here, add comments for each function explaining what it is supposed to do.
* added 'q' modifier (64-bit integers) in kernel vsprintf/kprintfangelos1997-10-011-19/+64
|
* -Wcast-qual cleanupniklas1996-12-061-5/+5
|
* back out bitmask_snprintf()kstailey1996-11-291-78/+1
|
* Commented out a def, only referenced in out-commented codeniklas1996-11-241-2/+2
|
* added bitmap_snprintfkstailey1996-11-241-1/+78
|
* __assert added, impl from netbsd, however put elsewhere. use it insteadniklas1996-10-191-1/+15
| | | | of private versions (one even using the userland header) in if_sn.c
* fix vsnprintf return valderaadt1996-07-281-3/+3
|
* make printf/addlog return 0, for compat to userlandderaadt1996-07-231-3/+5
|
* Fixed NetBSD pr #2633 (douzzer@mit.edu)--Be slightly more reasonabledm1996-07-191-1/+13
| | | | about something like printf ("bogus format %l");
* -Wall & -Wstrict-prototype fixesniklas1996-07-021-6/+6
|
* expand %d is panicstrdm1996-06-261-10/+28
|
* sync syscalls, no sys/cpu.hderaadt1996-05-021-3/+2
|
* partial sync with netbsd 960418, more to comederaadt1996-04-211-11/+7
|
* NetBSD 960317 mergeniklas1996-04-191-1/+5
|
* From NetBSD: Merge with NetBSD 960217niklas1996-02-291-14/+25
|
* initial import of NetBSD treederaadt1995-10-181-0/+639