summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install/lib/plist.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/pkg_install/lib/plist.c')
-rw-r--r--usr.sbin/pkg_install/lib/plist.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/pkg_install/lib/plist.c b/usr.sbin/pkg_install/lib/plist.c
index 7c59929..0f7a010 100644
--- a/usr.sbin/pkg_install/lib/plist.c
+++ b/usr.sbin/pkg_install/lib/plist.c
@@ -275,7 +275,7 @@ read_plist(Package *pkg, FILE *fp)
cmd = plist_cmd(pline + 1, &cp);
if (cmd == FAIL) {
cleanup(0);
- errx(2, __FUNCTION__ ": bad command '%s'", pline);
+ errx(2, "%s: bad command '%s'", __FUNCTION__, pline);
}
if (*cp == '\0') {
cp = NULL;
@@ -384,7 +384,8 @@ write_plist(Package *pkg, FILE *fp)
default:
cleanup(0);
- errx(2, __FUNCTION__ ": unknown command type %d (%s)", plist->type, plist->name);
+ errx(2, "%s: unknown command type %d (%s)", __FUNCTION__,
+ plist->type, plist->name);
break;
}
plist = plist->next;
OpenPOWER on IntegriCloud