summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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