From f03cdb2bdd377013c66f7ed9b2533d7d90f33fb8 Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Thu, 15 Aug 2019 20:38:15 -0400 Subject: [PATCH] lib: rename `BABELTRACE_DISABLE_PYTHON_PLUGINS` -> `LIBBABELTRACE2_...` This is typically only used for debugging, so change the name to `LIBBABELTRACE2_DISABLE_PYTHON_PLUGINS`. Signed-off-by: Philippe Proulx Change-Id: I00f54f2a5c1d9abf9f0487ea6d8cd927037f0c0c Reviewed-on: https://review.lttng.org/c/babeltrace/+/1947 --- .../python-plugin-provider.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/python-plugin-provider/python-plugin-provider.c b/src/python-plugin-provider/python-plugin-provider.c index 43a4cf04..5bb4e33b 100644 --- a/src/python-plugin-provider/python-plugin-provider.c +++ b/src/python-plugin-provider/python-plugin-provider.c @@ -145,12 +145,14 @@ int init_python(void) /* * User can disable Python plugin support with the - * BABELTRACE_DISABLE_PYTHON_PLUGINS environment variable set to - * 1. + * `LIBBABELTRACE2_DISABLE_PYTHON_PLUGINS` environment variable + * set to 1. */ - dis_python_env = getenv("BABELTRACE_DISABLE_PYTHON_PLUGINS"); + dis_python_env = getenv("LIBBABELTRACE2_DISABLE_PYTHON_PLUGINS"); if (dis_python_env && strcmp(dis_python_env, "1") == 0) { - BT_LOGI_STR("Python plugin support is disabled because `BABELTRACE_DISABLE_PYTHON_PLUGINS=1`."); + BT_LOGI_STR("Python plugin support is disabled because the " + "`LIBBABELTRACE2_DISABLE_PYTHON_PLUGINS` environment " + "variable is set to `1`."); python_state = PYTHON_STATE_WONT_INITIALIZE; ret = BT_FUNC_STATUS_NOT_FOUND; goto end; @@ -637,7 +639,9 @@ int bt_plugin_python_create_all_from_file(const char *path, * Python plugins are disabled, so it's simply not * found. */ - BT_LOGI_STR("Python plugin support was disabled previously because `BABELTRACE_DISABLE_PYTHON_PLUGINS=1`."); + BT_LOGI_STR("Python plugin support was disabled previously " + "because the `LIBBABELTRACE2_DISABLE_PYTHON_PLUGINS` " + "environment variable is set to `1`."); status = BT_FUNC_STATUS_NOT_FOUND; goto error; } -- 2.34.1