summaryrefslogtreecommitdiffstats
path: root/sbin/mount
diff options
context:
space:
mode:
authorbsd <bsd@FreeBSD.org>2001-01-25 20:03:38 +0000
committerbsd <bsd@FreeBSD.org>2001-01-25 20:03:38 +0000
commit73b38f1d13f745feee7dba44a55ce5c53e89224a (patch)
tree3044acd0a6c4336c2dd4b1ac9cd0e40aa55dae52 /sbin/mount
parent7210110be52b821876f4d62c1bd2fe555feb0508 (diff)
downloadFreeBSD-src-73b38f1d13f745feee7dba44a55ce5c53e89224a.zip
FreeBSD-src-73b38f1d13f745feee7dba44a55ce5c53e89224a.tar.gz
Always print out the target device when the mount fails, not just on
ENOENT.
Diffstat (limited to 'sbin/mount')
-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 f999db8..15cabb2 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);
OpenPOWER on IntegriCloud