summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am4
-rw-r--r--src/context.c4
-rw-r--r--test/log.c4
-rw-r--r--xkbcommon/xkbcommon.h8
4 files changed, 10 insertions, 10 deletions
diff --git a/Makefile.am b/Makefile.am
index 26646fb..98bc307 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -135,8 +135,8 @@ libtest_la_SOURCES = \
test/common.c
AM_TESTS_ENVIRONMENT = \
- XKB_LOG=debug; export XKB_LOG; \
- XKB_VERBOSITY=10; export XKB_VERBOSITY; \
+ XKB_LOG_LEVEL=debug; export XKB_LOG_LEVEL; \
+ XKB_LOG_VERBOSITY=10; export XKB_LOG_VERBOSITY; \
$(XORG_MALLOC_DEBUG_ENV)
TESTS = \
diff --git a/src/context.c b/src/context.c
index b3e2f23..bad4da0 100644
--- a/src/context.c
+++ b/src/context.c
@@ -294,11 +294,11 @@ xkb_context_new(enum xkb_context_flags flags)
ctx->log_verbosity = 0;
/* Environment overwrites defaults. */
- env = getenv("XKB_LOG");
+ env = getenv("XKB_LOG_LEVEL");
if (env)
xkb_context_set_log_level(ctx, log_level(env));
- env = getenv("XKB_VERBOSITY");
+ env = getenv("XKB_LOG_VERBOSITY");
if (env)
xkb_context_set_log_verbosity(ctx, log_verbosity(env));
diff --git a/test/log.c b/test/log.c
index ac32867..08de3d8 100644
--- a/test/log.c
+++ b/test/log.c
@@ -70,9 +70,9 @@ main(void)
struct xkb_context *ctx;
int ret;
- ret = setenv("XKB_LOG", "warn", 1);
+ ret = setenv("XKB_LOG_LEVEL", "warn", 1);
assert(ret == 0);
- ret = setenv("XKB_VERBOSITY", "5", 1);
+ ret = setenv("XKB_LOG_VERBOSITY", "5", 1);
assert(ret == 0);
ctx = xkb_context_new(0);
assert(ctx);
diff --git a/xkbcommon/xkbcommon.h b/xkbcommon/xkbcommon.h
index c807c63..2cbf2cc 100644
--- a/xkbcommon/xkbcommon.h
+++ b/xkbcommon/xkbcommon.h
@@ -399,8 +399,8 @@ enum xkb_log_level {
* and below will be logged.
*
* The default level is XKB_LOG_LEVEL_ERROR. The environment variable
- * XKB_LOG, if set in the time the context was created, overrides the default
- * value. It may be specified as a level number or name.
+ * XKB_LOG_LEVEL, if set in the time the context was created, overrides the
+ * default value. It may be specified as a level number or name.
*/
void
xkb_context_set_log_level(struct xkb_context *context,
@@ -420,8 +420,8 @@ xkb_context_get_log_level(struct xkb_context *context);
* ordinary users of the library. The verbosity may be increased if more
* information is desired (e.g. when developing a new keymap).
*
- * The default verbosity is 0. The environment variable XKB_VERBOSITY, if
- * set in the time the context was created, overrdies the default value.
+ * The default verbosity is 0. The environment variable XKB_LOG_VERBOSITY,
+ * if set in the time the context was created, overrides the default value.
*
* @param context The context in which to use the set verbosity.
* @param verbosity The verbosity to use. Currently used values are