]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - sys-utils/ipcs.c
Make the ways of using output stream consistent in usage()
[thirdparty/util-linux.git] / sys-utils / ipcs.c
index 9380d984be461a026cd4d18b03e66a12c11c6562..eaf6cb4b1c7c5426ef060a75260935c734ce7d71 100644 (file)
@@ -66,7 +66,7 @@ static void __attribute__((__noreturn__)) usage(void)
 
        fputs(USAGE_OPTIONS, out);
        fputs(_(" -i, --id <id>  print details on resource identified by <id>\n"), out);
-       printf(USAGE_HELP_OPTIONS(16));
+       fprintf(out, USAGE_HELP_OPTIONS(16));
 
        fputs(USAGE_SEPARATOR, out);
        fputs(_("Resource options:\n"), out);
@@ -84,7 +84,7 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -u, --summary     show status summary\n"), out);
        fputs(_("     --human       show sizes in human-readable format\n"), out);
        fputs(_(" -b, --bytes       show sizes in bytes\n"), out);
-       printf(USAGE_MAN_TAIL("ipcs(1)"));
+       fprintf(out, USAGE_MAN_TAIL("ipcs(1)"));
 
        exit(EXIT_SUCCESS);
 }