summaryrefslogtreecommitdiffstats
path: root/usr.sbin/boot0cfg
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/boot0cfg')
-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 63fa78e..6f10308 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)
OpenPOWER on IntegriCloud