From 0a7a70f1989ac79ac1d3352af3d37b85b7734977 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 17 Oct 2014 00:52:42 +0200 Subject: input: don't add weird padding when formatting keycode No idea what this was for. It has no purpose and looks weird. --- input/keycodes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'input') diff --git a/input/keycodes.c b/input/keycodes.c index a92b6ed0c8..5108a8beae 100644 --- a/input/keycodes.c +++ b/input/keycodes.c @@ -274,7 +274,7 @@ static void mp_input_append_key_name(bstr *buf, int key) } // Print the hex key code - bstr_xappend_asprintf(NULL, buf, "%#-8x", key); + bstr_xappend_asprintf(NULL, buf, "0x%x", key); } char *mp_input_get_key_name(int key) -- cgit v1.2.3