X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=include%2Fbabeltrace%2Flib-logging-internal.h;h=e2483b29d9a472980c748526d43360dafcafa974;hp=4373312787e89298b37a1daac096f6b89d4111cf;hb=44c440bc5fe8219cc17d1b786d91fd83c4c9860a;hpb=c800eb3790218d2f33df01e77ec38cbd43cc02a1 diff --git a/include/babeltrace/lib-logging-internal.h b/include/babeltrace/lib-logging-internal.h index 43733127..e2483b29 100644 --- a/include/babeltrace/lib-logging-internal.h +++ b/include/babeltrace/lib-logging-internal.h @@ -26,6 +26,10 @@ #include #include +#ifndef BT_LOG_TAG +# error Please define a tag with BT_LOG_TAG before including this file. +#endif + #define BT_LOG_OUTPUT_LEVEL bt_lib_log_level #include @@ -58,7 +62,7 @@ int bt_lib_log_level; * `PRIi64`. * * The Babeltrace extension conversion specifier is accepted. Its syntax - * is: + * is either `%!u` to format a UUID (`bt_uuid` type) or: * * 1. Introductory `%!` sequence. * @@ -74,10 +78,6 @@ int bt_lib_log_level; * * The available format specifiers are: * - * `r`: - * Reference count information. The parameter is any Babeltrace - * object. - * * `F`: * CTF IR field type. The parameter type is `struct bt_field_type *`. * @@ -136,12 +136,15 @@ int bt_lib_log_level; * `g`: * Graph. The parameter type is `struct bt_graph *`. * - * `u`: + * `l`: * Plugin. The parameter type is `struct bt_plugin *`. * * `o`: * Object pool. The parameter type is `struct bt_object_pool *`. * + * `O`: + * Object. The parameter type is `struct bt_object *`. + * * Conversion specifier examples: * * %!f @@ -153,7 +156,7 @@ int bt_lib_log_level; * the last one. Therefore you must put this separator in the format * string between two Babeltrace objects, e.g.: * - * BT_LIB_LOGW("Message: count=%u, %!E, %!+C", count, event_class, + * BT_LIB_LOGW("Message: count=%u, %!E, %!+K", count, event_class, * clock_class); * * Example with a custom prefix: