lib: add BT_LIB_LOG*() macros to log/serialize library objects
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 23 Feb 2018 03:14:11 +0000 (22:14 -0500)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 2 May 2019 03:32:03 +0000 (23:32 -0400)
commit476ef9815a2852d362ebc3b090f9535eb0227189
tree35811b8d3fc51a572c8b2ee732e8798d692b0b3a
parent85cd02cf3c1ded45ef8664ae3be7728ba1f05af6
lib: add BT_LIB_LOG*() macros to log/serialize library objects

Add specialized, internal logging macros to log Babeltrace library
objects. Those macros expand to calling bt_lib_log(), which calls
bt_common_custom_vsnprintf() to support custom conversion specifiers.

Almost all Babeltrace objects are supported. The CTF writer object is
supported with the `%!w` specifier, but its formatting remains to be
done. There is no conversion specifier to format a clock class priority
map.

See `include/babeltrace/lib-logging-internal.h` for more details,
limitations, and for the list of custom conversion specifiers.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
include/babeltrace/lib-logging-internal.h
lib/Makefile.am
lib/lib-logging.c [new file with mode: 0644]
This page took 0.025412 seconds and 4 git commands to generate.