summaryrefslogtreecommitdiffstats
path: root/sbin/bsdlabel
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 /sbin/bsdlabel
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 '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 d3ec899..97ddeb6 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);
}
}
OpenPOWER on IntegriCloud