mirror of git://git.suckless.org/ubase
mount: show devicename in error output for clarity
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
This commit is contained in:
parent
861e16ac17
commit
9af24d8a29
4
mount.c
4
mount.c
|
@ -155,7 +155,7 @@ main(int argc, char *argv[])
|
||||||
|
|
||||||
mountsingle:
|
mountsingle:
|
||||||
if(mount(source, target, types, flags, data) < 0)
|
if(mount(source, target, types, flags, data) < 0)
|
||||||
eprintf("mount:");
|
eprintf("mount: %s:", source);
|
||||||
if(fp)
|
if(fp)
|
||||||
endmntent(fp);
|
endmntent(fp);
|
||||||
return status;
|
return status;
|
||||||
|
@ -167,7 +167,7 @@ mountall:
|
||||||
flags = 0;
|
flags = 0;
|
||||||
parseopts(me->mnt_opts, &flags, data, datasiz);
|
parseopts(me->mnt_opts, &flags, data, datasiz);
|
||||||
if(mount(me->mnt_fsname, me->mnt_dir, me->mnt_type, flags, data) < 0) {
|
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)
|
if(status != 64)
|
||||||
status = 32; /* all failed */
|
status = 32; /* all failed */
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue