From eba5d025d2ba682de358b792dd15e80529d6a0f1 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 21 Dec 2013 21:41:18 +0100 Subject: msg: convert defines to enum Also get rid of MSGL_HINT and the many MSGL_DBG* levels. --- input/input.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'input') diff --git a/input/input.c b/input/input.c index fc3e282287..751651f4bf 100644 --- a/input/input.c +++ b/input/input.c @@ -1455,7 +1455,7 @@ static mp_cmd_t *get_cmd_from_keys(struct input_ctx *ictx, char *force_section, int msgl = MSGL_WARN; if (n == 1 && (keys[0] == MP_KEY_MOUSE_MOVE || keys[0] == MP_KEY_MOUSE_LEAVE)) - msgl = MSGL_DBG2; + msgl = MSGL_DEBUG; char *key_buf = get_key_combo_name(keys, n); MP_MSG(ictx, msgl, "No bind found for key '%s'.\n", key_buf); talloc_free(key_buf); @@ -1464,7 +1464,7 @@ static mp_cmd_t *get_cmd_from_keys(struct input_ctx *ictx, char *force_section, mp_cmd_t *ret = mp_input_parse_cmd(ictx, bstr0(cmd->cmd), cmd->location); if (ret) { ret->input_section = cmd->owner->section; - if (mp_msg_test_log(ictx->log, MSGL_DBG2)) { + if (mp_msg_test_log(ictx->log, MSGL_DEBUG)) { char *keyname = get_key_combo_name(keys, n); MP_DBG(ictx, "key '%s' -> '%s' in '%s'\n", keyname, cmd->cmd, ret->input_section); @@ -1578,7 +1578,7 @@ static void interpret_key(struct input_ctx *ictx, int code, double scale) if (unmod >= 32 && unmod < MP_KEY_BASE) code &= ~MP_KEY_MODIFIER_SHIFT; - if (mp_msg_test_log(ictx->log, MSGL_DBG2)) { + if (mp_msg_test_log(ictx->log, MSGL_DEBUG)) { int noflags = code & ~(MP_KEY_STATE_DOWN | MP_KEY_STATE_UP); char *key = get_key_name(noflags, NULL); MP_DBG(ictx, "key code=%#x '%s'%s%s\n", -- cgit v1.2.3