From 20d88a6dea656b1ee4bc18320f49800c6a435f59 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 24 Aug 2014 19:17:33 +0200 Subject: input: change verbosity of some message levels For --input-test, print messages on terminal by default. Raise message level for enabling input sections, because the OSC makes this very extremely annoying. --- input/input.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'input') diff --git a/input/input.c b/input/input.c index 18ef20b71e..b82c1e4850 100644 --- a/input/input.c +++ b/input/input.c @@ -365,9 +365,10 @@ static mp_cmd_t *handle_test(struct input_ctx *ictx, int code) for (int i = 0; i < bs->num_binds; i++) { if (bs->binds[i].num_keys && bs->binds[i].keys[0] == code) { count++; + if (count > 1) + msg = talloc_asprintf_append(msg, "\n"); msg = talloc_asprintf_append(msg, "%d. ", count); append_bind_info(ictx, &msg, &bs->binds[i]); - msg = talloc_asprintf_append(msg, "\n"); } } } @@ -375,7 +376,7 @@ static mp_cmd_t *handle_test(struct input_ctx *ictx, int code) if (!count) msg = talloc_asprintf_append(msg, "(nothing)"); - MP_VERBOSE(ictx, "%s\n", msg); + MP_INFO(ictx, "%s\n", msg); const char *args[] = {"show_text", msg, NULL}; mp_cmd_t *res = mp_input_parse_cmd_strv(ictx->log, MP_ON_OSD_MSG, args, ""); talloc_free(msg); @@ -1240,7 +1241,7 @@ void mp_input_enable_section(struct input_ctx *ictx, char *name, int flags) mp_input_disable_section(ictx, name); - MP_VERBOSE(ictx, "enable section '%s'\n", name); + MP_DBG(ictx, "enable section '%s'\n", name); if (ictx->num_active_sections < MAX_ACTIVE_SECTIONS) { int top = ictx->num_active_sections; -- cgit v1.2.3