summaryrefslogtreecommitdiffstats
path: root/usr.sbin/boot0cfg
diff options
context:
space:
mode:
authorlulf <lulf@FreeBSD.org>2008-09-30 07:18:49 +0000
committerlulf <lulf@FreeBSD.org>2008-09-30 07:18:49 +0000
commit5eb1ad14622fea8d1b491d83ce96a7df74875c29 (patch)
tree91194d97b4792749cc951e6a2233b54b2458b2ba /usr.sbin/boot0cfg
parent8468f28e4d50d828c26031aaa0ae583d1e74743d (diff)
downloadFreeBSD-src-5eb1ad14622fea8d1b491d83ce96a7df74875c29.zip
FreeBSD-src-5eb1ad14622fea8d1b491d83ce96a7df74875c29.tar.gz
- Improve error message given on g_providername call failure.
- While there, make error messages consistent with the rest. Approved by: kib (mentor)
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