diff options
author | Karel Zak | 2013-01-15 15:53:46 +0100 |
---|---|---|
committer | Karel Zak | 2013-01-15 15:53:46 +0100 |
commit | f5ae1d706e37f83e0cc9f40cadf4e4410e42247a (patch) | |
tree | b12676280ef5c76b5768c57057a5ca328ee51a3f /sys-utils/mount.c | |
parent | tests: add/improve mount shared-subtree tests (diff) | |
download | kernel-qcow2-util-linux-f5ae1d706e37f83e0cc9f40cadf4e4410e42247a.tar.gz kernel-qcow2-util-linux-f5ae1d706e37f83e0cc9f40cadf4e4410e42247a.tar.xz kernel-qcow2-util-linux-f5ae1d706e37f83e0cc9f40cadf4e4410e42247a.zip |
mount: write success messages to stdout
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/mount.c')
-rw-r--r-- | sys-utils/mount.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys-utils/mount.c b/sys-utils/mount.c index 0b57c92a0..a6c15832d 100644 --- a/sys-utils/mount.c +++ b/sys-utils/mount.c @@ -234,7 +234,7 @@ static int mount_all(struct libmnt_context *cxt) static void success_message(struct libmnt_context *cxt) { unsigned long mflags = 0; - const char *tgt, *src; + const char *tgt, *src, *pr = program_invocation_short_name; if (mnt_context_helper_executed(cxt) || mnt_context_get_status(cxt) != 1) @@ -245,13 +245,13 @@ static void success_message(struct libmnt_context *cxt) src = mnt_context_get_source(cxt); if (mflags & MS_MOVE) - warnx(_("%s moved to %s"), src, tgt); + printf(_("%s: %s moved to %s.\n"), pr, src, tgt); else if (mflags & MS_BIND) - warnx(_("%s binded on %s"), src, tgt); + printf(_("%s: %s binded on %s.\n"), pr, src, tgt); else if (mflags & MS_PROPAGATION) - warnx(_("%s propagation flags changed"), tgt); + printf(_("%s: %s propagation flags changed.\n"), pr, tgt); else - warnx(_("%s mounted on %s"), src, tgt); + printf(_("%s: %s mounted on %s.\n"), pr, src, tgt); } /* |