[hackers] [ubase] Print mnt_dir as well if umount2 fails. || sin

From: <git_AT_suckless.org>
Date: Sat, 15 Mar 2014 19:49:22 +0100

commit e5b9f696267cc68be69757d8a04590e2abdb8719
Author: sin <sin_AT_2f30.org>
Date: Sat Mar 15 18:10:01 2014 +0000

    Print mnt_dir as well if umount2 fails.

diff --git a/umount.c b/umount.c
index 46143c1..c413a0e 100644
--- a/umount.c
+++ b/umount.c
_AT_@ -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;
                         }
                 }
_AT_@ -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;
                 }
         }
Received on Sat Mar 15 2014 - 19:49:22 CET

This archive was generated by hypermail 2.3.0 : Sat Mar 15 2014 - 20:00:14 CET