]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lsfd: use the specified output stream for printing help messages
authorMasatake YAMATO <yamato@redhat.com>
Wed, 12 Jul 2023 14:53:54 +0000 (23:53 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Wed, 12 Jul 2023 14:53:54 +0000 (23:53 +0900)
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
misc-utils/lsfd.c

index 4a7bb5c57cd992644863365780c1a7ca098ec8c8..d99156a7a3edf2f827f4b3581f87d25f18710fd9 100644 (file)
@@ -1603,7 +1603,7 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_("          --summary[=<when>]  print summary information (only, append, or never)\n"), out);
 
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(30));
+       fprintf(out, USAGE_HELP_OPTIONS(30));
 
        fprintf(out, USAGE_COLUMNS);
 
@@ -1616,7 +1616,7 @@ static void __attribute__((__noreturn__)) usage(void)
                        "<boolean>",
                        _(infos[i].help));
 
-       printf(USAGE_MAN_TAIL("lsfd(1)"));
+       fprintf(out, USAGE_MAN_TAIL("lsfd(1)"));
 
        exit(EXIT_SUCCESS);
 }