projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src.ctf.fs: honor component's initial log level
[babeltrace.git]
/
src
/
plugins
/
ctf
/
fs-src
/
file.c
diff --git
a/src/plugins/ctf/fs-src/file.c
b/src/plugins/ctf/fs-src/file.c
index de913a70c15c28931d2e4cda76f0c751ca1ef958..c1af7c6926ede5bcfeb6aaa3bf1325681dbf1cbc 100644
(file)
--- a/
src/plugins/ctf/fs-src/file.c
+++ b/
src/plugins/ctf/fs-src/file.c
@@
-20,6
+20,10
@@
* SOFTWARE.
*/
* SOFTWARE.
*/
+#define BT_LOG_OUTPUT_LEVEL (file->log_level)
+#define BT_LOG_TAG "PLUGIN/SRC.CTF.FS/FILE"
+#include "logging/log.h"
+
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
@@
-27,9
+31,6
@@
#include <glib.h>
#include "file.h"
#include <glib.h>
#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)
{
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
}
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);
{
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;
}
goto error;
}
+ file->log_level = log_level;
file->path = g_string_new(NULL);
if (!file->path) {
goto error;
file->path = g_string_new(NULL);
if (!file->path) {
goto error;
This page took
0.023442 seconds
and
4
git commands to generate.