From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from krisdoz.my.domain (schwarze@localhost [127.0.0.1]) by krisdoz.my.domain (8.14.5/8.14.5) with ESMTP id s5KGBhJZ005816 for ; Fri, 20 Jun 2014 12:11:43 -0400 (EDT) Received: (from schwarze@localhost) by krisdoz.my.domain (8.14.5/8.14.3/Submit) id s5KGBheV003699; Fri, 20 Jun 2014 12:11:43 -0400 (EDT) Date: Fri, 20 Jun 2014 12:11:43 -0400 (EDT) Message-Id: <201406201611.s5KGBheV003699@krisdoz.my.domain> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: schwarze@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: Prefix error messages from mandoc(1) with "mandoc: " just like X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- Prefix error messages from mandoc(1) with "mandoc: " just like almost all other utility programs do. Suggested by nick@ who wondered where messages came from when calling mandoc(1) from inside a Perl script. ok jmc@ nick@ Modified Files: -------------- mdocml: main.c Revision Data ------------- Index: main.c =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/main.c,v retrieving revision 1.173 retrieving revision 1.174 diff -Lmain.c -Lmain.c -u -p -r1.173 -r1.174 --- main.c +++ main.c @@ -408,7 +408,8 @@ mmsg(enum mandocerr t, enum mandoclevel const char *file, int line, int col, const char *msg) { - fprintf(stderr, "%s:%d:%d: %s: %s", file, line, col + 1, + fprintf(stderr, "%s: %s:%d:%d: %s: %s", progname, + file, line, col + 1, mparse_strlevel(lvl), mparse_strerror(t)); if (msg) -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv