From 5eb1ad14622fea8d1b491d83ce96a7df74875c29 Mon Sep 17 00:00:00 2001 From: lulf Date: Tue, 30 Sep 2008 07:18:49 +0000 Subject: - Improve error message given on g_providername call failure. - While there, make error messages consistent with the rest. Approved by: kib (mentor) --- usr.sbin/boot0cfg/boot0cfg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/boot0cfg') 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) -- cgit v1.1