freebsd-dev/lib/libsbuf/Symbol.map
Conrad Meyer 7d7db5298d 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

43 lines
453 B
Plaintext

/*
* $FreeBSD$
*/
FBSD_1.2 {
sbuf_new;
sbuf_clear;
sbuf_setpos;
sbuf_bcat;
sbuf_bcpy;
sbuf_cat;
sbuf_cpy;
sbuf_printf;
sbuf_vprintf;
sbuf_putc;
sbuf_set_drain;
sbuf_trim;
sbuf_error;
sbuf_finish;
sbuf_data;
sbuf_len;
sbuf_done;
sbuf_delete;
sbuf_clear_flags;
sbuf_get_flags;
sbuf_set_flags;
};
FBSD_1.3 {
sbuf_start_section;
sbuf_end_section;
};
FBSD_1.4 {
sbuf_hexdump;
};
FBSD_1.5 {
sbuf_putbuf;
sbuf_printf_drain;
};