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>
Fri, 12 Apr 2019 21:25:04 +0000 (17:25 -0400)
commitedce9d2b4782b2026bbf5d256b570bf5039a12d3
tree8e1716b065ed36ace78cd90610d3be0ed64a1bb0
parentdc8c30d31a3866b7d385d9fd595c3c182598216f
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.026026 seconds and 5 git commands to generate.