lib: remove LOADING_ERROR status
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 24 Jul 2019 02:49:46 +0000 (22:49 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 24 Jul 2019 04:18:54 +0000 (00:18 -0400)
Remove the LOADING_ERROR status, use ERROR instead.  It's not so useful
to return a separate kind of error, now that we have a way to
communicate detailed error causes.

Change-Id: I45682b12748fdf8a8466211323dd8563f01d423b
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1754
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Tested-by: jenkins <jenkins@lttng.org>
include/babeltrace2/babeltrace.h
include/babeltrace2/func-status.h
include/babeltrace2/plugin/plugin-const.h
src/bindings/python/bt2/bt2/__init__.py.in
src/bindings/python/bt2/bt2/utils.py
src/common/common.h
src/lib/func-status.h
src/lib/plugin/plugin-so.c
src/python-plugin-provider/python-plugin-provider.c

index 4c77aa27d2efa887a5d91bc45c2e20796bc9d190..4d09263608381707f8fe7104da60d45e95d392b8 100644 (file)
 #undef __BT_FUNC_STATUS_INVALID_PARAMS
 #undef __BT_FUNC_STATUS_INVALID_OBJECT
 #undef __BT_FUNC_STATUS_MEMORY_ERROR
 #undef __BT_FUNC_STATUS_INVALID_PARAMS
 #undef __BT_FUNC_STATUS_INVALID_OBJECT
 #undef __BT_FUNC_STATUS_MEMORY_ERROR
-#undef __BT_FUNC_STATUS_LOADING_ERROR
 #undef __BT_FUNC_STATUS_ERROR
 #undef __BT_FUNC_STATUS_OK
 #undef __BT_FUNC_STATUS_END
 #undef __BT_FUNC_STATUS_ERROR
 #undef __BT_FUNC_STATUS_OK
 #undef __BT_FUNC_STATUS_END
index 3970be67e32621412b9aa3683fc0c358bd1c867f..619dad02f1a6370cf1734a927e76f7fb632934b9 100644 (file)
 # define __BT_FUNC_STATUS_MEMORY_ERROR         -12
 #endif
 
 # define __BT_FUNC_STATUS_MEMORY_ERROR         -12
 #endif
 
-/* Plugin loading error */
-#ifndef __BT_FUNC_STATUS_LOADING_ERROR
-# define __BT_FUNC_STATUS_LOADING_ERROR                -2
-#endif
-
 /* General error */
 #ifndef __BT_FUNC_STATUS_ERROR
 # define __BT_FUNC_STATUS_ERROR                        -1
 /* General error */
 #ifndef __BT_FUNC_STATUS_ERROR
 # define __BT_FUNC_STATUS_ERROR                        -1
index 892e355050483be269aa752fcf4ee0e2067bc5ca..11a6a01f5478757627f11c34136c9b1576400a03 100644 (file)
@@ -41,7 +41,6 @@ typedef enum bt_plugin_find_status {
        BT_PLUGIN_FIND_STATUS_OK                = __BT_FUNC_STATUS_OK,
        BT_PLUGIN_FIND_STATUS_NOT_FOUND         = __BT_FUNC_STATUS_NOT_FOUND,
        BT_PLUGIN_FIND_STATUS_ERROR             = __BT_FUNC_STATUS_ERROR,
        BT_PLUGIN_FIND_STATUS_OK                = __BT_FUNC_STATUS_OK,
        BT_PLUGIN_FIND_STATUS_NOT_FOUND         = __BT_FUNC_STATUS_NOT_FOUND,
        BT_PLUGIN_FIND_STATUS_ERROR             = __BT_FUNC_STATUS_ERROR,
-       BT_PLUGIN_FIND_STATUS_LOADING_ERROR     = __BT_FUNC_STATUS_LOADING_ERROR,
        BT_PLUGIN_FIND_STATUS_MEMORY_ERROR      = __BT_FUNC_STATUS_MEMORY_ERROR,
 } bt_plugin_find_status;
 
        BT_PLUGIN_FIND_STATUS_MEMORY_ERROR      = __BT_FUNC_STATUS_MEMORY_ERROR,
 } bt_plugin_find_status;
 
@@ -52,7 +51,6 @@ typedef enum bt_plugin_find_all_from_file_status {
        BT_PLUGIN_FIND_ALL_FROM_FILE_STATUS_OK                  = __BT_FUNC_STATUS_OK,
        BT_PLUGIN_FIND_ALL_FROM_FILE_STATUS_NOT_FOUND           = __BT_FUNC_STATUS_NOT_FOUND,
        BT_PLUGIN_FIND_ALL_FROM_FILE_STATUS_ERROR               = __BT_FUNC_STATUS_ERROR,
        BT_PLUGIN_FIND_ALL_FROM_FILE_STATUS_OK                  = __BT_FUNC_STATUS_OK,
        BT_PLUGIN_FIND_ALL_FROM_FILE_STATUS_NOT_FOUND           = __BT_FUNC_STATUS_NOT_FOUND,
        BT_PLUGIN_FIND_ALL_FROM_FILE_STATUS_ERROR               = __BT_FUNC_STATUS_ERROR,
-       BT_PLUGIN_FIND_ALL_FROM_FILE_STATUS_LOADING_ERROR       = __BT_FUNC_STATUS_LOADING_ERROR,
        BT_PLUGIN_FIND_ALL_FROM_FILE_STATUS_MEMORY_ERROR        = __BT_FUNC_STATUS_MEMORY_ERROR,
 } bt_plugin_find_all_from_file_status;
 
        BT_PLUGIN_FIND_ALL_FROM_FILE_STATUS_MEMORY_ERROR        = __BT_FUNC_STATUS_MEMORY_ERROR,
 } bt_plugin_find_all_from_file_status;
 
@@ -64,7 +62,6 @@ typedef enum bt_plugin_find_all_from_dir_status {
        BT_PLUGIN_FIND_ALL_FROM_DIR_STATUS_OK                   = __BT_FUNC_STATUS_OK,
        BT_PLUGIN_FIND_ALL_FROM_DIR_STATUS_NOT_FOUND            = __BT_FUNC_STATUS_NOT_FOUND,
        BT_PLUGIN_FIND_ALL_FROM_DIR_STATUS_ERROR                = __BT_FUNC_STATUS_ERROR,
        BT_PLUGIN_FIND_ALL_FROM_DIR_STATUS_OK                   = __BT_FUNC_STATUS_OK,
        BT_PLUGIN_FIND_ALL_FROM_DIR_STATUS_NOT_FOUND            = __BT_FUNC_STATUS_NOT_FOUND,
        BT_PLUGIN_FIND_ALL_FROM_DIR_STATUS_ERROR                = __BT_FUNC_STATUS_ERROR,
-       BT_PLUGIN_FIND_ALL_FROM_DIR_STATUS_LOADING_ERROR        = __BT_FUNC_STATUS_LOADING_ERROR,
        BT_PLUGIN_FIND_ALL_FROM_DIR_STATUS_MEMORY_ERROR         = __BT_FUNC_STATUS_MEMORY_ERROR,
 } bt_plugin_find_all_from_dir_status;
 
        BT_PLUGIN_FIND_ALL_FROM_DIR_STATUS_MEMORY_ERROR         = __BT_FUNC_STATUS_MEMORY_ERROR,
 } bt_plugin_find_all_from_dir_status;
 
@@ -76,7 +73,6 @@ typedef enum bt_plugin_find_all_from_static_status {
        BT_PLUGIN_FIND_ALL_FROM_STATIC_STATUS_OK                        = __BT_FUNC_STATUS_OK,
        BT_PLUGIN_FIND_ALL_FROM_STATIC_STATUS_NOT_FOUND                 = __BT_FUNC_STATUS_NOT_FOUND,
        BT_PLUGIN_FIND_ALL_FROM_STATIC_STATUS_ERROR                     = __BT_FUNC_STATUS_ERROR,
        BT_PLUGIN_FIND_ALL_FROM_STATIC_STATUS_OK                        = __BT_FUNC_STATUS_OK,
        BT_PLUGIN_FIND_ALL_FROM_STATIC_STATUS_NOT_FOUND                 = __BT_FUNC_STATUS_NOT_FOUND,
        BT_PLUGIN_FIND_ALL_FROM_STATIC_STATUS_ERROR                     = __BT_FUNC_STATUS_ERROR,
-       BT_PLUGIN_FIND_ALL_FROM_STATIC_STATUS_LOADING_ERROR             = __BT_FUNC_STATUS_LOADING_ERROR,
        BT_PLUGIN_FIND_ALL_FROM_STATIC_STATUS_MEMORY_ERROR              = __BT_FUNC_STATUS_MEMORY_ERROR,
 } bt_plugin_find_all_from_static_status;
 
        BT_PLUGIN_FIND_ALL_FROM_STATIC_STATUS_MEMORY_ERROR              = __BT_FUNC_STATUS_MEMORY_ERROR,
 } bt_plugin_find_all_from_static_status;
 
index 4ceb37d1c671f0a74bbd8ee85c1d0dddb8b9ef9a..bf36b459517055fe8a68526eca8db84fd0881d5b 100644 (file)
@@ -105,10 +105,6 @@ class Canceled(Exception):
     pass
 
 
     pass
 
 
-class _LoadingError(_Error):
-    pass
-
-
 class _ListenerHandle:
     def __init__(self, listener_id, obj):
         self._listener_id = listener_id
 class _ListenerHandle:
     def __init__(self, listener_id, obj):
         self._listener_id = listener_id
index bb8d1b322cfc9ba598938422f0253afc98fe13f4..5cbbb89b2ed55983aceaa7bb8100552c3294e3e0 100644 (file)
@@ -156,11 +156,6 @@ def _handle_func_status(status, msg=None):
             raise bt2.Canceled
         else:
             raise bt2.Canceled(msg)
             raise bt2.Canceled
         else:
             raise bt2.Canceled(msg)
-    elif status == native_bt.__BT_FUNC_STATUS_LOADING_ERROR:
-        if msg is None:
-            raise bt2._LoadingError
-        else:
-            raise bt2._LoadingError(msg)
     elif status == native_bt.__BT_FUNC_STATUS_OVERFLOW:
         if msg is None:
             raise bt2.OverflowError
     elif status == native_bt.__BT_FUNC_STATUS_OVERFLOW:
         if msg is None:
             raise bt2.OverflowError
index e4c775e5c473927ae679579f5718381ea8449cb4..5849101b578aaf6d59cccb83de0746df04ab8913 100644 (file)
@@ -609,8 +609,6 @@ const char *bt_common_func_status_string(int status)
                return "INVALID_OBJECT";
        case __BT_FUNC_STATUS_MEMORY_ERROR:
                return "MEMORY_ERROR";
                return "INVALID_OBJECT";
        case __BT_FUNC_STATUS_MEMORY_ERROR:
                return "MEMORY_ERROR";
-       case __BT_FUNC_STATUS_LOADING_ERROR:
-               return "LOADING_ERROR";
        case __BT_FUNC_STATUS_ERROR:
                return "ERROR";
        case __BT_FUNC_STATUS_OK:
        case __BT_FUNC_STATUS_ERROR:
                return "ERROR";
        case __BT_FUNC_STATUS_OK:
index c1ed154db25c646c10218839527f1726d8ec1ef3..64ed19bc614be73580a803b13236dc8cba6b0295 100644 (file)
@@ -34,7 +34,6 @@
 #define BT_FUNC_STATUS_INVALID_PARAMS  __BT_FUNC_STATUS_INVALID_PARAMS
 #define BT_FUNC_STATUS_INVALID_OBJECT  __BT_FUNC_STATUS_INVALID_OBJECT
 #define BT_FUNC_STATUS_MEMORY_ERROR    __BT_FUNC_STATUS_MEMORY_ERROR
 #define BT_FUNC_STATUS_INVALID_PARAMS  __BT_FUNC_STATUS_INVALID_PARAMS
 #define BT_FUNC_STATUS_INVALID_OBJECT  __BT_FUNC_STATUS_INVALID_OBJECT
 #define BT_FUNC_STATUS_MEMORY_ERROR    __BT_FUNC_STATUS_MEMORY_ERROR
-#define BT_FUNC_STATUS_LOADING_ERROR   __BT_FUNC_STATUS_LOADING_ERROR
 #define BT_FUNC_STATUS_ERROR           __BT_FUNC_STATUS_ERROR
 #define BT_FUNC_STATUS_OK              __BT_FUNC_STATUS_OK
 #define BT_FUNC_STATUS_END             __BT_FUNC_STATUS_END
 #define BT_FUNC_STATUS_ERROR           __BT_FUNC_STATUS_ERROR
 #define BT_FUNC_STATUS_OK              __BT_FUNC_STATUS_OK
 #define BT_FUNC_STATUS_END             __BT_FUNC_STATUS_END
index b9ef8005770c5ca92e060fed50dd045fcf877724..ae7955986f6b9cba1d4198127a790f2433d07d9a 100644 (file)
@@ -406,7 +406,7 @@ int bt_plugin_so_init(struct bt_plugin *plugin,
                                                NULL,
                                        descriptor->name, cur_attr->type_name,
                                        cur_attr->type);
                                                NULL,
                                        descriptor->name, cur_attr->type_name,
                                        cur_attr->type);
-                               status = BT_FUNC_STATUS_LOADING_ERROR;
+                               status = BT_FUNC_STATUS_ERROR;
                                goto end;
                        } else {
                                BT_LIB_LOGW(
                                goto end;
                        } else {
                                BT_LIB_LOGW(
@@ -683,7 +683,7 @@ int bt_plugin_so_init(struct bt_plugin *plugin,
                                                        cur_cc_descr_attr->comp_class_descriptor->type),
                                                cur_cc_descr_attr->type_name,
                                                cur_cc_descr_attr->type);
                                                        cur_cc_descr_attr->comp_class_descriptor->type),
                                                cur_cc_descr_attr->type_name,
                                                cur_cc_descr_attr->type);
-                                       status = BT_FUNC_STATUS_LOADING_ERROR;
+                                       status = BT_FUNC_STATUS_ERROR;
                                        goto end;
                                } else {
                                        BT_LIB_LOGW(
                                        goto end;
                                } else {
                                        BT_LIB_LOGW(
@@ -796,7 +796,7 @@ int bt_plugin_so_init(struct bt_plugin *plugin,
                                        descriptor->name,
                                        cc_full_descr->descriptor->name,
                                        cc_full_descr->descriptor->type);
                                        descriptor->name,
                                        cc_full_descr->descriptor->name,
                                        cc_full_descr->descriptor->type);
-                               status = BT_FUNC_STATUS_LOADING_ERROR;
+                               status = BT_FUNC_STATUS_ERROR;
                                goto end;
                        } else {
                                BT_LIB_LOGW(
                                goto end;
                        } else {
                                BT_LIB_LOGW(
@@ -1332,7 +1332,7 @@ int bt_plugin_so_create_all_from_sections(
                                BT_LIB_LOGW_APPEND_CAUSE(
                                        "Unknown ABI major version: abi-major=%d",
                                                descriptor->major);
                                BT_LIB_LOGW_APPEND_CAUSE(
                                        "Unknown ABI major version: abi-major=%d",
                                                descriptor->major);
-                               status = BT_FUNC_STATUS_LOADING_ERROR;
+                               status = BT_FUNC_STATUS_ERROR;
                                goto error;
                        } else {
                                BT_LIB_LOGW(
                                goto error;
                        } else {
                                BT_LIB_LOGW(
@@ -1522,7 +1522,7 @@ int bt_plugin_so_create_all_from_file(const char *path,
                                "Cannot resolve plugin symbol: path=\"%s\", "
                                "symbol=\"%s\"", path,
                                "__bt_get_end_section_plugin_descriptors");
                                "Cannot resolve plugin symbol: path=\"%s\", "
                                "symbol=\"%s\"", path,
                                "__bt_get_end_section_plugin_descriptors");
-                       status = BT_FUNC_STATUS_LOADING_ERROR;
+                       status = BT_FUNC_STATUS_ERROR;
                } else {
                        BT_LIB_LOGW(
                                "Cannot resolve plugin symbol: path=\"%s\", "
                } else {
                        BT_LIB_LOGW(
                                "Cannot resolve plugin symbol: path=\"%s\", "
@@ -1562,7 +1562,7 @@ int bt_plugin_so_create_all_from_file(const char *path,
                                path, "__bt_get_begin_section_plugin_descriptor_attributes",
                                "__bt_get_end_section_plugin_descriptor_attributes",
                                attrs_begin, attrs_end);
                                path, "__bt_get_begin_section_plugin_descriptor_attributes",
                                "__bt_get_end_section_plugin_descriptor_attributes",
                                attrs_begin, attrs_end);
-                       status = BT_FUNC_STATUS_LOADING_ERROR;
+                       status = BT_FUNC_STATUS_ERROR;
                } else {
                        BT_LIB_LOGW(
                                "Found section start or end symbol, but not both: "
                } else {
                        BT_LIB_LOGW(
                                "Found section start or end symbol, but not both: "
@@ -1606,7 +1606,7 @@ int bt_plugin_so_create_all_from_file(const char *path,
                                path, "__bt_get_begin_section_component_class_descriptors",
                                "__bt_get_end_section_component_class_descriptors",
                                cc_descriptors_begin, cc_descriptors_end);
                                path, "__bt_get_begin_section_component_class_descriptors",
                                "__bt_get_end_section_component_class_descriptors",
                                cc_descriptors_begin, cc_descriptors_end);
-                       status = BT_FUNC_STATUS_LOADING_ERROR;
+                       status = BT_FUNC_STATUS_ERROR;
                } else {
                        BT_LIB_LOGW(
                                "Found section start or end symbol, but not both: "
                } else {
                        BT_LIB_LOGW(
                                "Found section start or end symbol, but not both: "
@@ -1650,7 +1650,7 @@ int bt_plugin_so_create_all_from_file(const char *path,
                                path, "__bt_get_begin_section_component_class_descriptor_attributes",
                                "__bt_get_end_section_component_class_descriptor_attributes",
                                cc_descr_attrs_begin, cc_descr_attrs_end);
                                path, "__bt_get_begin_section_component_class_descriptor_attributes",
                                "__bt_get_end_section_component_class_descriptor_attributes",
                                cc_descr_attrs_begin, cc_descr_attrs_end);
-                       status = BT_FUNC_STATUS_LOADING_ERROR;
+                       status = BT_FUNC_STATUS_ERROR;
                } else {
                        BT_LIB_LOGW(
                                "Found section start or end symbol, but not both: "
                } else {
                        BT_LIB_LOGW(
                                "Found section start or end symbol, but not both: "
index 765035e2df60dcde37713ffb72c2c699ba3e4b81..43a4cf04250a5c2139b27696665b0604c5585204 100644 (file)
@@ -250,7 +250,7 @@ int bt_plugin_from_python_plugin_info(PyObject *plugin_info,
                        BT_LIB_LOGW_APPEND_CAUSE(
                                "Cannot find `name` attribute in Python plugin info object: "
                                "py-plugin-info-addr=%p", plugin_info);
                        BT_LIB_LOGW_APPEND_CAUSE(
                                "Cannot find `name` attribute in Python plugin info object: "
                                "py-plugin-info-addr=%p", plugin_info);
-                       status = BT_FUNC_STATUS_LOADING_ERROR;
+                       status = BT_FUNC_STATUS_ERROR;
                } else {
                        BT_LIB_LOGW(
                                "Cannot find `name` attribute in Python plugin info object: "
                } else {
                        BT_LIB_LOGW(
                                "Cannot find `name` attribute in Python plugin info object: "
@@ -268,7 +268,7 @@ int bt_plugin_from_python_plugin_info(PyObject *plugin_info,
                        BT_LIB_LOGW_APPEND_CAUSE(
                                "Cannot find `author` attribute in Python plugin info object: "
                                "py-plugin-info-addr=%p", plugin_info);
                        BT_LIB_LOGW_APPEND_CAUSE(
                                "Cannot find `author` attribute in Python plugin info object: "
                                "py-plugin-info-addr=%p", plugin_info);
-                       status = BT_FUNC_STATUS_LOADING_ERROR;
+                       status = BT_FUNC_STATUS_ERROR;
                } else {
                        BT_LIB_LOGW(
                                "Cannot find `author` attribute in Python plugin info object: "
                } else {
                        BT_LIB_LOGW(
                                "Cannot find `author` attribute in Python plugin info object: "
@@ -286,7 +286,7 @@ int bt_plugin_from_python_plugin_info(PyObject *plugin_info,
                        BT_LIB_LOGW_APPEND_CAUSE(
                                "Cannot find `description` attribute in Python plugin info object: "
                                "py-plugin-info-addr=%p", plugin_info);
                        BT_LIB_LOGW_APPEND_CAUSE(
                                "Cannot find `description` attribute in Python plugin info object: "
                                "py-plugin-info-addr=%p", plugin_info);
-                       status = BT_FUNC_STATUS_LOADING_ERROR;
+                       status = BT_FUNC_STATUS_ERROR;
                } else {
                        BT_LIB_LOGW(
                                "Cannot find `description` attribute in Python plugin info object: "
                } else {
                        BT_LIB_LOGW(
                                "Cannot find `description` attribute in Python plugin info object: "
@@ -304,7 +304,7 @@ int bt_plugin_from_python_plugin_info(PyObject *plugin_info,
                        BT_LIB_LOGW_APPEND_CAUSE(
                                "Cannot find `license` attribute in Python plugin info object: "
                                "py-plugin-info-addr=%p", plugin_info);
                        BT_LIB_LOGW_APPEND_CAUSE(
                                "Cannot find `license` attribute in Python plugin info object: "
                                "py-plugin-info-addr=%p", plugin_info);
-                       status = BT_FUNC_STATUS_LOADING_ERROR;
+                       status = BT_FUNC_STATUS_ERROR;
                } else {
                        BT_LIB_LOGW(
                                "Cannot find `license` attribute in Python plugin info object: "
                } else {
                        BT_LIB_LOGW(
                                "Cannot find `license` attribute in Python plugin info object: "
@@ -322,7 +322,7 @@ int bt_plugin_from_python_plugin_info(PyObject *plugin_info,
                        BT_LIB_LOGW_APPEND_CAUSE(
                                "Cannot find `version` attribute in Python plugin info object: "
                                "py-plugin-info-addr=%p", plugin_info);
                        BT_LIB_LOGW_APPEND_CAUSE(
                                "Cannot find `version` attribute in Python plugin info object: "
                                "py-plugin-info-addr=%p", plugin_info);
-                       status = BT_FUNC_STATUS_LOADING_ERROR;
+                       status = BT_FUNC_STATUS_ERROR;
                } else {
                        BT_LIB_LOGW(
                                "Cannot find `version` attribute in Python plugin info object: "
                } else {
                        BT_LIB_LOGW(
                                "Cannot find `version` attribute in Python plugin info object: "
@@ -341,7 +341,7 @@ int bt_plugin_from_python_plugin_info(PyObject *plugin_info,
                        BT_LIB_LOGW_APPEND_CAUSE(
                                "Cannot find `comp_class_addrs` attribute in Python plugin info object: "
                                "py-plugin-info-addr=%p", plugin_info);
                        BT_LIB_LOGW_APPEND_CAUSE(
                                "Cannot find `comp_class_addrs` attribute in Python plugin info object: "
                                "py-plugin-info-addr=%p", plugin_info);
-                       status = BT_FUNC_STATUS_LOADING_ERROR;
+                       status = BT_FUNC_STATUS_ERROR;
                } else {
                        BT_LIB_LOGW(
                                "Cannot find `comp_class_addrs` attribute in Python plugin info object: "
                } else {
                        BT_LIB_LOGW(
                                "Cannot find `comp_class_addrs` attribute in Python plugin info object: "
@@ -360,7 +360,7 @@ int bt_plugin_from_python_plugin_info(PyObject *plugin_info,
                                BT_LIB_LOGW_APPEND_CAUSE(
                                        "Cannot decode Python plugin name string: "
                                        "py-plugin-info-addr=%p", plugin_info);
                                BT_LIB_LOGW_APPEND_CAUSE(
                                        "Cannot decode Python plugin name string: "
                                        "py-plugin-info-addr=%p", plugin_info);
-                               status = BT_FUNC_STATUS_LOADING_ERROR;
+                               status = BT_FUNC_STATUS_ERROR;
                        } else {
                                BT_LIB_LOGW(
                                        "Cannot decode Python plugin name string: "
                        } else {
                                BT_LIB_LOGW(
                                        "Cannot decode Python plugin name string: "
@@ -377,7 +377,7 @@ int bt_plugin_from_python_plugin_info(PyObject *plugin_info,
                        BT_LIB_LOGW_APPEND_CAUSE(
                                "Plugin name is not a string: "
                                "py-plugin-info-addr=%p", plugin_info);
                        BT_LIB_LOGW_APPEND_CAUSE(
                                "Plugin name is not a string: "
                                "py-plugin-info-addr=%p", plugin_info);
-                       status = BT_FUNC_STATUS_LOADING_ERROR;
+                       status = BT_FUNC_STATUS_ERROR;
                } else {
                        BT_LIB_LOGW(
                                "Plugin name is not a string: "
                } else {
                        BT_LIB_LOGW(
                                "Plugin name is not a string: "
@@ -396,7 +396,7 @@ int bt_plugin_from_python_plugin_info(PyObject *plugin_info,
                                BT_LIB_LOGW_APPEND_CAUSE(
                                        "Cannot decode Python plugin author string: "
                                        "py-plugin-info-addr=%p", plugin_info);
                                BT_LIB_LOGW_APPEND_CAUSE(
                                        "Cannot decode Python plugin author string: "
                                        "py-plugin-info-addr=%p", plugin_info);
-                               status = BT_FUNC_STATUS_LOADING_ERROR;
+                               status = BT_FUNC_STATUS_ERROR;
                        } else {
                                BT_LIB_LOGW(
                                        "Cannot decode Python plugin author string: "
                        } else {
                                BT_LIB_LOGW(
                                        "Cannot decode Python plugin author string: "
@@ -416,7 +416,7 @@ int bt_plugin_from_python_plugin_info(PyObject *plugin_info,
                                BT_LIB_LOGW_APPEND_CAUSE(
                                        "Cannot decode Python plugin description string: "
                                        "py-plugin-info-addr=%p", plugin_info);
                                BT_LIB_LOGW_APPEND_CAUSE(
                                        "Cannot decode Python plugin description string: "
                                        "py-plugin-info-addr=%p", plugin_info);
-                               status = BT_FUNC_STATUS_LOADING_ERROR;
+                               status = BT_FUNC_STATUS_ERROR;
                        } else {
                                BT_LIB_LOGW(
                                        "Cannot decode Python plugin description string: "
                        } else {
                                BT_LIB_LOGW(
                                        "Cannot decode Python plugin description string: "
@@ -436,7 +436,7 @@ int bt_plugin_from_python_plugin_info(PyObject *plugin_info,
                                BT_LIB_LOGW_APPEND_CAUSE(
                                        "Cannot decode Python plugin license string: "
                                        "py-plugin-info-addr=%p", plugin_info);
                                BT_LIB_LOGW_APPEND_CAUSE(
                                        "Cannot decode Python plugin license string: "
                                        "py-plugin-info-addr=%p", plugin_info);
-                               status = BT_FUNC_STATUS_LOADING_ERROR;
+                               status = BT_FUNC_STATUS_ERROR;
                        } else {
                                BT_LIB_LOGW(
                                        "Cannot decode Python plugin license string: "
                        } else {
                                BT_LIB_LOGW(
                                        "Cannot decode Python plugin license string: "
@@ -477,7 +477,7 @@ int bt_plugin_from_python_plugin_info(PyObject *plugin_info,
                                        BT_LIB_LOGW_APPEND_CAUSE(
                                                "Invalid Python plugin version format: "
                                                "py-plugin-info-addr=%p", plugin_info);
                                        BT_LIB_LOGW_APPEND_CAUSE(
                                                "Invalid Python plugin version format: "
                                                "py-plugin-info-addr=%p", plugin_info);
-                                       status = BT_FUNC_STATUS_LOADING_ERROR;
+                                       status = BT_FUNC_STATUS_ERROR;
                                } else {
                                        BT_LIB_LOGW(
                                                "Invalid Python plugin version format: "
                                } else {
                                        BT_LIB_LOGW(
                                                "Invalid Python plugin version format: "
@@ -502,7 +502,7 @@ int bt_plugin_from_python_plugin_info(PyObject *plugin_info,
                                                BT_LIB_LOGW_APPEND_CAUSE(
                                                        "Cannot decode Python plugin version's extra string: "
                                                        "py-plugin-info-addr=%p", plugin_info);
                                                BT_LIB_LOGW_APPEND_CAUSE(
                                                        "Cannot decode Python plugin version's extra string: "
                                                        "py-plugin-info-addr=%p", plugin_info);
-                                               status = BT_FUNC_STATUS_LOADING_ERROR;
+                                               status = BT_FUNC_STATUS_ERROR;
                                        } else {
                                                BT_LIB_LOGW(
                                                        "Cannot decode Python plugin version's extra string: "
                                        } else {
                                                BT_LIB_LOGW(
                                                        "Cannot decode Python plugin version's extra string: "
@@ -558,7 +558,7 @@ int bt_plugin_from_python_plugin_info(PyObject *plugin_info,
                                                "Component class address is not an integer in Python plugin info object: "
                                                "py-plugin-info-addr=%p, index=%zu",
                                                plugin_info, i);
                                                "Component class address is not an integer in Python plugin info object: "
                                                "py-plugin-info-addr=%p, index=%zu",
                                                plugin_info, i);
-                                       status = BT_FUNC_STATUS_LOADING_ERROR;
+                                       status = BT_FUNC_STATUS_ERROR;
                                } else {
                                        BT_LIB_LOGW(
                                                "Component class address is not an integer in Python plugin info object: "
                                } else {
                                        BT_LIB_LOGW(
                                                "Component class address is not an integer in Python plugin info object: "
@@ -700,7 +700,7 @@ int bt_plugin_python_create_all_from_file(const char *path,
                        append_python_traceback_error_cause();
                        BT_LIB_LOGW_APPEND_CAUSE(
                                "Cannot load Python plugin: path=\"%s\"", path);
                        append_python_traceback_error_cause();
                        BT_LIB_LOGW_APPEND_CAUSE(
                                "Cannot load Python plugin: path=\"%s\"", path);
-                       status = BT_FUNC_STATUS_LOADING_ERROR;
+                       status = BT_FUNC_STATUS_ERROR;
                } else {
                        BT_LIB_LOGW(
                                "Cannot load Python plugin: path=\"%s\"", path);
                } else {
                        BT_LIB_LOGW(
                                "Cannot load Python plugin: path=\"%s\"", path);
This page took 0.031838 seconds and 4 git commands to generate.