X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Fnative_bt_error.i.h;h=78eeb28ae5e9d39a8c1aecb724e0544bf8e5e61e;hb=71436ae48cd2fcfcc59ae9a7da909e29a191145c;hp=053941517829a807e59f6a5a9260b5a49a85c101;hpb=78c888d139a40b58b10a2c92829cbb2c814ad766;p=babeltrace.git diff --git a/src/bindings/python/bt2/bt2/native_bt_error.i.h b/src/bindings/python/bt2/bt2/native_bt_error.i.h index 05394151..78eeb28a 100644 --- a/src/bindings/python/bt2/bt2/native_bt_error.i.h +++ b/src/bindings/python/bt2/bt2/native_bt_error.i.h @@ -13,7 +13,8 @@ PyObject *bt_bt2_format_bt_error_cause(const bt_error_cause *error_cause) PyObject *py_error_cause_str = NULL; error_cause_str = format_bt_error_cause(error_cause, 80, - bt_python_bindings_bt2_log_level, BT_COMMON_COLOR_WHEN_NEVER); + (bt_logging_level) bt_python_bindings_bt2_log_level, + BT_COMMON_COLOR_WHEN_NEVER); BT_ASSERT(error_cause_str); py_error_cause_str = PyString_FromString(error_cause_str); @@ -30,7 +31,8 @@ PyObject *bt_bt2_format_bt_error(const bt_error *error) PyObject *py_error_str = NULL; error_str = format_bt_error(error, 80, - bt_python_bindings_bt2_log_level, BT_COMMON_COLOR_WHEN_NEVER); + (bt_logging_level) bt_python_bindings_bt2_log_level, + BT_COMMON_COLOR_WHEN_NEVER); BT_ASSERT(error_str); py_error_str = PyString_FromString(error_str);