diff options
author | lulf <lulf@FreeBSD.org> | 2008-09-30 07:18:49 +0000 |
---|---|---|
committer | lulf <lulf@FreeBSD.org> | 2008-09-30 07:18:49 +0000 |
commit | 5eb1ad14622fea8d1b491d83ce96a7df74875c29 (patch) | |
tree | 91194d97b4792749cc951e6a2233b54b2458b2ba /sbin/fdisk | |
parent | 8468f28e4d50d828c26031aaa0ae583d1e74743d (diff) | |
download | FreeBSD-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/fdisk')
-rw-r--r-- | sbin/fdisk/fdisk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/fdisk/fdisk.c b/sbin/fdisk/fdisk.c index e540038..90b3403 100644 --- a/sbin/fdisk/fdisk.c +++ b/sbin/fdisk/fdisk.c @@ -770,7 +770,7 @@ write_disk(off_t sector, void *buf) gctl_ro_param(grq, "class", -1, "MBR"); pname = g_providername(fd); if (pname == NULL) { - warnx("Error getting providername for %s\n", disk); + warn("Error getting providername for %s", disk); return (-1); } gctl_ro_param(grq, "geom", -1, pname); |