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)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 3 May 2019 22:19:33 +0000 (18:19 -0400)
commit57ffc2f176ee8a4492a352c5465345cad733b943
treea2687161a728de9426d44b7fab284caa56bb9d24
parent2be44e903a554e73269a471e8d17f337b19d4574
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.025605 seconds and 4 git commands to generate.