[hackers] [ubase] mount: show devicename in error output for clarity || Hiltjo Posthuma

From: <git_AT_suckless.org>
Date: Sat, 15 Mar 2014 20:29:25 +0100

commit 9af24d8a29518639aa03cdafbeb774f60531271b
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
Date: Sat Mar 15 19:28:23 2014 +0100

    mount: show devicename in error output for clarity
    
    Signed-off-by: Hiltjo Posthuma <hiltjo_AT_codemadness.org>

diff --git a/mount.c b/mount.c
index 4e14bde..351c283 100644
--- a/mount.c
+++ b/mount.c
_AT_@ -155,7 +155,7 @@ main(int argc, char *argv[])
 
 mountsingle:
         if(mount(source, target, types, flags, data) < 0)
- eprintf("mount:");
+ eprintf("mount: %s:", source);
         if(fp)
                 endmntent(fp);
         return status;
_AT_@ -167,7 +167,7 @@ mountall:
                 flags = 0;
                 parseopts(me->mnt_opts, &flags, data, datasiz);
                 if(mount(me->mnt_fsname, me->mnt_dir, me->mnt_type, flags, data) < 0) {
- weprintf("mount:");
+ weprintf("mount: %s:", me->mnt_fsname);
                         if(status != 64)
                                 status = 32; /* all failed */
                 } else {
Received on Sat Mar 15 2014 - 20:29:25 CET

This archive was generated by hypermail 2.3.0 : Sat Mar 15 2014 - 20:36:18 CET