aboutsummaryrefslogtreecommitdiff
path: root/sbin/bsdlabel
diff options
context:
space:
mode:
authorUlf Lilleengen <lulf@FreeBSD.org>2008-09-30 07:18:49 +0000
committerUlf Lilleengen <lulf@FreeBSD.org>2008-09-30 07:18:49 +0000
commitbd5add5884ab280bd71ea125fac9c20c3eb13bc7 (patch)
tree91194d97b4792749cc951e6a2233b54b2458b2ba /sbin/bsdlabel
parentad415775a173a3a22fd1322acd381b9e17f3c123 (diff)
downloadsrc-bd5add5884ab280bd71ea125fac9c20c3eb13bc7.tar.gz
src-bd5add5884ab280bd71ea125fac9c20c3eb13bc7.zip
- Improve error message given on g_providername call failure.
- While there, make error messages consistent with the rest. Approved by: kib (mentor)
Notes
Notes: svn path=/head/; revision=183487
Diffstat (limited to 'sbin/bsdlabel')
-rw-r--r--sbin/bsdlabel/bsdlabel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/bsdlabel/bsdlabel.c b/sbin/bsdlabel/bsdlabel.c
index d3ec8992bf99..97ddeb6aceb1 100644
--- a/sbin/bsdlabel/bsdlabel.c
+++ b/sbin/bsdlabel/bsdlabel.c
@@ -238,7 +238,7 @@ main(int argc, char *argv[])
pname = g_providername(fd);
close(fd);
if (pname == NULL) {
- warnx("error getting providername for %s", specname);
+ warn("error getting providername for %s", specname);
return(1);
}
}