Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Delete the final, inscrutable NOSTRICT and VARARGS lint comments | 2015-09-29 | 1 | -2/+1 | |
| | | | | ok millert@ | ||||
* | Remove some includes include-what-you-use claims don't | 2015-03-14 | 1 | -2/+1 | |
| | | | | | | | have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels. ok tedu@ deraadt@ | ||||
* | Add dmesg -s support, to view the output of rc(8) system startup messages. | 2015-01-13 | 1 | -2/+2 | |
| | | | | | Help and feedback by Theo and Miod. OK deraadt@, manpage-ok jmc@ | ||||
* | KASSERTMSG(9): New kernel assertion with message | 2014-07-13 | 1 | -3/+2 | |
| | | | | | | | | | | | | | | | | | | | | | | | KASSERT() is annoying as it only prints the expression as a string. If you (developers) want to know a little more information, you have to do: #ifdef DIAGNOSTIC if (bad) panic(...); #endif KASSERTMSG() replaces it into a single line: KASSERTMSG(!bad, ...); Taken from NetBSD. (There is a concern that KASSERT() messages are too long; consume more memory, and not friendly for small monitors. This have to be considered & revisited later.) "Like" from henning@ Man page review & advices from jmc@ and schwarze@ | ||||
* | reboot(9): Add MI reboot entry function | 2014-07-11 | 1 | -2/+3 | |
| | | | | | | | | Now, for kernel to "reboot" (reboot, halt, or shutdown), MD boot(9) is called in some places. This change introduces a new MI function reboot(9) which is simply a wrapper to call MD boot(9). OK kettenis@ deraadt@ | ||||
* | Add db_vprintf(), and then use it in ACPI's db_disprint() instead of | 2013-12-12 | 1 | -6/+13 | |
| | | | | | | formatting into a local buffer. ok miod@ | ||||
* | disable %n in printf(9); there is no need for it in the kernel besides | 2013-11-25 | 1 | -6/+7 | |
| | | | | | making format-string vulnerabilities exploitable; inspired by similar change made by Kees Cook to Linux; ok deraadt@ | ||||
* | After a panic, do not fill up the dmesg with splassert messages. | 2013-08-07 | 1 | -1/+4 | |
| | | | | | | They scroll away the important information. Disable splassert in panic(). OK deraadt@ uebayasi@ sthen@ | ||||
* | add support for %td for ptrdiff_t in kernel printf | 2013-07-03 | 1 | -1/+4 | |
| | | | | | | this also adds support in gcc 4.x kprintf format checks ok kettenis@ | ||||
* | do not include machine/cpu.h from a .c file; it is the responsibility of | 2013-03-28 | 1 | -2/+1 | |
| | | | | | .h files to pull it in, if needed ok tedu | ||||
* | Allow kernel printfs to go to console if in ddb instead of being redirected | 2011-04-03 | 1 | -3/+14 | |
| | | | | to xconsole. ok deraadt@ guenther@ | ||||
* | Correct the links between threads, processes, pgrps, and sessions, | 2010-07-26 | 1 | -7/+9 | |
| | | | | | | | | | so that the process-level stuff is to/from struct process and not struct proc. This fixes a bunch of problem cases in rthreads. Based on earlier work by blambert and myself, but mostly written at c2k10. Tested by many: deraadt, sthen, krw, ray, and in snapshots | ||||
* | Do not disallow kernel crash dumps on panic if swap encryption is enabled, | 2008-06-27 | 1 | -8/+1 | |
| | | | | | | as dumpsys() will now clear the sensitive information. ok djm@ (and dumpsys changes too) | ||||
* | Remove unused variable consintr. ok mbalmer | 2007-12-30 | 1 | -10/+3 | |
| | |||||
* | Introduce %z for printf(9), like %z for printf(3). Used to print | 2007-10-08 | 1 | -1/+9 | |
| | | | | | | size_t and ssize_t variables. OK miod and cthulhu. | ||||
* | Remove support for ddb-only %r, %z, and the ddb-specific handling of %n from | 2007-09-01 | 1 | -66/+2 | |
| | | | | the kernel printf. This will allow support for the real %z in the near future. | ||||
* | enable splassert (1) by default; requested and ok many | 2007-04-26 | 1 | -2/+2 | |
| | |||||
* | allow bit 32 to be printed; bug spotted and fix tested by dlg | 2006-12-11 | 1 | -2/+2 | |
| | |||||
* | missing punctuation in comments; from bret lambert | 2006-11-17 | 1 | -2/+2 | |
| | |||||
* | Make the ddb.log sysctl available as an in-ddb variable, $log, for consistency. | 2006-07-06 | 1 | -2/+2 | |
| | |||||
* | the bit shifted should be a type at least as wide as the comparison (u_quad_t) | 2006-06-01 | 1 | -2/+2 | |
| | |||||
* | extend %b support so that it will allow for arguments with more than 32 bits. | 2006-05-29 | 1 | -6/+24 | |
| | |||||
* | tprintf() is now only necessary for NFS, so do not compile it for kernels | 2005-12-27 | 1 | -1/+5 | |
| | | | | which like NFSSERVER and NFSCLIENT. | ||||
* | ansi and deregister. No binary change. | 2005-12-09 | 1 | -6/+3 | |
| | |||||
* | typo in comment: sprintf -> snprintf, ok markus@ | 2005-09-27 | 1 | -3/+3 | |
| | |||||
* | Try to start log message buffer on a new line. Helps install scripts avoid | 2005-04-14 | 1 | -17/+3 | |
| | | | | | | detecting phantom devices when scanning dmesg output. Suggested by miod@, ok deraadt@. | ||||
* | protect printf with a mutex instead of SIMPLELOCK. | 2004-07-20 | 1 | -48/+10 | |
| | |||||
* | debranch SMP, have fun | 2004-06-13 | 1 | -1/+52 | |
| | |||||
* | put an mi wrapper around stdarg.h/varargs.h. gcc3 moved stdarg/varargs macros | 2004-01-03 | 1 | -2/+2 | |
| | | | | | | | to built-ins, so eventually we will have one version of these files. Special adjustments for the kernel to cope: machine/stdarg.h -> sys/stdarg.h and machine/ansi.h needs to have a _BSD_VA_LIST_ for syslog* prototypes. okay millert@, drahn@, miod@. | ||||
* | Kill non-standard kernel printf %: braindead extension for good. | 2003-12-21 | 1 | -24/+1 | |
| | | | | ok markus@ drahn@ | ||||
* | option to log ddb output to kernel message buffer, via sysctl ddb.log | 2003-06-28 | 1 | -3/+6 | |
| | | | | ok deraadt@ henric@ djm@ | ||||
* | Remove the advertising clause in the UCB license which Berkeley | 2003-06-02 | 1 | -6/+2 | |
| | | | | rescinded 22 July 1999. Proofed by myself and Theo. | ||||
* | Add kern.splassert=3. deraadt@ ok. | 2003-05-29 | 1 | -1/+7 | |
| | |||||
* | typos in comments; From: Bengt Wessling <bengt@lemuria.org>, 10x | 2003-05-27 | 1 | -2/+2 | |
| | |||||
* | remove sprintf() and vsprintf(). nothing in the kernel needs it. if | 2003-05-22 | 1 | -43/+1 | |
| | | | | some module does -- tough -- they can rewrite it using the safer versions. | ||||
* | Match vprintf prototype to userland and standards. | 2003-05-21 | 1 | -4/+5 | |
| | | | | deraadt@ ok | ||||
* | ansi and de-register; ok millert | 2003-05-20 | 1 | -33/+13 | |
| | |||||
* | Kill a bunch more commons (very few left =) | 2003-05-13 | 1 | -2/+2 | |
| | |||||
* | warn for strcpy|strcat|sprintf|vsprintf; ok art dhartmei pval, and either henning or pb, i cannot tell which it was | 2003-05-10 | 1 | -2/+7 | |
| | |||||
* | use snprintf | 2003-05-06 | 1 | -6/+6 | |
| | |||||
* | Fix kernel snprintf function(s) to be like | 2003-01-13 | 1 | -29/+26 | |
| | | | | | | userland in return values. deraadt@ ok. | ||||
* | Stuff needed for gcc 3.X. | 2002-10-14 | 1 | -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. | 2002-05-20 | 1 | -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 of | 2002-05-18 | 1 | -2/+2 | |
| | | | | rate limiting). | ||||
* | If ddb.panic is disabled, print the stack trace before dumping. | 2002-05-18 | 1 | -1/+3 | |
| | |||||
* | Implement splassert() for sparc - a tool for finding problems related to | 2002-05-15 | 1 | -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 things | 2002-03-15 | 1 | -67/+1 | |
| | | | | the ANSI way. | ||||
* | First round of __P removal in sys | 2002-03-14 | 1 | -4/+4 | |
| | |||||
* | Allocate rusage, pgrp, ucred and session with pool. | 2002-01-23 | 1 | -1/+2 | |
| | |||||
* | remove some XXX comments | 2001-12-02 | 1 | -13/+6 | |
| |