summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-07-07 10:47:47 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-07-07 10:47:47 -0700
commitd61cb117c170b23b9fbaf619c2a1e54b9f987a90 (patch)
tree21de3f3c0d88933e060a9f546d867aae93727090
parentaf9ea390e95320e683c761cbd61eaf1c0dbaefed (diff)
Use progname for error messages as well
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--xvinfo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xvinfo.c b/xvinfo.c
index f1a6056..2a43020 100644
--- a/xvinfo.c
+++ b/xvinfo.c
@@ -59,13 +59,13 @@ main(int argc, char *argv[])
}
if (!(dpy = XOpenDisplay(disname))) {
- fprintf(stderr, "xvinfo: Unable to open display %s\n",
+ fprintf(stderr, "%s: Unable to open display %s\n", progname,
(disname != NULL) ? disname : XDisplayName(NULL));
exit(-1);
}
if ((Success != XvQueryExtension(dpy, &ver, &rev, &reqB, &eventB, &errorB))) {
- fprintf(stderr, "xvinfo: No X-Video Extension on %s\n",
+ fprintf(stderr, "%s: No X-Video Extension on %s\n", progname,
(disname != NULL) ? disname : XDisplayName(NULL));
exit(0);
}