aboutsummaryrefslogtreecommitdiffstats
path: root/sys-utils/mount.c
diff options
context:
space:
mode:
authorMasatake YAMATO <yamato@redhat.com>2023-10-25 02:21:45 +0900
committerMasatake YAMATO <yamato@redhat.com>2023-10-25 02:21:45 +0900
commitbad4c729483ab31bb1cadc541817c139f41fb8aa (patch)
tree402b225cf473669053486d1edfcc2bab7806785e /sys-utils/mount.c
parent38b8eac6eb9a372e0a2b9c8f2b4abb816c6f17ee (diff)
downloadutil-linux-bad4c729483ab31bb1cadc541817c139f41fb8aa.tar.gz
Make the ways of using output stream consistent in usage()
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Diffstat (limited to 'sys-utils/mount.c')
-rw-r--r--sys-utils/mount.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys-utils/mount.c b/sys-utils/mount.c
index cf62e2dd2b..68b57eb36d 100644
--- a/sys-utils/mount.c
+++ b/sys-utils/mount.c
@@ -482,7 +482,7 @@ static void __attribute__((__noreturn__)) usage(void)
FILE *out = stdout;
fputs(USAGE_HEADER, out);
- printf(_(
+ fprintf(out, _(
" %1$s [-lhV]\n"
" %1$s -a [options]\n"
" %1$s [options] [--source] <source> | [--target] <directory>\n"
@@ -529,7 +529,7 @@ static void __attribute__((__noreturn__)) usage(void)
fputs(_(" -N, --namespace <ns> perform mount in another namespace\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(25));
+ fprintf(out, USAGE_HELP_OPTIONS(25));
fputs(USAGE_SEPARATOR, out);
fputs(_("Source:\n"), out);
@@ -558,7 +558,7 @@ static void __attribute__((__noreturn__)) usage(void)
fputs(_(" --make-rprivate recursively mark a whole subtree as private\n"), out);
fputs(_(" --make-runbindable recursively mark a whole subtree as unbindable\n"), out);
- printf(USAGE_MAN_TAIL("mount(8)"));
+ fprintf(out, USAGE_MAN_TAIL("mount(8)"));
exit(MNT_EX_SUCCESS);
}