aboutsummaryrefslogtreecommitdiffstats
path: root/misc-utils/lsblk.c
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2023-10-25 11:37:21 +0200
committerKarel Zak <kzak@redhat.com>2023-10-25 11:37:21 +0200
commitd8379563fe5c8a4adba12804abbe20e43a8e1cde (patch)
treeb35a041d82f34e594544002fc015d15c6ae2cab1 /misc-utils/lsblk.c
parent7b4c62b0d5a230febf8f3fc14f83925a2b3902f8 (diff)
parentbad4c729483ab31bb1cadc541817c139f41fb8aa (diff)
downloadutil-linux-d8379563fe5c8a4adba12804abbe20e43a8e1cde.tar.gz
Merge branch 'refine-the-choice-of-stream-related-functions-in-usage' of https://github.com/masatake/util-linux
* 'refine-the-choice-of-stream-related-functions-in-usage' of https://github.com/masatake/util-linux: Make the ways of using output stream consistent in usage() Use fputs instead of fprintf if possible
Diffstat (limited to 'misc-utils/lsblk.c')
-rw-r--r--misc-utils/lsblk.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/misc-utils/lsblk.c b/misc-utils/lsblk.c
index cfb07a0201..af36c78d4c 100644
--- a/misc-utils/lsblk.c
+++ b/misc-utils/lsblk.c
@@ -2027,14 +2027,14 @@ static void __attribute__((__noreturn__)) usage(void)
fputs(_(" -z, --zoned print zone related information\n"), out);
fputs(_(" --sysroot <dir> use specified directory as system root\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(22));
+ fprintf(out, USAGE_HELP_OPTIONS(22));
- fprintf(out, USAGE_COLUMNS);
+ fputs(USAGE_COLUMNS, out);
for (i = 0; i < ARRAY_SIZE(infos); i++)
fprintf(out, " %12s %s\n", infos[i].name, _(infos[i].help));
- printf(USAGE_MAN_TAIL("lsblk(8)"));
+ fprintf(out, USAGE_MAN_TAIL("lsblk(8)"));
exit(EXIT_SUCCESS);
}