From e5b9f696267cc68be69757d8a04590e2abdb8719 Mon Sep 17 00:00:00 2001 From: sin Date: Sat, 15 Mar 2014 18:10:01 +0000 Subject: [PATCH] Print mnt_dir as well if umount2 fails. --- umount.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/umount.c b/umount.c index 46143c1..c413a0e 100644 --- a/umount.c +++ b/umount.c @@ -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; } }