summaryrefslogtreecommitdiffstats
path: root/sbin/newfs
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/newfs')
-rw-r--r--sbin/newfs/newfs.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sbin/newfs/newfs.c b/sbin/newfs/newfs.c
index 77d0bf8..99b9ffb 100644
--- a/sbin/newfs/newfs.c
+++ b/sbin/newfs/newfs.c
@@ -374,10 +374,8 @@ rewritelabel(char *s, struct disklabel *lp)
return;
lp->d_checksum = 0;
lp->d_checksum = dkcksum(lp);
- if (ioctl(fso, DIOCWDINFO, (char *)lp) < 0) {
- warn("ioctl (WDINFO)");
- errx(1, "%s: can't rewrite disk label", s);
- }
+ if (ioctl(fso, DIOCWDINFO, (char *)lp) < 0)
+ warn("ioctl (WDINFO): %s: can't rewrite disk label", s);
}
static void
OpenPOWER on IntegriCloud