Print mnt_dir as well if umount2 fails.

This commit is contained in:
sin 2014-03-15 18:10:01 +00:00
parent 7569fd3805
commit e5b9f69626
1 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ main(int argc, char *argv[])
if (strcmp(me->mnt_type, "proc") == 0)
continue;
if (umount2(me->mnt_dir, flags) < 0) {
weprintf("umount2:");
weprintf("umount2 %s:", me->mnt_dir);
ret = EXIT_FAILURE;
}
}
@ -61,7 +61,7 @@ main(int argc, char *argv[])
for (i = 0; i < argc; i++) {
if (umount2(argv[i], flags) < 0) {
weprintf("umount2:");
weprintf("umount2 %s:", argv[i]);
ret = EXIT_FAILURE;
}
}