aboutsummaryrefslogtreecommitdiffstats
path: root/progs/xdemos/glxcontexts.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2006-12-13 08:30:26 -0700
committerBrian <[email protected]>2006-12-13 08:30:26 -0700
commit73eee2402eec80b745141689ecff2d4ecf36035e (patch)
tree7f2e3c5e11fe42ca3611a1c0df8211e38b8dec1c /progs/xdemos/glxcontexts.c
parent5b35132b41427798e02a66a8e39583fffbe9d232 (diff)
Use XDisplayName() when reporting errors (bug 8079).
Diffstat (limited to 'progs/xdemos/glxcontexts.c')
-rw-r--r--progs/xdemos/glxcontexts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/progs/xdemos/glxcontexts.c b/progs/xdemos/glxcontexts.c
index fbc296ef625..a9ff326ed5e 100644
--- a/progs/xdemos/glxcontexts.c
+++ b/progs/xdemos/glxcontexts.c
@@ -587,8 +587,8 @@ main(int argc, char *argv[])
dpy = XOpenDisplay(dpyName);
if (!dpy) {
- printf("Error: couldn't open display %s\n",
- dpyName ? dpyName : getenv("DISPLAY"));
+ fprintf(stderr, "Error: couldn't open display %s\n",
+ XDisplayName(dpyName));
return -1;
}