aboutsummaryrefslogtreecommitdiffstats
path: root/progs/xdemos/opencloseopen.c
diff options
context:
space:
mode:
Diffstat (limited to 'progs/xdemos/opencloseopen.c')
-rw-r--r--progs/xdemos/opencloseopen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/progs/xdemos/opencloseopen.c b/progs/xdemos/opencloseopen.c
index 2e4de24c71d..0b8d0618431 100644
--- a/progs/xdemos/opencloseopen.c
+++ b/progs/xdemos/opencloseopen.c
@@ -91,7 +91,7 @@ make_window( const char * dpyName, const char *name,
dpy = XOpenDisplay(dpyName);
if (!dpy) {
- printf("Error: couldn't open display %s\n", dpyName);
+ printf("Error: couldn't open display %s\n", XDisplayName(dpyName));
exit(1);
}