X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fplugins%2Fctf%2Ffs-src%2Ffile.c;h=c1af7c6926ede5bcfeb6aaa3bf1325681dbf1cbc;hb=98903a3ed6827edb1228cf8f9f30a6eb1b81bb49;hp=de913a70c15c28931d2e4cda76f0c751ca1ef958;hpb=2ece7dd044d2f520c313eb967523843de5023e9e;p=babeltrace.git diff --git a/src/plugins/ctf/fs-src/file.c b/src/plugins/ctf/fs-src/file.c index de913a70..c1af7c69 100644 --- a/src/plugins/ctf/fs-src/file.c +++ b/src/plugins/ctf/fs-src/file.c @@ -20,6 +20,10 @@ * SOFTWARE. */ +#define BT_LOG_OUTPUT_LEVEL (file->log_level) +#define BT_LOG_TAG "PLUGIN/SRC.CTF.FS/FILE" +#include "logging/log.h" + #include #include #include @@ -27,9 +31,6 @@ #include #include "file.h" -#define BT_LOG_TAG "PLUGIN/SRC.CTF.FS/FILE" -#include "logging.h" - BT_HIDDEN void ctf_fs_file_destroy(struct ctf_fs_file *file) { @@ -56,7 +57,7 @@ void ctf_fs_file_destroy(struct ctf_fs_file *file) } BT_HIDDEN -struct ctf_fs_file *ctf_fs_file_create(void) +struct ctf_fs_file *ctf_fs_file_create(bt_logging_level log_level) { struct ctf_fs_file *file = g_new0(struct ctf_fs_file, 1); @@ -64,6 +65,7 @@ struct ctf_fs_file *ctf_fs_file_create(void) goto error; } + file->log_level = log_level; file->path = g_string_new(NULL); if (!file->path) { goto error;