]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - login-utils/last.c
Make the ways of using output stream consistent in usage()
[thirdparty/util-linux.git] / login-utils / last.c
index dced3f86f07849020ec8059fadddd23c4beb83e4..bbbe817f8a99f1f543832d22e7fef168007d1f4a 100644 (file)
@@ -593,8 +593,8 @@ static void __attribute__((__noreturn__)) usage(const struct last_control *ctl)
                "                               notime|short|full|iso\n"), out);
 
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(22));
-       printf(USAGE_MAN_TAIL("last(1)"));
+       fprintf(out, USAGE_HELP_OPTIONS(22));
+       fprintf(out, USAGE_MAN_TAIL("last(1)"));
 
        exit(out == stderr ? EXIT_FAILURE : EXIT_SUCCESS);
 }