diff options
author | bsd <bsd@FreeBSD.org> | 2001-01-25 20:03:38 +0000 |
---|---|---|
committer | bsd <bsd@FreeBSD.org> | 2001-01-25 20:03:38 +0000 |
commit | 73b38f1d13f745feee7dba44a55ce5c53e89224a (patch) | |
tree | 3044acd0a6c4336c2dd4b1ac9cd0e40aa55dae52 /sbin/mount/mount_ufs.c | |
parent | 7210110be52b821876f4d62c1bd2fe555feb0508 (diff) | |
download | FreeBSD-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/mount_ufs.c')
-rw-r--r-- | sbin/mount/mount_ufs.c | 5 |
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); |