From 73b38f1d13f745feee7dba44a55ce5c53e89224a Mon Sep 17 00:00:00 2001 From: bsd Date: Thu, 25 Jan 2001 20:03:38 +0000 Subject: Always print out the target device when the mount fails, not just on ENOENT. --- sbin/mount/mount_ufs.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'sbin') 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); -- cgit v1.1