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)
committerSimon Marchi <simon.marchi@efficios.com>
Mon, 4 Nov 2019 20:27:50 +0000 (15:27 -0500)
commit2e42d046c850b451970a67056de337168e39270f
tree8de52bc6e57549be2184572026ded873cee30977
parent1984ac2bd456305f0739e9a329a5d335a8244596
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.024398 seconds and 4 git commands to generate.