aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2021-03-10 10:04:50 +0100
committerUlrich Sibiller <uli42@gmx.de>2021-06-20 20:12:51 +0200
commitba898dfcde038052c9eb9be043e9d48b18652cca (patch)
treea8bd0c74676d38f8e7012dab822c681f99af4b55 /nx-X11/programs
parent1723afb64696c41bdecdbe5c3330eb5e378c24ab (diff)
downloadnx-libs-ba898dfcde038052c9eb9be043e9d48b18652cca.tar.gz
nx-libs-ba898dfcde038052c9eb9be043e9d48b18652cca.tar.bz2
nx-libs-ba898dfcde038052c9eb9be043e9d48b18652cca.zip
Clipboard.c: improve debug output in special case
This avoids an error message in a special case: nxagentRemoteToLocalAtom: WARNING failed to get name from remote atom.
Diffstat (limited to 'nx-X11/programs')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Clipboard.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
index 17b14f728..dde5506fa 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
@@ -436,7 +436,10 @@ void nxagentDumpClipboardStat(void)
}
fprintf(stderr, "\n");
- fprintf(stderr, " serverLastRequestedSelection [% 4ld][%s]\n", serverLastRequestedSelection, NameForRemAtom(serverLastRequestedSelection));
+ if (serverLastRequestedSelection == -1)
+ fprintf(stderr, " serverLastRequestedSelection [-1](uninitialized)\n");
+ else
+ fprintf(stderr, " serverLastRequestedSelection [% 4ld][%s]\n", serverLastRequestedSelection, NameForRemAtom(serverLastRequestedSelection));
fprintf(stderr, "Compile time settings\n");
#ifdef PRINT_CLIPBOARD_CONTENT_ON_DEBUG