diff options
author | Scott Long <scottl@FreeBSD.org> | 2017-02-28 18:25:06 +0000 |
---|---|---|
committer | Scott Long <scottl@FreeBSD.org> | 2017-02-28 18:25:06 +0000 |
commit | 388f3ce6c3fb0c2eeeeebe1e0af6d72f840de7fc (patch) | |
tree | 2348634f666de456fdc532561183758e6480b2e7 /lib | |
parent | 6d9160409317733fd7cf140d8f33fe408e69ee40 (diff) | |
download | src-388f3ce6c3fb0c2eeeeebe1e0af6d72f840de7fc.tar.gz src-388f3ce6c3fb0c2eeeeebe1e0af6d72f840de7fc.zip |
Implement sbuf_prf(), which takes an sbuf and outputs it
to stdout in the non-kernel case and to the console+log
in the kernel case. For the kernel case it hooks the
putbuf() machinery underneath printf(9) so that the buffer
is written completely atomically and without a copy into
another temporary buffer. This is useful for fixing
compound console/log messages that become broken and
interleaved when multiple threads are competing for the
console.
Reviewed by: ken, imp
Sponsored by: Netflix
Notes
Notes:
svn path=/head/; revision=314397
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions