From 948be98f5210673a809fb8cc1b3b264b0efc1244 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Tue, 6 Aug 2024 14:55:37 +0200 Subject: [PATCH] Improve x0vncserver key allocation log line Follow the standard XK_ prefix, and also include the hex value for easier debugging. --- unix/x0vncserver/XDesktop.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/unix/x0vncserver/XDesktop.cxx b/unix/x0vncserver/XDesktop.cxx index 800edaf8..a00f2bc2 100644 --- a/unix/x0vncserver/XDesktop.cxx +++ b/unix/x0vncserver/XDesktop.cxx @@ -492,7 +492,8 @@ KeyCode XDesktop::addKeysym(KeySym keysym) changes.num_key_syms = 1; if (XkbChangeMap(dpy, xkb, &changes)) { - vlog.info("Added unknown keysym %s to keycode %d", XKeysymToString(keysym), key); + vlog.info("Added unknown keysym XK_%s (0x%04x) to keycode %d", + XKeysymToString(keysym), (unsigned)keysym, key); addedKeysyms.push_front({ syms[0], (KeyCode)key }); return key; } -- 2.39.5