summaryrefslogtreecommitdiffstats
path: root/progs/xdemos/glxswapcontrol.c
diff options
context:
space:
mode:
Diffstat (limited to 'progs/xdemos/glxswapcontrol.c')
-rw-r--r--progs/xdemos/glxswapcontrol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/progs/xdemos/glxswapcontrol.c b/progs/xdemos/glxswapcontrol.c
index 0ed5ebe4722..d9be984be57 100644
--- a/progs/xdemos/glxswapcontrol.c
+++ b/progs/xdemos/glxswapcontrol.c
@@ -749,7 +749,7 @@ main(int argc, char *argv[])
dpy = XOpenDisplay(dpyName);
if (!dpy) {
- printf("Error: couldn't open display %s\n", dpyName);
+ printf("Error: couldn't open display %s\n", XDisplayName(dpyName));
return -1;
}