libmount: improve verbose message
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
914c8b7102
commit
b3f7a0ec3e
|
@ -157,22 +157,22 @@ static int mount_all(struct libmnt_context *cxt,
|
||||||
|
|
||||||
if (ignored) {
|
if (ignored) {
|
||||||
if (mnt_context_is_verbose(cxt))
|
if (mnt_context_is_verbose(cxt))
|
||||||
printf(ignored == 1 ? _("%-20s: ignored\n") :
|
printf(ignored == 1 ? _("%-25s: ignored\n") :
|
||||||
_("%-20s: already mounted\n"),
|
_("%-25s: already mounted\n"),
|
||||||
tgt);
|
tgt);
|
||||||
} else if (!mnt_context_get_status(cxt)) {
|
} else if (!mnt_context_get_status(cxt)) {
|
||||||
if (mntrc > 0) {
|
if (mntrc > 0) {
|
||||||
errno = mntrc;
|
errno = mntrc;
|
||||||
printf(_("%-20s: failed: %s\n"), tgt,
|
printf(_("%-25s: failed: %s\n"), tgt,
|
||||||
strerror(mntrc));
|
strerror(mntrc));
|
||||||
rc |= EX_FAIL;
|
rc |= EX_FAIL;
|
||||||
} else {
|
} else {
|
||||||
printf(_("%-20s: failed\n"), tgt);
|
printf(_("%-25s: failed\n"), tgt);
|
||||||
rc |= EX_SYSERR;
|
rc |= EX_SYSERR;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (mnt_context_is_verbose(cxt))
|
if (mnt_context_is_verbose(cxt))
|
||||||
printf("%-20s: successfully mounted\n", tgt);
|
printf("%-25s: successfully mounted\n", tgt);
|
||||||
|
|
||||||
rc |= EX_SOMEOK;
|
rc |= EX_SOMEOK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue