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 = \
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));
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);
* 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,
* 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