changeset 25406:73d7d7898ee4

Display parsed keycode in verbose output.
author ulion
date Mon, 17 Dec 2007 14:53:38 +0000
parents 9e753bf92487
children d97159ca0e17
files libmenu/menu.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmenu/menu.c	Mon Dec 17 09:56:12 2007 +0000
+++ b/libmenu/menu.c	Mon Dec 17 14:53:38 2007 +0000
@@ -146,8 +146,8 @@
           cmd = asx_get_attrib("cmd",attribs);
           if (key && (keycode = mp_input_get_key_from_name(key)) >= 0) {
             mp_msg(MSGT_GLOBAL,MSGL_V,
-                   "[libmenu] got keybinding element %s %s=>[%s].\n",
-                   element, key, cmd ? cmd : "");
+                   "[libmenu] got keybinding element %d %s=>[%s].\n",
+                   keycode, key, cmd ? cmd : "");
             bindings->bindings = realloc(bindings->bindings,
                                    (bindings->binding_num+1)*sizeof(key_cmd_t));
             bindings->bindings[bindings->binding_num].key = keycode;