allow multiple ctf streams to be open
[babeltrace.git] / plugins / ctf / fs / file.c
index 1d31bcfc0784f12cffae9a51522ec7d2e0037b66..c0ca3b8d05cf9a222598c750e69e1a039bd4d3b2 100644 (file)
@@ -32,6 +32,7 @@
 
 #include "file.h"
 
+BT_HIDDEN
 void ctf_fs_file_destroy(struct ctf_fs_file *file)
 {
        struct ctf_fs_component *ctf_fs = file->ctf_fs;
@@ -56,6 +57,7 @@ void ctf_fs_file_destroy(struct ctf_fs_file *file)
        g_free(file);
 }
 
+BT_HIDDEN
 struct ctf_fs_file *ctf_fs_file_create(struct ctf_fs_component *ctf_fs)
 {
        struct ctf_fs_file *file = g_new0(struct ctf_fs_file, 1);
@@ -80,6 +82,7 @@ end:
        return file;
 }
 
+BT_HIDDEN
 int ctf_fs_file_open(struct ctf_fs_component *ctf_fs, struct ctf_fs_file *file,
                const char *mode)
 {
@@ -89,7 +92,7 @@ int ctf_fs_file_open(struct ctf_fs_component *ctf_fs, struct ctf_fs_file *file,
        PDBG("Opening file \"%s\" with mode \"%s\"\n", file->path->str, mode);
        file->fp = fopen(file->path->str, mode);
        if (!file->fp) {
-               PERR("Cannot open file \"%s\" with mode \"%s\": %s",
+               PERR("Cannot open file \"%s\" with mode \"%s\": %s\n",
                        file->path->str, mode, strerror(errno));
                goto error;
        }
This page took 0.023393 seconds and 4 git commands to generate.