summaryrefslogtreecommitdiffstats
path: root/usr.bin/yacc/mkpar.c
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2002-04-04 21:09:06 +0000
committerobrien <obrien@FreeBSD.org>2002-04-04 21:09:06 +0000
commit430aedfb799019cad1ed93cdb6c3114b12b40405 (patch)
tree559ea85e72be7ecaa7443d12ed0fc32d0aa46bd4 /usr.bin/yacc/mkpar.c
parentdb9aa81e239bb1c46b3b7ba560474cd954b78bf3 (diff)
downloadFreeBSD-src-430aedfb799019cad1ed93cdb6c3114b12b40405.zip
FreeBSD-src-430aedfb799019cad1ed93cdb6c3114b12b40405.tar.gz
Follow suit with OpenBSD and NetBSD and tell the program name in diagnostics.
Diffstat (limited to 'usr.bin/yacc/mkpar.c')
-rw-r--r--usr.bin/yacc/mkpar.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/yacc/mkpar.c b/usr.bin/yacc/mkpar.c
index 92612ed..f7d2e66 100644
--- a/usr.bin/yacc/mkpar.c
+++ b/usr.bin/yacc/mkpar.c
@@ -251,9 +251,9 @@ unused_rules()
if (nunused) {
if (nunused == 1)
- warnx("1 rule never reduced");
+ warnx("%s: 1 rule never reduced", getprogname());
else
- warnx("%d rules never reduced", nunused);
+ warnx("%s: %d rules never reduced", getprogname(), nunused);
}
}
@@ -341,15 +341,15 @@ total_conflicts()
if ((SRtotal != SRexpect) || RRtotal)
{
if (SRtotal == 1)
- warnx("1 shift/reduce conflict");
+ warnx("%s: 1 shift/reduce conflict", getprogname());
else if (SRtotal > 1)
- warnx("%d shift/reduce conflicts", SRtotal);
+ warnx("%s: %d shift/reduce conflicts", getprogname(), SRtotal);
}
if (RRtotal == 1)
- warnx("1 reduce/reduce conflict");
+ warnx("%s: 1 reduce/reduce conflict", getprogname());
else if (RRtotal > 1)
- warnx("%d reduce/reduce conflicts", RRtotal);
+ warnx("%s: %d reduce/reduce conflicts", getprogname(), RRtotal);
}
OpenPOWER on IntegriCloud