mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Print out the target device when the mount fails.
This commit is contained in:
parent
20ee96993b
commit
f59091e7cd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=71652
|
@ -59,6 +59,7 @@ static const char rcsid[] =
|
|||
#include <sys/../isofs/cd9660/cd9660_mount.h>
|
||||
|
||||
#include <err.h>
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
@ -176,7 +177,7 @@ main(int argc, char **argv)
|
|||
errx(1, "cd9660 filesystem is not available");
|
||||
|
||||
if (mount(vfc.vfc_name, mntpath, mntflags, &args) < 0)
|
||||
err(1, NULL);
|
||||
err(1, "%s", args.fspec);
|
||||
exit(0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue