summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-12-21 21:41:18 +0100
committerwm4 <wm4@nowhere>2013-12-21 22:13:04 +0100
commiteba5d025d2ba682de358b792dd15e80529d6a0f1 (patch)
treeb4617680bce71ff4a44f113e967b3b5bbc651520 /input
parent3fa584e2800fff5850e67a4018597cb707d9cc0b (diff)
downloadmpv-eba5d025d2ba682de358b792dd15e80529d6a0f1.tar.bz2
mpv-eba5d025d2ba682de358b792dd15e80529d6a0f1.tar.xz
msg: convert defines to enum
Also get rid of MSGL_HINT and the many MSGL_DBG* levels.
Diffstat (limited to 'input')
-rw-r--r--input/input.c6
1 files changed, 3 insertions, 3 deletions
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",