diff options
| author | Masatake YAMATO <yamato@redhat.com> | 2023-10-25 02:21:45 +0900 |
|---|---|---|
| committer | Masatake YAMATO <yamato@redhat.com> | 2023-10-25 02:21:45 +0900 |
| commit | bad4c729483ab31bb1cadc541817c139f41fb8aa (patch) | |
| tree | 402b225cf473669053486d1edfcc2bab7806785e /sys-utils/swapon.c | |
| parent | 38b8eac6eb9a372e0a2b9c8f2b4abb816c6f17ee (diff) | |
| download | util-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/swapon.c')
| -rw-r--r-- | sys-utils/swapon.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys-utils/swapon.c b/sys-utils/swapon.c index 81c383a299..fa2bf46cdf 100644 --- a/sys-utils/swapon.c +++ b/sys-utils/swapon.c @@ -825,7 +825,7 @@ static void __attribute__((__noreturn__)) usage(void) fputs(_(" -v, --verbose verbose mode\n"), out); fputs(USAGE_SEPARATOR, out); - printf(USAGE_HELP_OPTIONS(26)); + fprintf(out, USAGE_HELP_OPTIONS(26)); fputs(_("\nThe <spec> parameter:\n" \ " -L <label> synonym for LABEL=<label>\n" @@ -846,7 +846,7 @@ static void __attribute__((__noreturn__)) usage(void) for (i = 0; i < ARRAY_SIZE(infos); i++) fprintf(out, " %-5s %s\n", infos[i].name, _(infos[i].help)); - printf(USAGE_MAN_TAIL("swapon(8)")); + fprintf(out, USAGE_MAN_TAIL("swapon(8)")); exit(EXIT_SUCCESS); } |
