bt2c::Logger::_logStrNoThrow(): use `msg`, not `_mBuf.data()`
[babeltrace.git] / src / python-plugin-provider / python-plugin-provider.c
index e6e31099713393acfb35e864529ad581bd0a7193..4df648527d93afc824e64cd8e675969f3a7b2a88 100644 (file)
@@ -24,7 +24,6 @@
 #include <signal.h>
 #include <Python.h>
 #include <glib.h>
-#include <gmodule.h>
 
 #define PYTHON_PLUGIN_FILE_PREFIX      "bt_plugin_"
 #define PYTHON_PLUGIN_FILE_PREFIX_LEN  (sizeof(PYTHON_PLUGIN_FILE_PREFIX) - 1)
@@ -85,7 +84,7 @@ void log_python_traceback(int log_level)
                        goto end;
                }
 
-               BT_LOG_WRITE(log_level, BT_LOG_TAG,
+               BT_LOG_WRITE_PRINTF(log_level, BT_LOG_TAG,
                        "Exception occurred: Python traceback:\n%s", exc->str);
        }
 
@@ -596,7 +595,7 @@ end:
        return status;
 }
 
-G_MODULE_EXPORT
+BT_EXPORT
 int bt_plugin_python_create_all_from_file(const char *path,
                bool fail_on_load_error, struct bt_plugin_set **plugin_set_out)
 {
@@ -664,7 +663,7 @@ int bt_plugin_python_create_all_from_file(const char *path,
        /*
         * Initialize Python now.
         *
-        * This is not done in the library contructor because the
+        * This is not done in the library constructor because the
         * interpreter is somewhat slow to initialize. If you don't
         * have any potential Python plugins, you don't need to endure
         * this waiting time everytime you load the library.
This page took 0.025073 seconds and 4 git commands to generate.