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
This commit is contained in:
Craig Rodrigues 2006-11-14 01:07:42 +00:00
parent 4184900911
commit c195c7f618
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=164266

View file

@ -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");