diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-07-07 10:47:47 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-07-07 10:47:47 -0700 |
commit | d61cb117c170b23b9fbaf619c2a1e54b9f987a90 (patch) | |
tree | 21de3f3c0d88933e060a9f546d867aae93727090 | |
parent | af9ea390e95320e683c761cbd61eaf1c0dbaefed (diff) |
Use progname for error messages as well
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | xvinfo.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } |