freebsd-skq/lib/libsbuf
cem 38fa0aaa51 device_printf: Use sbuf for more coherent prints on SMP
device_printf does multiple calls to printf allowing other console messages to
be inserted between the device name, and the rest of the message.  This change
uses sbuf to compose to two into a single buffer, and prints it all at once.

It exposes an sbuf drain function (drain-to-printf) for common use.

Update documentation to match; some unit tests included.

Submitted by:	jmg
Sponsored by:	Dell EMC Isilon
Differential Revision:	https://reviews.freebsd.org/D16690
2019-05-07 17:47:20 +00:00
..
tests device_printf: Use sbuf for more coherent prints on SMP 2019-05-07 17:47:20 +00:00
Makefile Add HAS_TESTS to all Makefiles that use the SUBDIR.${MK_TESTS}+= tests idiom 2017-08-02 08:14:06 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
Symbol.map device_printf: Use sbuf for more coherent prints on SMP 2019-05-07 17:47:20 +00:00
Version.def Expose the sbuf_putbuf() symbol to libsbuf. There are a few other symbols 2017-03-02 01:39:23 +00:00