src.ctf.fs: make log macros of data-stream-file.c more generic
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 1 Nov 2019 19:31:02 +0000 (15:31 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 14 Nov 2019 22:49:12 +0000 (17:49 -0500)
commitd7bc09738f94a8faa25a08ae79cacc19426b0588
treede088be149de01bda759d97cb22f6e9a348c3597
parent2068d50bb02a85b287150fa80bafc4d3dfc80a40
src.ctf.fs: make log macros of data-stream-file.c more generic

The logging macros in data-stream-file.c currently assume that all the
contexts where a logging statement is used will have a self component at
ds_file->self_comp and a logging level at ds_file->log_level.  In a
future patch, I'd like to use a logging statement where there is no
reason to pass a ds_file variable.

Make the macros more generic by having them refer to just self_comp and
logging_level.

Change-Id: I0057dd27310e6ca6bf18441e214eb2fe8a25b19e
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2326
Tested-by: jenkins <jenkins@lttng.org>
src/plugins/ctf/fs-src/data-stream-file.c
This page took 0.024454 seconds and 4 git commands to generate.