aboutsummaryrefslogtreecommitdiff
path: root/sbin/mount/mount_ufs.c
diff options
context:
space:
mode:
authorBrian S. Dean <bsd@FreeBSD.org>2001-01-25 20:03:38 +0000
committerBrian S. Dean <bsd@FreeBSD.org>2001-01-25 20:03:38 +0000
commit20ee96993b8da102650df326b2bbb21a2bbaffd4 (patch)
treee2df480d0a45951d54e6b89814f231ee594b4b3f /sbin/mount/mount_ufs.c
parent34f9ca09081cf88a817389e0d4f939067f37ab3d (diff)
downloadsrc-20ee96993b8da102650df326b2bbb21a2bbaffd4.tar.gz
src-20ee96993b8da102650df326b2bbb21a2bbaffd4.zip
Always print out the target device when the mount fails, not just on
ENOENT.
Notes
Notes: svn path=/head/; revision=71651
Diffstat (limited to 'sbin/mount/mount_ufs.c')
-rw-r--r--sbin/mount/mount_ufs.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sbin/mount/mount_ufs.c b/sbin/mount/mount_ufs.c
index f999db882538..15cabb22f92d 100644
--- a/sbin/mount/mount_ufs.c
+++ b/sbin/mount/mount_ufs.c
@@ -137,11 +137,8 @@ mount_ufs(argc, argv)
warnx("%s on %s: incorrect super block",
args.fspec, fs_name);
break;
- case ENOENT:
- warn("%s", args.fspec);
- break;
default:
- warn(NULL);
+ warn("%s", args.fspec);
break;
}
return (1);