From d61cb117c170b23b9fbaf619c2a1e54b9f987a90 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 7 Jul 2013 10:47:47 -0700 Subject: Use progname for error messages as well Signed-off-by: Alan Coopersmith --- xvinfo.c | 4 ++-- 1 file 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); } -- cgit v1.2.3