logging: strip down and clean `log.h` and `log.c`
[babeltrace.git] / src / python-plugin-provider / python-plugin-provider.c
index e6e31099713393acfb35e864529ad581bd0a7193..17305dd5ef7ab859ea1affa1837144f5c196cfc1 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)
 {
This page took 0.023471 seconds and 4 git commands to generate.