diff options
author | 2014-07-13 23:49:40 +0000 | |
---|---|---|
committer | 2014-07-13 23:49:40 +0000 | |
commit | a972b4a4eb1466195f36d2e762d5d43d5e152e6c (patch) | |
tree | 22e17e4064f54adc8445ba74e5b28bc38feec087 /sys/kern/exec_script.c | |
parent | Add stubs for the proposed server API. (diff) | |
download | wireguard-openbsd-a972b4a4eb1466195f36d2e762d5d43d5e152e6c.tar.xz wireguard-openbsd-a972b4a4eb1466195f36d2e762d5d43d5e152e6c.zip |
KASSERTMSG(9): New kernel assertion with message
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@
Diffstat (limited to 'sys/kern/exec_script.c')
0 files changed, 0 insertions, 0 deletions