aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2018-11-02 20:56:55 +0100
committerUlrich Sibiller <uli42@gmx.de>2019-05-10 19:02:51 +0200
commit0a211b6b614a64953b9325e23a12822792ee5d61 (patch)
treede25fadb90b2af6700ffd849e5c553c838f5564e /nx-X11/programs/Xserver
parentbee0f13ce4ebc475b1727c5715e8222c0e472a78 (diff)
downloadnx-libs-0a211b6b614a64953b9325e23a12822792ee5d61.tar.gz
nx-libs-0a211b6b614a64953b9325e23a12822792ee5d61.tar.bz2
nx-libs-0a211b6b614a64953b9325e23a12822792ee5d61.zip
Keyboard.c: improve TEST and DEBUG output
Diffstat (limited to 'nx-X11/programs/Xserver')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Keyboard.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c b/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
index 05adab494..5fc322dde 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
@@ -842,7 +842,7 @@ XkbError:
{
#ifdef TEST
fprintf(stderr, "nxagentKeyboardProc: Using default keyboard: model [%s] layout [%s].\n",
- model, layout);
+ model?model:"(default)", layout?layout:"(default)");
#endif
}
@@ -917,7 +917,8 @@ XkbError:
#ifdef DEBUG
fprintf(stderr, "nxagentKeyboardProc: Going to set rules and init device: "
"[rules='%s',model='%s',layout='%s',variant='%s',options='%s'].\n",
- rules, model, layout, variant, options);
+ rules?rules:"(default)", model?model:"(default)", layout?layout:"(default)",
+ variant?variant:"(default)", options?options:"(default)");
#endif
XkbSetRulesDflts(rules, model, layout, variant, options);