aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/boot0cfg/boot0cfg.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/boot0cfg/boot0cfg.c')
-rw-r--r--usr.sbin/boot0cfg/boot0cfg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/boot0cfg/boot0cfg.c b/usr.sbin/boot0cfg/boot0cfg.c
index 63fa78e5549c..6f10308b7e3b 100644
--- a/usr.sbin/boot0cfg/boot0cfg.c
+++ b/usr.sbin/boot0cfg/boot0cfg.c
@@ -274,12 +274,12 @@ write_mbr(const char *fname, int flags, u_int8_t *mbr, int mbr_size)
/* Try open it read only. */
fd = open(fname, O_RDONLY);
if (fd == -1) {
- warnx("Error opening %s\n", fname);
+ warn("error opening %s", fname);
return;
}
pname = g_providername(fd);
if (pname == NULL) {
- warnx("Error getting providername for %s\n", fname);
+ warn("error getting providername for %s", fname);
return;
}
if (flags != 0)