diff options
author | rodrigc <rodrigc@FreeBSD.org> | 2006-11-14 01:07:42 +0000 |
---|---|---|
committer | rodrigc <rodrigc@FreeBSD.org> | 2006-11-14 01:07:42 +0000 |
commit | d71969c1c6c9d8a6ffd96d0b1d8bd4db03095907 (patch) | |
tree | bf3f0aa2bbcd8d9ba604d8f358951f5c93245b5a /sbin/mount | |
parent | fa70d013974c2fa6347ccc628becfdfcdbddc617 (diff) | |
download | FreeBSD-src-d71969c1c6c9d8a6ffd96d0b1d8bd4db03095907.zip FreeBSD-src-d71969c1c6c9d8a6ffd96d0b1d8bd4db03095907.tar.gz |
Fix debugging output of '-d', to more accurately reflect if
we exec an external mount program, or just call nmount()
to mount a filesystem.
Noticed by: kris
Diffstat (limited to 'sbin/mount')
-rw-r--r-- | sbin/mount/mount.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c index 9e5de11..b5ce18e 100644 --- a/sbin/mount/mount.c +++ b/sbin/mount/mount.c @@ -530,7 +530,10 @@ mountfs(const char *vfstype, const char *spec, const char *name, int flags, argv[argc] = NULL; if (debug) { - (void)printf("exec: mount_%s", vfstype); + if (use_mountprog(vfstype)) + printf("exec: mount_%s", vfstype); + else + printf("mount -t %s", vfstype); for (i = 1; i < argc; i++) (void)printf(" %s", argv[i]); (void)printf("\n"); |