Standard logging for ctf.fs sink
[babeltrace.git] / plugins / ctf / fs-sink / writer.c
index 8f383a519de7cef9e5e4407ce3b8390d7c1d3840..ae30a84b37504ea46594711221a22d48ab2d92df 100644 (file)
@@ -26,6 +26,9 @@
  * SOFTWARE.
  */
 
+#define BT_LOG_TAG "PLUGIN-CTF-FS-SINK-WRITER"
+#include "logging.h"
+
 #include <babeltrace/ctf-ir/packet.h>
 #include <babeltrace/plugin/plugin-dev.h>
 #include <babeltrace/graph/connection.h>
@@ -335,8 +338,7 @@ enum bt_component_status writer_component_init(
 
        value = bt_value_map_get(params, "path");
        if (!value || bt_value_is_null(value) || !bt_value_is_string(value)) {
-               fprintf(writer_component->err,
-                               "[error] output path parameter required\n");
+               BT_LOGE_STR("Missing mandatory \"path\" parameter.");
                ret = BT_COMPONENT_STATUS_INVALID;
                goto error;
        }
This page took 0.023618 seconds and 4 git commands to generate.