]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
Make the ways of using output stream consistent in usage()
authorMasatake YAMATO <yamato@redhat.com>
Tue, 24 Oct 2023 17:21:45 +0000 (02:21 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Tue, 24 Oct 2023 17:21:45 +0000 (02:21 +0900)
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
119 files changed:
Documentation/boilerplate.c
disk-utils/addpart.c
disk-utils/blockdev.c
disk-utils/cfdisk.c
disk-utils/delpart.c
disk-utils/fdformat.c
disk-utils/fdisk.c
disk-utils/fsck.c
disk-utils/fsck.cramfs.c
disk-utils/fsck.minix.c
disk-utils/isosize.c
disk-utils/mkfs.bfs.c
disk-utils/mkfs.c
disk-utils/mkfs.cramfs.c
disk-utils/mkfs.minix.c
disk-utils/mkswap.c
disk-utils/partx.c
disk-utils/raw.c
disk-utils/resizepart.c
disk-utils/sfdisk.c
disk-utils/swaplabel.c
login-utils/chsh.c
login-utils/last.c
login-utils/lslogins.c
login-utils/newgrp.c
login-utils/nologin.c
login-utils/sulogin.c
login-utils/utmpdump.c
login-utils/vipw.c
misc-utils/blkid.c
misc-utils/cal.c
misc-utils/fadvise.c
misc-utils/fincore.c
misc-utils/findfs.c
misc-utils/findmnt.c
misc-utils/getopt.c
misc-utils/hardlink.c
misc-utils/kill.c
misc-utils/logger.c
misc-utils/look.c
misc-utils/lsblk.c
misc-utils/lsclocks.c
misc-utils/lslocks.c
misc-utils/mcookie.c
misc-utils/namei.c
misc-utils/pipesz.c
misc-utils/rename.c
misc-utils/uuidd.c
misc-utils/uuidgen.c
misc-utils/uuidparse.c
misc-utils/whereis.c
misc-utils/wipefs.c
schedutils/chrt.c
schedutils/ionice.c
schedutils/taskset.c
schedutils/uclampset.c
sys-utils/blkdiscard.c
sys-utils/blkpr.c
sys-utils/blkzone.c
sys-utils/chcpu.c
sys-utils/chmem.c
sys-utils/choom.c
sys-utils/ctrlaltdel.c
sys-utils/dmesg.c
sys-utils/eject.c
sys-utils/fallocate.c
sys-utils/flock.c
sys-utils/fsfreeze.c
sys-utils/fstrim.c
sys-utils/hwclock.c
sys-utils/ipcmk.c
sys-utils/ipcrm.c
sys-utils/ipcs.c
sys-utils/irqtop.c
sys-utils/ldattach.c
sys-utils/losetup.c
sys-utils/lscpu.c
sys-utils/lsipc.c
sys-utils/lsirq.c
sys-utils/lsmem.c
sys-utils/lsns.c
sys-utils/mount.c
sys-utils/mountpoint.c
sys-utils/nsenter.c
sys-utils/pivot_root.c
sys-utils/prlimit.c
sys-utils/readprofile.c
sys-utils/renice.c
sys-utils/rfkill.c
sys-utils/rtcwake.c
sys-utils/setarch.c
sys-utils/setpgid.c
sys-utils/setpriv.c
sys-utils/setsid.c
sys-utils/swapoff.c
sys-utils/swapon.c
sys-utils/switch_root.c
sys-utils/tunelp.c
sys-utils/umount.c
sys-utils/unshare.c
sys-utils/wdctl.c
sys-utils/zramctl.c
term-utils/agetty.c
term-utils/mesg.c
term-utils/script.c
term-utils/scriptlive.c
term-utils/scriptreplay.c
term-utils/setterm.c
term-utils/wall.c
term-utils/write.c
text-utils/col.c
text-utils/colcrt.c
text-utils/colrm.c
text-utils/column.c
text-utils/hexdump.c
text-utils/line.c
text-utils/pg.c
text-utils/rev.c
text-utils/ul.c

index 535e85c387c1850948039e748d7ee0b2dd7c4c88..2d6045979cb0fae4af32b91da435a714829aab84 100644 (file)
 static void __attribute__((__noreturn__)) usage(void)
 {
        fputs(USAGE_HEADER, stdout);
-       printf(_(" %s [options] file...\n"), program_invocation_short_name);
+       fprintf(stdout, _(" %s [options] file...\n"), program_invocation_short_name);
 
        fputs(USAGE_SEPARATOR, stdout);
-       puts(_("Short program description."));
+       fputs(_("Short program description."), stdout);
 
        fputs(USAGE_OPTIONS, stdout);
-       puts(_(" -n, --no-argument       option does not use argument"));
-       puts(_("     --optional[=<arg>]  option argument is optional"));
-       puts(_(" -r, --required <arg>    option requires an argument"));
-       puts(_(" -z                      no long option"));
-       puts(_("     --xyzzy             a long option only"));
-       puts(_(" -e, --extremely-long-long-option\n"
-              "                         use next line for description when needed"));
-       puts(_(" -l, --long-explanation  an example of very verbose, and chatty option\n"
-              "                           description on two, or multiple lines, where the\n"
-              "                           consecutive lines are intended by two spaces"));
-       puts(_(" -f, --foobar            next option description resets indent"));
+       fputs(_(" -n, --no-argument       option does not use argument"), stdout);
+       fputs(_("     --optional[=<arg>]  option argument is optional"), stdout);
+       fputs(_(" -r, --required <arg>    option requires an argument"), stdout);
+       fputs(_(" -z                      no long option"), stdout);
+       fputs(_("     --xyzzy             a long option only"), stdout);
+       fputs(_(" -e, --extremely-long-long-option\n"
+               "                         use next line for description when needed"), stdout);
+       fputs(_(" -l, --long-explanation  an example of very verbose, and chatty option\n"
+               "                           description on two, or multiple lines, where the\n"
+               "                           consecutive lines are intended by two spaces"), stdout);
+       fputs(_(" -f, --foobar            next option description resets indent"), stdout);
        fputs(USAGE_SEPARATOR, stdout);
-       printf(USAGE_HELP_OPTIONS(25)); /* char offset to align option descriptions */
-       printf(USAGE_MAN_TAIL("fixme-command-name(1)"));
+       fprintf(stdout, USAGE_HELP_OPTIONS(25)); /* char offset to align option descriptions */
+       fprintf(stdout, USAGE_MAN_TAIL("fixme-command-name(1)"));
        exit(EXIT_SUCCESS);
 }
 
index 33abb36cab7b487beaf1878c310d04ff09efb709..2cf664b98f12f192bb3825b526a433197949d415 100644 (file)
@@ -19,8 +19,8 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_("Tell the kernel about the existence of a specified partition.\n"), out);
 
        fputs(USAGE_OPTIONS, out);
-       printf(USAGE_HELP_OPTIONS(16));
-       printf(USAGE_MAN_TAIL("addpart(8)"));
+       fprintf(out, USAGE_HELP_OPTIONS(16));
+       fprintf(out, USAGE_MAN_TAIL("addpart(8)"));
        exit(EXIT_SUCCESS);
 }
 
index e02707d1d8db1c6e19c18b988d2affc1b14295fb..22497d23ad8c4749717d66f69cc435a09bda04fe 100644 (file)
@@ -201,36 +201,36 @@ static void __attribute__((__noreturn__)) usage(void)
        size_t i;
 
        fputs(USAGE_HEADER, stdout);
-       printf(_(
+       fprintf(stdout, _(
                 " %1$s [-v|-q] commands devices\n"
                 " %1$s --report [devices]\n"
                 " %1$s -h|-V\n"
                ), program_invocation_short_name);
 
        fputs(USAGE_SEPARATOR, stdout);
-       puts(  _("Call block device ioctls from the command line."));
+       fputs(  _("Call block device ioctls from the command line."), stdout);
 
        fputs(USAGE_OPTIONS, stdout);
-       puts(  _(" -q             quiet mode"));
-       puts(  _(" -v             verbose mode"));
-       puts(  _("     --report   print report for specified (or all) devices"));
+       fputs(  _(" -q             quiet mode"), stdout);
+       fputs(  _(" -v             verbose mode"), stdout);
+       fputs(  _("     --report   print report for specified (or all) devices"), stdout);
        fputs(USAGE_SEPARATOR, stdout);
-       printf(USAGE_HELP_OPTIONS(16));
+       fprintf(stdout, USAGE_HELP_OPTIONS(16));
 
        fputs(USAGE_SEPARATOR, stdout);
-       puts(  _("Available commands:"));
-       printf(_(" %-25s get size in 512-byte sectors\n"), "--getsz");
+       fputs(_("Available commands:"), stdout);
+       fprintf(stdout, _(" %-25s get size in 512-byte sectors\n"), "--getsz");
        for (i = 0; i < ARRAY_SIZE(bdcms); i++) {
                if (bdcms[i].argname)
-                       printf(" %s %-*s %s\n", bdcms[i].name,
+                       fprintf(stdout, " %s %-*s %s\n", bdcms[i].name,
                                (int)(24 - strlen(bdcms[i].name)),
                                bdcms[i].argname, _(bdcms[i].help));
                else
-                       printf(" %-25s %s\n", bdcms[i].name,
+                       fprintf(stdout, " %-25s %s\n", bdcms[i].name,
                                _(bdcms[i].help));
        }
 
-       printf(USAGE_MAN_TAIL("blockdev(8)"));
+       fprintf(stdout, USAGE_MAN_TAIL("blockdev(8)"));
        exit(EXIT_SUCCESS);
 }
 
index e5c1fd8283af42189591396872bb462ab4b1796e..01069b7af2375b0f25a81c26563e391deeb6e0b1 100644 (file)
@@ -2737,9 +2737,9 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -r, --read-only          forced open cfdisk in read-only mode\n"), out);
 
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(26));
+       fprintf(out, USAGE_HELP_OPTIONS(26));
 
-       printf(USAGE_MAN_TAIL("cfdisk(8)"));
+       fprintf(out, USAGE_MAN_TAIL("cfdisk(8)"));
        exit(EXIT_SUCCESS);
 }
 
index 7ee0c525f0531c5429c757b376d425370854afa0..cd6bf5c55d9d476de2ae2b4034d1248f2d864599 100644 (file)
@@ -19,8 +19,8 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_("Tell the kernel to forget about a specified partition.\n"), out);
 
        fputs(USAGE_OPTIONS, out);
-       printf(USAGE_HELP_OPTIONS(16));
-       printf(USAGE_MAN_TAIL("delpart(8)"));
+       fprintf(out, USAGE_HELP_OPTIONS(16));
+       fprintf(out, USAGE_MAN_TAIL("delpart(8)"));
        exit(EXIT_SUCCESS);
 }
 
index 23609adf988c90a19497eaab3e8bd1137654eaf3..e776a278d75ca61f9be64ce6c07279ada7f38bf0 100644 (file)
@@ -157,8 +157,8 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -n, --no-verify   disable the verification after the format\n"), out);
 
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(19));
-       printf(USAGE_MAN_TAIL("fdformat(8)"));
+       fprintf(out, USAGE_HELP_OPTIONS(19));
+       fprintf(out, USAGE_MAN_TAIL("fdformat(8)"));
 
        exit(EXIT_SUCCESS);
 }
index 79b904f2535efa8255f6b5579e414a1f262b9c5b..c5c5f0fc713b6a9d9ab03c8a130283930f6875aa 100644 (file)
@@ -884,11 +884,11 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -S, --sectors <number>        specify the number of sectors per track\n"), out);
 
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(31));
+       fprintf(out, USAGE_HELP_OPTIONS(31));
 
        list_available_columns(out);
 
-       printf(USAGE_MAN_TAIL("fdisk(8)"));
+       fprintf(out, USAGE_MAN_TAIL("fdisk(8)"));
        exit(EXIT_SUCCESS);
 }
 
index 1b11e82614d336534e4b1b21d1fe9023a6b2d387..49f1b995d71039a8c36bfea52de26c7d1bfa2d34 100644 (file)
@@ -1412,11 +1412,11 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -V         explain what is being done\n"), out);
 
        fputs(USAGE_SEPARATOR, out);
-       printf( " -?, --help     %s\n", USAGE_OPTSTR_HELP);
-       printf( "     --version  %s\n", USAGE_OPTSTR_VERSION);
+       fprintf(out, " -?, --help     %s\n", USAGE_OPTSTR_HELP);
+       fprintf(out, "     --version  %s\n", USAGE_OPTSTR_VERSION);
        fputs(USAGE_SEPARATOR, out);
        fputs(_("See the specific fsck.* commands for available fs-options."), out);
-       printf(USAGE_MAN_TAIL("fsck(8)"));
+       fprintf(out, USAGE_MAN_TAIL("fsck(8)"));
        exit(FSCK_EX_OK);
 }
 
index 10711200a2a602dbd1a67464af4ff83d8d61c3c7..789a9b5cfad99d835b6570fabc122c0c30e9efae 100644 (file)
@@ -126,9 +126,9 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -b, --blocksize <size>   use this blocksize, defaults to page size\n"), out);
        fputs(_("     --extract[=<dir>]    test uncompression, optionally extract into <dir>\n"), out);
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(26));
+       fprintf(out, USAGE_HELP_OPTIONS(26));
 
-       printf(USAGE_MAN_TAIL("fsck.cramfs(8)"));
+       fprintf(out, USAGE_MAN_TAIL("fsck.cramfs(8)"));
        exit(FSCK_EX_OK);
 }
 
index bd44f5bd12e8fe5f0cfb39ff0e6b5c3ba6c76fae..11b10562cca84a3806050c8b5d7061541e5ea544 100644 (file)
@@ -192,8 +192,8 @@ usage(void) {
        fputs(_(" -m, --uncleared  activate mode not cleared warnings\n"), out);
        fputs(_(" -f, --force      force check\n"), out);
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(18));
-       printf(USAGE_MAN_TAIL("fsck.minix(8)"));
+       fprintf(out, USAGE_HELP_OPTIONS(18));
+       fprintf(out, USAGE_MAN_TAIL("fsck.minix(8)"));
        exit(FSCK_EX_OK);
 }
 
index 92996635684310a145330326ef66e1c2b4d1980e..bd74e93d032a9c7fea9f05701cc98e3e46755d16 100644 (file)
@@ -106,8 +106,8 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -d, --divisor=<number>  divide the amount of bytes by <number>\n"), stdout);
        fputs(_(" -x, --sectors           show sector count and size\n"), stdout);
 
-       printf(USAGE_HELP_OPTIONS(25));
-       printf(USAGE_MAN_TAIL("isosize(8)"));
+       fprintf(stdout, USAGE_HELP_OPTIONS(25));
+       fprintf(stdout, USAGE_MAN_TAIL("isosize(8)"));
 
        exit(EXIT_SUCCESS);
 }
index 40f00105e5cba004b11bea89f1246b0b5e200021..866776b7d7daad02c0413b4655729257b7d72bf2 100644 (file)
@@ -87,9 +87,9 @@ static void __attribute__((__noreturn__)) usage(void)
                       " -l                  this option is silently ignored\n"
                       " --lock[=<mode>]     use exclusive device lock (yes, no or nonblock)\n"
                       ));
-       printf(USAGE_HELP_OPTIONS(21));
+       fprintf(out, USAGE_HELP_OPTIONS(21));
 
-       printf(USAGE_MAN_TAIL("mkfs.bfs(8)"));
+       fprintf(out, USAGE_MAN_TAIL("mkfs.bfs(8)"));
        exit(EXIT_SUCCESS);
 }
 
index d6fada4ad45a0c9274b5b01337a562d94165c243..58856d87160ef112ac82e445e4282dc50823dfb9 100644 (file)
@@ -55,9 +55,9 @@ static void __attribute__((__noreturn__)) usage(void)
        fprintf(out, _("     <size>         number of blocks to be used on the device\n"));
        fprintf(out, _(" -V, --verbose      explain what is being done;\n"
                       "                      specifying -V more than once will cause a dry-run\n"));
-       printf(USAGE_HELP_OPTIONS(20));
+       fprintf(out, USAGE_HELP_OPTIONS(20));
 
-       printf(USAGE_MAN_TAIL("mkfs(8)"));
+       fprintf(out, USAGE_MAN_TAIL("mkfs(8)"));
        exit(EXIT_SUCCESS);
 }
 
index cdb7b90afc4d62500a787ab8d9ebbad86f51600b..482375351953f55b7b76c03c919c0a025c2949b8 100644 (file)
@@ -126,27 +126,27 @@ struct entry {
 static void __attribute__((__noreturn__)) usage(void)
 {
        fputs(USAGE_HEADER, stdout);
-       printf(_(" %s [-h] [-v] [-b blksize] [-e edition] [-N endian] [-i file] [-n name] dirname outfile\n"),
+       fprintf(stdout, _(" %s [-h] [-v] [-b blksize] [-e edition] [-N endian] [-i file] [-n name] dirname outfile\n"),
                program_invocation_short_name);
        fputs(USAGE_SEPARATOR, stdout);
-       puts(_("Make compressed ROM file system."));
+       fputs(_("Make compressed ROM file system."), stdout);
        fputs(USAGE_OPTIONS, stdout);
-       puts(_(  " -v             be verbose"));
-       puts(_(  " -E             make all warnings errors (non-zero exit status)"));
-       puts(_(  " -b blksize     use this blocksize, must equal page size"));
-       puts(_(  " -e edition     set edition number (part of fsid)"));
-       printf(_(" -N endian      set cramfs endianness (%s|%s|%s), default %s\n"), "big", "little", "host", "host");
-       puts(_(  " -i file        insert a file image into the filesystem"));
-       puts(_(  " -n name        set name of cramfs filesystem"));
-       printf(_(" -p             pad by %d bytes for boot code\n"), PAD_SIZE);
-       puts(_(  " -s             sort directory entries (old option, ignored)"));
-       puts(_(  " -z             make explicit holes"));
-       puts(_(  " -l[=<mode>]    use exclusive device lock (yes, no or nonblock)"));
-       puts(_(  " dirname        root of the filesystem to be compressed"));
-       puts(_(  " outfile        output file"));
+       fputs(_(  " -v             be verbose"), stdout);
+       fputs(_(  " -E             make all warnings errors (non-zero exit status)"), stdout);
+       fputs(_(  " -b blksize     use this blocksize, must equal page size"), stdout);
+       fputs(_(  " -e edition     set edition number (part of fsid)"), stdout);
+       fprintf(stdout, _(" -N endian      set cramfs endianness (%s|%s|%s), default %s\n"), "big", "little", "host", "host");
+       fputs(_(  " -i file        insert a file image into the filesystem"), stdout);
+       fputs(_(  " -n name        set name of cramfs filesystem"), stdout);
+       fprintf(stdout, _(" -p             pad by %d bytes for boot code\n"), PAD_SIZE);
+       fputs(_(  " -s             sort directory entries (old option, ignored)"), stdout);
+       fputs(_(  " -z             make explicit holes"), stdout);
+       fputs(_(  " -l[=<mode>]    use exclusive device lock (yes, no or nonblock)"), stdout);
+       fputs(_(  " dirname        root of the filesystem to be compressed"), stdout);
+       fputs(_(  " outfile        output file"), stdout);
        fputs(USAGE_SEPARATOR, stdout);
-       printf(USAGE_HELP_OPTIONS(16));
-       printf(USAGE_MAN_TAIL("mkfs.cramfs(8)"));
+       fprintf(stdout, USAGE_HELP_OPTIONS(16));
+       fprintf(stdout, USAGE_MAN_TAIL("mkfs.cramfs(8)"));
        exit(MKFS_EX_OK);
 }
 
index 4a8308ade4ed07998b6958a934a65076fa195bfc..334f07fc0a28a69bc55cdd4cd52dde239fbbbdf3 100644 (file)
@@ -148,8 +148,8 @@ static void __attribute__((__noreturn__)) usage(void)
        fprintf(out, _(
                "     --lock[=<mode>]     use exclusive device lock (%s, %s or %s)\n"), "yes", "no", "nonblock");
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(25));
-       printf(USAGE_MAN_TAIL("mkfs.minix(8)"));
+       fprintf(out, USAGE_HELP_OPTIONS(25));
+       fprintf(out, USAGE_MAN_TAIL("mkfs.minix(8)"));
        exit(MKFS_EX_OK);
 }
 
index b6deadf38acd06961593bab7a71fbc4fc7817a47..3d988b7376dda8fa17cb0abe4f754a46d96f931d 100644 (file)
@@ -201,9 +201,9 @@ static void __attribute__((__noreturn__)) usage(void)
        fprintf(out,
              _("     --lock[=<mode>]       use exclusive device lock (%s, %s or %s)\n"), "yes", "no", "nonblock");
 
-       printf(USAGE_HELP_OPTIONS(27));
+       fprintf(out, USAGE_HELP_OPTIONS(27));
 
-       printf(USAGE_MAN_TAIL("mkswap(8)"));
+       fprintf(out, USAGE_MAN_TAIL("mkswap(8)"));
        exit(EXIT_SUCCESS);
 }
 
index ac3ef14706e0c1620dcaad88e57b1d925f5e9684..dc6bac33bc5492dd6bc3553374734c315aff54b4 100644 (file)
@@ -776,13 +776,13 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -v, --verbose        verbose mode\n"), out);
 
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(22));
+       fprintf(out, USAGE_HELP_OPTIONS(22));
 
        fputs(USAGE_COLUMNS, out);
        for (i = 0; i < NCOLS; i++)
                fprintf(out, " %10s  %s\n", infos[i].name, _(infos[i].help));
 
-       printf(USAGE_MAN_TAIL("partx(8)"));
+       fprintf(out, USAGE_MAN_TAIL("partx(8)"));
 
        exit(EXIT_SUCCESS);
 }
index b44a581a2d9599a59f6d8df300c0b8a76a65a47b..308910c82a648852ad041e5a366ff989f55f9774 100644 (file)
@@ -59,8 +59,8 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(USAGE_OPTIONS, out);
        fputs(_(" -q, --query    set query mode\n"), out);
        fputs(_(" -a, --all      query all raw devices\n"), out);
-       printf(USAGE_HELP_OPTIONS(16));
-       printf(USAGE_MAN_TAIL("raw(8)"));
+       fprintf(out, USAGE_HELP_OPTIONS(16));
+       fprintf(out, USAGE_MAN_TAIL("raw(8)"));
        exit(EXIT_SUCCESS);
 }
 
index b2738271e25da14c3cf4f82d234f6c123c9ebc5d..df5ee73069f350619f87945b02dc00bf5dd9d7dd 100644 (file)
@@ -24,8 +24,8 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_("Tell the kernel about the new size of a partition.\n"), out);
 
        fputs(USAGE_OPTIONS, out);
-       printf(USAGE_HELP_OPTIONS(16));
-       printf(USAGE_MAN_TAIL("resizepart(8)"));
+       fprintf(out, USAGE_HELP_OPTIONS(16));
+       fprintf(out, USAGE_MAN_TAIL("resizepart(8)"));
        exit(EXIT_SUCCESS);
 }
 
index 0e85e63bb33fe4a724808eb41cf45124c8dc3115..d8dd8d296a9b391846f231bfc66a7f24acb76596 100644 (file)
@@ -2105,12 +2105,12 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -u, --unit S              deprecated, only sector unit is supported\n"), out);
 
        fputs(USAGE_SEPARATOR, out);
-       printf( " -h, --help                %s\n", USAGE_OPTSTR_HELP);
-       printf( " -v, --version             %s\n", USAGE_OPTSTR_VERSION);
+       fprintf(out, " -h, --help                %s\n", USAGE_OPTSTR_HELP);
+       fprintf(out, " -v, --version             %s\n", USAGE_OPTSTR_VERSION);
 
        list_available_columns(out);
 
-       printf(USAGE_MAN_TAIL("sfdisk(8)"));
+       fprintf(out, USAGE_MAN_TAIL("sfdisk(8)"));
        exit(EXIT_SUCCESS);
 }
 
@@ -2474,4 +2474,3 @@ int main(int argc, char *argv[])
        DBG(MISC, ul_debug("bye! [rc=%d]", rc));
        return rc == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
 }
-
index e6ba7d66d7f12f57e87f158decc659276cb5f4cc..b804a92bc31de459b9781febb3fb87c9af54c6fb 100644 (file)
@@ -130,8 +130,8 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -L, --label <label> specify a new label\n"
                " -U, --uuid <uuid>   specify a new uuid\n"), out);
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(21));
-       printf(USAGE_MAN_TAIL("swaplabel(8)"));
+       fprintf(out, USAGE_HELP_OPTIONS(21));
+       fprintf(out, USAGE_MAN_TAIL("swaplabel(8)"));
        exit(EXIT_SUCCESS);
 }
 
@@ -191,4 +191,3 @@ int main(int argc, char *argv[])
        }
        return rc ? EXIT_FAILURE : EXIT_SUCCESS;
 }
-
index 31750d558c6abe58486808835216de702aa523c4..f076d36e568d6c3c72504ed5025ad3a451558903 100644 (file)
@@ -77,9 +77,9 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -l, --list-shells    print list of shells and exit\n"), fp);
 
        fputs(USAGE_SEPARATOR, fp);
-       printf(USAGE_HELP_OPTIONS(22));
+       fprintf(fp, USAGE_HELP_OPTIONS(22));
 
-       printf(USAGE_MAN_TAIL("chsh(1)"));
+       fprintf(fp, USAGE_MAN_TAIL("chsh(1)"));
        exit(EXIT_SUCCESS);
 }
 
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);
 }
index b089c51c760feee09724b00ecc1e63800aded5e9..217f3f3aedc9c6dc8e4df95a9c0548a0aa94f08c 100644 (file)
@@ -1470,13 +1470,13 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_("     --btmp-file <path>   set an alternate path for btmp\n"), out);
        fputs(_("     --lastlog <path>     set an alternate path for lastlog\n"), out);
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(26));
+       fprintf(out, USAGE_HELP_OPTIONS(26));
 
        fputs(USAGE_COLUMNS, out);
        for (i = 0; i < ARRAY_SIZE(coldescs); i++)
                fprintf(out, " %14s  %s\n", coldescs[i].name, _(coldescs[i].help));
 
-       printf(USAGE_MAN_TAIL("lslogins(1)"));
+       fprintf(out, USAGE_MAN_TAIL("lslogins(1)"));
 
        exit(EXIT_SUCCESS);
 }
index 2acbc9107e46a1c7c90297ecc833bb9e9f8c7446..e71a9e134b9550aff1295bc0e49b124dcf502c7f 100644 (file)
@@ -178,8 +178,8 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_("Log in to a new group.\n"), out);
 
        fputs(USAGE_OPTIONS, out);
-       printf(USAGE_HELP_OPTIONS(16));
-       printf(USAGE_MAN_TAIL("newgrp(1)"));
+       fprintf(out, USAGE_HELP_OPTIONS(16));
+       fprintf(out, USAGE_MAN_TAIL("newgrp(1)"));
        exit(EXIT_SUCCESS);
 }
 
index ecbd0d2fec08708e0343f9db74aa596694f3c6c9..85ef3f002b408c14024e0764f640aea05f9f20eb 100644 (file)
@@ -32,9 +32,9 @@ static void __attribute__((__noreturn__)) usage(void)
 
        fputs(USAGE_OPTIONS, out);
        fputs(_(" -c, --command <command>  does nothing (for compatibility with su -c)\n"), out);
-       printf(USAGE_HELP_OPTIONS(26));
+       fprintf(out, USAGE_HELP_OPTIONS(26));
 
-       printf(USAGE_MAN_TAIL("nologin(8)"));
+       fprintf(out, USAGE_MAN_TAIL("nologin(8)"));
        exit(EXIT_FAILURE);
 }
 
index b76698561cf67c3927f884109553bb1a36016c23..019f35092bfdd3ff5d4a6a69c5e0fc0aea16ef4d 100644 (file)
@@ -883,8 +883,8 @@ static void usage(void)
                out);
 
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(26));
-       printf(USAGE_MAN_TAIL("sulogin(8)"));
+       fprintf(out, USAGE_HELP_OPTIONS(26));
+       fprintf(out, USAGE_MAN_TAIL("sulogin(8)"));
 
        exit(EXIT_SUCCESS);
 }
index eb3159ee2b43656c1d6961e4560a16bf109353f7..ce9ad718b2a5994fa6060a7ce7f99b486dc03b5b 100644 (file)
@@ -324,9 +324,9 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -f, --follow         output appended data as the file grows\n"), out);
        fputs(_(" -r, --reverse        write back dumped data into utmp file\n"), out);
        fputs(_(" -o, --output <file>  write to file instead of standard output\n"), out);
-       printf(USAGE_HELP_OPTIONS(22));
+       fprintf(out, USAGE_HELP_OPTIONS(22));
 
-       printf(USAGE_MAN_TAIL("utmpdump(1)"));
+       fprintf(out, USAGE_MAN_TAIL("utmpdump(1)"));
        exit(EXIT_SUCCESS);
 }
 
index 5049706aeefb8d5e9bb2732d3bc9dfbb2f03f2fb..0c4565b0d01f05f4c2f9dc9239486523750bf768 100644 (file)
@@ -304,8 +304,8 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_("Edit the password or group file.\n"), out);
 
        fputs(USAGE_OPTIONS, out);
-       printf(USAGE_HELP_OPTIONS(16));
-       printf(USAGE_MAN_TAIL("vipw(8)"));
+       fprintf(out, USAGE_HELP_OPTIONS(16));
+       fprintf(out, USAGE_MAN_TAIL("vipw(8)"));
        exit(EXIT_SUCCESS);
 }
 
index 6df4e074e54d8197f409e12138d22f3ca62a4ee6..bea5778fd9ad9d561a15cff9dc17d99caab1fcec 100644 (file)
@@ -100,14 +100,14 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(        " -D, --no-part-details      don't print info from partition table\n"), out);
 
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(28));
+       fprintf(out, USAGE_HELP_OPTIONS(28));
 
        fputs(USAGE_ARGUMENTS, out);
-       printf(USAGE_ARG_SIZE(_("<size> and <offset>")));
+       fprintf(out, USAGE_ARG_SIZE(_("<size> and <offset>")));
        fputs(USAGE_ARG_SEPARATOR, out);
        fputs(_(" <dev> specify device(s) to probe (default: all devices)\n"), out);
 
-       printf(USAGE_MAN_TAIL("blkid(8)"));
+       fprintf(out, USAGE_MAN_TAIL("blkid(8)"));
        exit(EXIT_SUCCESS);
 }
 
index 21ae6c6bd8b4d8f3e9c58397efc4957e0fb634a5..693449dbc6328d3d9d2d54d34d5b40c5ad9c0cfd 100644 (file)
@@ -1296,8 +1296,8 @@ static void __attribute__((__noreturn__)) usage(void)
                "                         %s\n", USAGE_COLORS_DEFAULT);
 
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(23));
-       printf(USAGE_MAN_TAIL("cal(1)"));
+       fprintf(out, USAGE_HELP_OPTIONS(23));
+       fprintf(out, USAGE_MAN_TAIL("cal(1)"));
 
        exit(EXIT_SUCCESS);
 }
index 9606fb44ec965c958a8bf211c53c30f68b8fd40f..0b8cbb05ca3b7351b4a356ec9928d0252f0373e8 100644 (file)
@@ -55,7 +55,7 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -o, --offset <num>    offset for range operations, in bytes\n"), out);
 
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(23));
+       fprintf(out, USAGE_HELP_OPTIONS(23));
 
        fputs(_("\nAvailable values for advice:\n"), out);
        for (i = 0; i < ARRAY_SIZE(advices); i++) {
@@ -63,7 +63,7 @@ static void __attribute__((__noreturn__)) usage(void)
                        advices[i].name);
        }
 
-       printf(USAGE_MAN_TAIL("fadvise(1)"));
+       fprintf(out, USAGE_MAN_TAIL("fadvise(1)"));
 
        exit(EXIT_SUCCESS);
 }
index da26b6063dc46ae986c42e0a89bd48eda701deb9..513b8111410e09c4d01a852acdb5b5536ff670bb 100644 (file)
@@ -405,14 +405,14 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -r, --raw             use raw output format\n"), out);
 
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(23));
+       fprintf(out, USAGE_HELP_OPTIONS(23));
 
        fputs(USAGE_COLUMNS, out);
 
        for (i = 0; i < ARRAY_SIZE(infos); i++)
                fprintf(out, " %22s  %s\n", infos[i].name, _(infos[i].help));
 
-       printf(USAGE_MAN_TAIL("fincore(1)"));
+       fprintf(out, USAGE_MAN_TAIL("fincore(1)"));
 
        exit(EXIT_SUCCESS);
 }
index 0997e1b49bd64f6670df31532a29ef061500928d..7b32dbda33188b2eae7ef802ae91ef6def8e7ec0 100644 (file)
@@ -32,8 +32,8 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_("Find a filesystem by label or UUID.\n"), out);
 
        fputs(USAGE_OPTIONS, out);
-       printf(USAGE_HELP_OPTIONS(16));
-       printf(USAGE_MAN_TAIL("findfs(8)"));
+       fprintf(out, USAGE_HELP_OPTIONS(16));
+       fprintf(out, USAGE_MAN_TAIL("findfs(8)"));
        exit(FINDFS_SUCCESS);
 }
 
@@ -76,4 +76,3 @@ int main(int argc, char **argv)
        puts(dev);
        return FINDFS_SUCCESS;
 }
-
index cb091201b5278f3810c75fb29d9dc8dab44e9cc0..3cfa79e5b8ff23b41daaa8fe762ceb98ef61f995 100644 (file)
@@ -1379,13 +1379,13 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_("     --vfs-all          print all VFS options\n"), out);
 
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(24));
+       fprintf(out, USAGE_HELP_OPTIONS(24));
 
        fputs(USAGE_COLUMNS, out);
        for (i = 0; i < ARRAY_SIZE(infos); i++)
                fprintf(out, " %11s  %s\n", infos[i].name, _(infos[i].help));
 
-       printf(USAGE_MAN_TAIL("findmnt(8)"));
+       fprintf(out, USAGE_MAN_TAIL("findmnt(8)"));
 
        exit(EXIT_SUCCESS);
 }
index f3621116711058adff9754ba4f57184463ab517e..f989461a7647bae8d199d88a549068bb326769aa 100644 (file)
@@ -359,8 +359,8 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -T, --test                    test for getopt(1) version\n"), stdout);
        fputs(_(" -u, --unquoted                do not quote the output\n"), stdout);
        fputs(USAGE_SEPARATOR, stdout);
-       printf(USAGE_HELP_OPTIONS(31));
-       printf(USAGE_MAN_TAIL("getopt(1)"));
+       fprintf(stdout, USAGE_HELP_OPTIONS(31));
+       fprintf(stdout, USAGE_MAN_TAIL("getopt(1)"));
        exit(EXIT_SUCCESS);
 }
 
index 7e66dfdde1c5c7914552e36df0fc4f806825ad4c..98c9f8d2912ad8da325d87e1b4e97b97b0d0f8dc 100644 (file)
@@ -1192,8 +1192,8 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_("     --skip-reflinks        skip already cloned files (enabled on --reflink)\n"), out);
 #endif
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(28));
-       printf(USAGE_MAN_TAIL("hardlink(1)"));
+       fprintf(out, USAGE_HELP_OPTIONS(28));
+       fprintf(out, USAGE_MAN_TAIL("hardlink(1)"));
 
        exit(EXIT_SUCCESS);
 }
index c469074b95f952cc1feaaca0f675f46a4e10b189..2a42267aacad9efcc858228222fb5810cb447cd0 100644 (file)
@@ -217,8 +217,8 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_("     --verbose          print pids that will be signaled\n"), out);
 
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(24));
-       printf(USAGE_MAN_TAIL("kill(1)"));
+       fprintf(out, USAGE_HELP_OPTIONS(24));
+       fprintf(out, USAGE_MAN_TAIL("kill(1)"));
 
        exit(EXIT_SUCCESS);
 }
@@ -557,4 +557,3 @@ int main(int argc, char **argv)
 
        return KILL_EXIT_SOMEOK;        /* partial success */
 }
-
index 5fe8b2ac6c9a0e1a29b3bd7d8844225130b29943..9fcf171d3360d9a942c9f4c62ec80b49836c0e9e 100644 (file)
@@ -1091,8 +1091,8 @@ static void __attribute__((__noreturn__)) usage(void)
 #endif
 
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(26));
-       printf(USAGE_MAN_TAIL("logger(1)"));
+       fprintf(out, USAGE_HELP_OPTIONS(26));
+       fprintf(out, USAGE_MAN_TAIL("logger(1)"));
 
        exit(EXIT_SUCCESS);
 }
index 0e6f1edd2b3a69652949b169d1a8d531dda3daa6..5e8229a3632cfbfdb071210a3b59288fe2e2bc7d 100644 (file)
@@ -366,8 +366,8 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -t, --terminate <char>   define the string-termination character\n"), out);
 
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(26));
-       printf(USAGE_MAN_TAIL("look(1)"));
+       fprintf(out, USAGE_HELP_OPTIONS(26));
+       fprintf(out, USAGE_MAN_TAIL("look(1)"));
 
        exit(EXIT_SUCCESS);
 }
index d5012de8a9d0e6db832787ce911eb0b5ee67a492..da9438b9fd0d20917515c3db71f68c5572e1eb11 100644 (file)
@@ -2016,14 +2016,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));
 
        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);
 }
index aae31e574fcd70b843c54306b83ec46a87925498..e74f9711c99edeb8e74e453336d59ddba00f2048 100644 (file)
@@ -193,7 +193,7 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -c, --cpu-clock <pid>      also display CPU clock of specified process\n"), out);
 
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(29));
+       fprintf(out, USAGE_HELP_OPTIONS(29));
 
        fputs(USAGE_COLUMNS, out);
 
@@ -206,7 +206,7 @@ static void __attribute__((__noreturn__)) usage(void)
                        "<boolean>",
                        _(infos[i].help));
 
-       printf(USAGE_MAN_TAIL("lslocks(1)"));
+       fprintf(out, USAGE_MAN_TAIL("lslocks(1)"));
 
        exit(EXIT_SUCCESS);
 }
index 87ddfdcdc7469c0cf6145c59f298b51cde418ae2..b3f0664350a3b0b77e6b5195041b2eaa015167fe 100644 (file)
@@ -563,14 +563,14 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -u, --notruncate       don't truncate text in columns\n"), out);
 
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(24));
+       fprintf(out, USAGE_HELP_OPTIONS(24));
 
        fputs(USAGE_COLUMNS, out);
 
        for (i = 0; i < ARRAY_SIZE(infos); i++)
                fprintf(out, " %11s  %s\n", infos[i].name, _(infos[i].help));
 
-       printf(USAGE_MAN_TAIL("lslocks(8)"));
+       fprintf(out, USAGE_MAN_TAIL("lslocks(8)"));
 
        exit(EXIT_SUCCESS);
 }
index be5c34ae4c00e5ffe0d33efd166ec44fe036b5d7..5a01b4605a8328b310f642bee2455014a4e89a73 100644 (file)
@@ -91,12 +91,12 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -v, --verbose         explain what is being done\n"), out);
 
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(23));
+       fprintf(out, USAGE_HELP_OPTIONS(23));
 
        fputs(USAGE_ARGUMENTS, out);
-       printf(USAGE_ARG_SIZE(_("<num>")));
+       fprintf(out, USAGE_ARG_SIZE(_("<num>")));
 
-       printf(USAGE_MAN_TAIL("mcookie(1)"));
+       fprintf(out, USAGE_MAN_TAIL("mcookie(1)"));
 
        exit(EXIT_SUCCESS);
 }
index 3d41407237d6cd7821307f19297a568e78dfef3a..0a9ed8df80eb50bdb8613bfe19e1aa60386fcc4e 100644 (file)
@@ -373,9 +373,9 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_( " -Z, --context       print any security context of each file \n"), out);
 #endif
 
-       printf(USAGE_HELP_OPTIONS(21));
+       fprintf(out, USAGE_HELP_OPTIONS(21));
 
-       printf(USAGE_MAN_TAIL("namei(1)"));
+       fprintf(out, USAGE_MAN_TAIL("namei(1)"));
        exit(EXIT_SUCCESS);
 }
 
@@ -488,4 +488,3 @@ main(int argc, char **argv)
 
        return rc;
 }
-
index f586acb87a43ec5a00fb323c1e6277757b577f8a..880408a92bc8bb7c04feb9473e1952aefeeb89aa 100644 (file)
@@ -62,37 +62,37 @@ static char opt_verbose = 0;        /* --verbose */
 static void __attribute__((__noreturn__)) usage(void)
 {
        fputs(USAGE_HEADER, stdout);
-       printf(_(" %s [options] [--set <size>] [--] [command]\n"), program_invocation_short_name);
-       printf(_(" %s [options] --get\n"), program_invocation_short_name);
+       fprintf(stdout, _(" %s [options] [--set <size>] [--] [command]\n"), program_invocation_short_name);
+       fprintf(stdout, _(" %s [options] --get\n"), program_invocation_short_name);
 
        fputs(USAGE_SEPARATOR, stdout);
        /* TRANSLATORS: 'command' refers to a program argument */
-       puts(_("Set or examine pipe buffer sizes and optionally execute command."));
+       fputs(_("Set or examine pipe buffer sizes and optionally execute command."), stdout);
 
        fputs(USAGE_OPTIONS, stdout);
-       puts(_(" -g, --get          examine pipe buffers"));
+       fputs(_(" -g, --get          examine pipe buffers"), stdout);
        /* TRANSLATORS: '%s' refers to a system file */
-       printf(
+       fprintf(stdout,
             _(" -s, --set <size>   set pipe buffer sizes\n"
               "                      size defaults to %s\n"),
                PIPESZ_DEFAULT_SIZE_FILE);
 
        fputs(USAGE_SEPARATOR, stdout);
-       puts(_(" -f, --file <path>  act on a file"));
-       puts(_(" -n, --fd <num>     act on a file descriptor"));
-       puts(_(" -i, --stdin        act on standard input"));
-       puts(_(" -o, --stdout       act on standard output"));
-       puts(_(" -e, --stderr       act on standard error"));
+       fputs(_(" -f, --file <path>  act on a file"), stdout);
+       fputs(_(" -n, --fd <num>     act on a file descriptor"), stdout);
+       fputs(_(" -i, --stdin        act on standard input"), stdout);
+       fputs(_(" -o, --stdout       act on standard output"), stdout);
+       fputs(_(" -e, --stderr       act on standard error"), stdout);
 
        fputs(USAGE_SEPARATOR, stdout);
-       puts(_(" -c, --check        do not continue after an error"));
-       puts(_(" -q, --quiet        do not warn of non-fatal errors"));
-       puts(_(" -v, --verbose      provide detailed output"));
+       fputs(_(" -c, --check        do not continue after an error"), stdout);
+       fputs(_(" -q, --quiet        do not warn of non-fatal errors"), stdout);
+       fputs(_(" -v, --verbose      provide detailed output"), stdout);
 
        fputs(USAGE_SEPARATOR, stdout);
-       printf(USAGE_HELP_OPTIONS(20));
+       fprintf(stdout, USAGE_HELP_OPTIONS(20));
 
-       printf(USAGE_MAN_TAIL("pipesz(1)"));
+       fprintf(stdout, USAGE_MAN_TAIL("pipesz(1)"));
 
        exit(EXIT_SUCCESS);
 }
index 04e61ed5bbc757c0caec6e5e98a35cea7df88e3c..66a15833c6d58b3529bf34357334917e6f2a0ee7 100644 (file)
@@ -270,8 +270,8 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -o, --no-overwrite  don't overwrite existing files\n"), out);
        fputs(_(" -i, --interactive   prompt before overwrite\n"), out);
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(21));
-       printf(USAGE_MAN_TAIL("rename(1)"));
+       fprintf(out, USAGE_HELP_OPTIONS(21));
+       fprintf(out, USAGE_MAN_TAIL("rename(1)"));
        exit(EXIT_SUCCESS);
 }
 
index db8b0c789dbf190a8a417f91d73971d651c78f84..fd121c5bca05d242d96c14fa538a9cbe92047111 100644 (file)
@@ -113,8 +113,8 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -d, --debug             run in debugging mode\n"), out);
        fputs(_(" -q, --quiet             turn on quiet mode\n"), out);
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(25));
-       printf(USAGE_MAN_TAIL("uuidd(8)"));
+       fprintf(out, USAGE_HELP_OPTIONS(25));
+       fprintf(out, USAGE_MAN_TAIL("uuidd(8)"));
        exit(EXIT_SUCCESS);
 }
 
index ee1235d32f5adcbb6a4f7d4ea42e956f863ffef2..27429223cef8839807e39bc7faeff247132e1250 100644 (file)
@@ -34,15 +34,15 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -r, --random          generate random-based uuid\n"), out);
        fputs(_(" -t, --time            generate time-based uuid\n"), out);
        fputs(_(" -n, --namespace <ns>  generate hash-based uuid in this namespace\n"), out);
-       printf(_("                        available namespaces: %s\n"), "@dns @url @oid @x500");
+       fprintf(out, _("                        available namespaces: %s\n"), "@dns @url @oid @x500");
        fputs(_(" -N, --name <name>     generate hash-based uuid from this name\n"), out);
        fputs(_(" -m, --md5             generate md5 hash\n"), out);
        fputs(_(" -C, --count <num>     generate more uuids in loop\n"), out);
        fputs(_(" -s, --sha1            generate sha1 hash\n"), out);
        fputs(_(" -x, --hex             interpret name as hex string\n"), out);
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(21));
-       printf(USAGE_MAN_TAIL("uuidgen(1)"));
+       fprintf(out, USAGE_HELP_OPTIONS(21));
+       fprintf(out, USAGE_MAN_TAIL("uuidgen(1)"));
        exit(EXIT_SUCCESS);
 }
 
index 2dc6dfb3763bad9e00c563fdc5056e6531b52f3b..873b2d4049410895456d2fdaec12a1f255cb8b53 100644 (file)
@@ -97,17 +97,17 @@ static void __attribute__((__noreturn__)) usage(void)
        fprintf(stdout, _(" %s [options] <uuid ...>\n"), program_invocation_short_name);
 
        fputs(USAGE_OPTIONS, stdout);
-       puts(_(" -J, --json             use JSON output format"));
-       puts(_(" -n, --noheadings       don't print headings"));
-       puts(_(" -o, --output <list>    COLUMNS to display (see below)"));
-       puts(_(" -r, --raw              use the raw output format"));
-       printf(USAGE_HELP_OPTIONS(24));
+       fputs(_(" -J, --json             use JSON output format"), stdout);
+       fputs(_(" -n, --noheadings       don't print headings"), stdout);
+       fputs(_(" -o, --output <list>    COLUMNS to display (see below)"), stdout);
+       fputs(_(" -r, --raw              use the raw output format"), stdout);
+       fprintf(stdout, USAGE_HELP_OPTIONS(24));
 
        fputs(USAGE_COLUMNS, stdout);
        for (i = 0; i < ARRAY_SIZE(infos); i++)
                fprintf(stdout, " %8s  %s\n", infos[i].name, _(infos[i].help));
 
-       printf(USAGE_MAN_TAIL("uuidparse(1)"));
+       fprintf(stdout, USAGE_MAN_TAIL("uuidparse(1)"));
        exit(EXIT_SUCCESS);
 }
 
index d21b434762c8bb3cf997a6bd561c6098d3806d3d..c11efa539e8cbe3ec5cba44cc7745d8367a99328 100644 (file)
@@ -220,8 +220,8 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -l         output effective lookup paths\n"), out);
 
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(16));
-       printf(USAGE_MAN_TAIL("whereis(1)"));
+       fprintf(out, USAGE_HELP_OPTIONS(16));
+       fprintf(out, USAGE_MAN_TAIL("whereis(1)"));
        exit(EXIT_SUCCESS);
 }
 
index 6be470bbbaae3093d49cdd06e730dd22b1407240..132f677b14c59f5bad669bd6adfe5a56da7f409a 100644 (file)
@@ -630,36 +630,36 @@ usage(void)
        size_t i;
 
        fputs(USAGE_HEADER, stdout);
-       printf(_(" %s [options] <device>\n"), program_invocation_short_name);
+       fprintf(stdout, _(" %s [options] <device>\n"), program_invocation_short_name);
 
        fputs(USAGE_SEPARATOR, stdout);
-       puts(_("Wipe signatures from a device."));
+       fputs(_("Wipe signatures from a device."), stdout);
 
        fputs(USAGE_OPTIONS, stdout);
-       puts(_(" -a, --all           wipe all magic strings (BE CAREFUL!)"));
-       puts(_(" -b, --backup        create a signature backup in $HOME"));
-       puts(_(" -f, --force         force erasure"));
-       puts(_(" -i, --noheadings    don't print headings"));
-       puts(_(" -J, --json          use JSON output format"));
-       puts(_(" -n, --no-act        do everything except the actual write() call"));
-       puts(_(" -o, --offset <num>  offset to erase, in bytes"));
-       puts(_(" -O, --output <list> COLUMNS to display (see below)"));
-       puts(_(" -p, --parsable      print out in parsable instead of printable format"));
-       puts(_(" -q, --quiet         suppress output messages"));
-       puts(_(" -t, --types <list>  limit the set of filesystem, RAIDs or partition tables"));
-       printf(
+       fputs(_(" -a, --all           wipe all magic strings (BE CAREFUL!)"), stdout);
+       fputs(_(" -b, --backup        create a signature backup in $HOME"), stdout);
+       fputs(_(" -f, --force         force erasure"), stdout);
+       fputs(_(" -i, --noheadings    don't print headings"), stdout);
+       fputs(_(" -J, --json          use JSON output format"), stdout);
+       fputs(_(" -n, --no-act        do everything except the actual write() call"), stdout);
+       fputs(_(" -o, --offset <num>  offset to erase, in bytes"), stdout);
+       fputs(_(" -O, --output <list> COLUMNS to display (see below)"), stdout);
+       fputs(_(" -p, --parsable      print out in parsable instead of printable format"), stdout);
+       fputs(_(" -q, --quiet         suppress output messages"), stdout);
+       fputs(_(" -t, --types <list>  limit the set of filesystem, RAIDs or partition tables"), stdout);
+       fprintf(stdout,
             _("     --lock[=<mode>] use exclusive device lock (%s, %s or %s)\n"), "yes", "no", "nonblock");
 
-       printf(USAGE_HELP_OPTIONS(21));
+       fprintf(stdout, USAGE_HELP_OPTIONS(21));
 
        fputs(USAGE_ARGUMENTS, stdout);
-       printf(USAGE_ARG_SIZE(_("<num>")));
+       fprintf(stdout, USAGE_ARG_SIZE(_("<num>")));
 
        fputs(USAGE_COLUMNS, stdout);
        for (i = 0; i < ARRAY_SIZE(infos); i++)
                fprintf(stdout, " %8s  %s\n", infos[i].name, _(infos[i].help));
 
-       printf(USAGE_MAN_TAIL("wipefs(8)"));
+       fprintf(stdout, USAGE_MAN_TAIL("wipefs(8)"));
        exit(EXIT_SUCCESS);
 }
 
index eedb9d83bf5ed5c7ba7934b7ebff65e8dc7d5147..d343ceca0e342ebc1fc6e6524e9f290230c14bf1 100644 (file)
@@ -90,9 +90,9 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -v, --verbose        display status information\n"), out);
 
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(22));
+       fprintf(out, USAGE_HELP_OPTIONS(22));
 
-       printf(USAGE_MAN_TAIL("chrt(1)"));
+       fprintf(out, USAGE_MAN_TAIL("chrt(1)"));
        exit(EXIT_SUCCESS);
 }
 
index 8be83dfe89ce09f6929f50f32629d3426a41f992..e8d39173feb44f0bbf6715527fe52f1985660d1c 100644 (file)
@@ -123,9 +123,9 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -u, --uid <uid>...     act on already running processes owned by these users\n"), out);
 
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(24));
+       fprintf(out, USAGE_HELP_OPTIONS(24));
 
-       printf(USAGE_MAN_TAIL("ionice(1)"));
+       fprintf(out, USAGE_MAN_TAIL("ionice(1)"));
 
        exit(EXIT_SUCCESS);
 }
index 0872aa273a9500f470d74e67df2cd41f2b16320b..98c8da17ef49a492f424d8df60d3293772958723 100644 (file)
@@ -66,7 +66,7 @@ static void __attribute__((__noreturn__)) usage(void)
                " -p, --pid               operate on existing given pid\n"
                " -c, --cpu-list          display and specify cpus in list format\n"
                ));
-       printf(USAGE_HELP_OPTIONS(25));
+       fprintf(out, USAGE_HELP_OPTIONS(25));
 
        fputs(USAGE_SEPARATOR, out);
        fprintf(out, _(
@@ -82,7 +82,7 @@ static void __attribute__((__noreturn__)) usage(void)
                "    e.g. 0-31:2 is equivalent to mask 0x55555555\n"),
                program_invocation_short_name);
 
-       printf(USAGE_MAN_TAIL("taskset(1)"));
+       fprintf(out, USAGE_MAN_TAIL("taskset(1)"));
        exit(EXIT_SUCCESS);
 }
 
index 011fac4ae4f8c4615a5020ae7ee96fd17372c78e..5968de93dbe81af9f65fcf5022740e6e54601e58 100644 (file)
@@ -69,13 +69,13 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -R, --reset-on-fork  set reset-on-fork flag\n"), out);
        fputs(_(" -v, --verbose        display status information\n"), out);
 
-       printf(USAGE_HELP_OPTIONS(22));
+       fprintf(out, USAGE_HELP_OPTIONS(22));
 
        fputs(USAGE_SEPARATOR, out);
        fputs(_("Utilization value range is [0:1024]. Use special -1 value to "
                "reset to system's default.\n"), out);
 
-       printf(USAGE_MAN_TAIL("uclampset(1)"));
+       fprintf(out, USAGE_MAN_TAIL("uclampset(1)"));
        exit(EXIT_SUCCESS);
 }
 
index ed8d6a00365c08c7802ecd4cdca88505e4e7a7d0..16c32e6e5770c77d359b0a9607385aeab07eb4d8 100644 (file)
@@ -105,12 +105,12 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -z, --zeroout       zero-fill rather than discard\n"), out);
 
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(21));
+       fprintf(out, USAGE_HELP_OPTIONS(21));
 
        fputs(USAGE_ARGUMENTS, out);
-       printf(USAGE_ARG_SIZE(_("<num>")));
+       fprintf(out, USAGE_ARG_SIZE(_("<num>")));
 
-       printf(USAGE_MAN_TAIL("blkdiscard(8)"));
+       fprintf(out, USAGE_MAN_TAIL("blkdiscard(8)"));
        exit(EXIT_SUCCESS);
 }
 
index 90763db402ccebca5ec0b423fd38e8ceddfb5e77..7f88eba50cdc35a6fd5f7faeae242f83b11785a2 100644 (file)
@@ -223,7 +223,7 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -t, --type <type>        command type\n"), out);
 
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(26));
+       fprintf(out, USAGE_HELP_OPTIONS(26));
 
        fputs(USAGE_ARGUMENTS, out);
 
@@ -236,7 +236,7 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" <type> is a command type, available types:\n"), out);
        print_pr_type(out);
 
-       printf(USAGE_MAN_TAIL("blkpr(8)"));
+       fprintf(out, USAGE_MAN_TAIL("blkpr(8)"));
        exit(EXIT_SUCCESS);
 }
 
index 81191e1bc596f10aab0dd0798b1f6bc7d3fa203e..9706d615cb5f9a53d95accbf150bef3a6ff459bb 100644 (file)
@@ -402,12 +402,12 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -f, --force            enforce on block devices used by the system\n"), out);
        fputs(_(" -v, --verbose          display more details\n"), out);
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(24));
+       fprintf(out, USAGE_HELP_OPTIONS(24));
 
        fputs(USAGE_ARGUMENTS, out);
-       printf(USAGE_ARG_SIZE(_("<sector> and <sectors>")));
+       fprintf(out, USAGE_ARG_SIZE(_("<sector> and <sectors>")));
 
-       printf(USAGE_MAN_TAIL("blkzone(8)"));
+       fprintf(out, USAGE_MAN_TAIL("blkzone(8)"));
        exit(EXIT_SUCCESS);
 }
 
index 527bce5586bc7fc7d174a0d5e662552749810b7e..ab765a67e2825f90e3d34e65ff0fb9f6fd31d697 100644 (file)
@@ -253,9 +253,9 @@ static void __attribute__((__noreturn__)) usage(void)
                " -p, --dispatch <mode>         set dispatching mode\n"
                " -r, --rescan                  trigger rescan of cpus\n"
                ), stdout);
-       printf(USAGE_HELP_OPTIONS(31));
+       fprintf(stdout, USAGE_HELP_OPTIONS(31));
 
-       printf(USAGE_MAN_TAIL("chcpu(8)"));
+       fprintf(stdout, USAGE_MAN_TAIL("chcpu(8)"));
        exit(EXIT_SUCCESS);
 }
 
index 09d0af6c0c860039512cc4f796b55b4b58b4ad23..4e79859c2ee3effd05987517c810f93dfda9465a 100644 (file)
@@ -348,13 +348,13 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -b, --blocks       use memory blocks\n"), out);
        fputs(_(" -z, --zone <name>  select memory zone (see below)\n"), out);
        fputs(_(" -v, --verbose      verbose output\n"), out);
-       printf(USAGE_HELP_OPTIONS(20));
+       fprintf(out, USAGE_HELP_OPTIONS(20));
 
        fputs(_("\nSupported zones:\n"), out);
        for (i = 0; i < ARRAY_SIZE(zone_names); i++)
                fprintf(out, " %s\n", zone_names[i]);
 
-       printf(USAGE_MAN_TAIL("chmem(8)"));
+       fprintf(out, USAGE_MAN_TAIL("chmem(8)"));
 
        exit(EXIT_SUCCESS);
 }
index b3d3e4d91368c2a2bc1b417a28e9b156b31f4aac..4bf746b61e0a1edced2be116a732cfc7719f896a 100644 (file)
@@ -47,8 +47,8 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -n, --adjust <num>     specify the adjust score value\n"), out);
        fputs(_(" -p, --pid <num>        process ID\n"), out);
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(24));
-       printf(USAGE_MAN_TAIL("choom(1)"));
+       fprintf(out, USAGE_HELP_OPTIONS(24));
+       fprintf(out, USAGE_MAN_TAIL("choom(1)"));
        exit(EXIT_SUCCESS);
 }
 
index 303d2dc95cf16bf726468c048e5987f6ad082961..bab3a4c0f06e6700075cb88046028ef9178eb35d 100644 (file)
@@ -31,8 +31,8 @@ static void __attribute__((__noreturn__)) usage(void)
        fprintf(out, _("Set the function of the Ctrl-Alt-Del combination.\n"));
 
        fputs(USAGE_OPTIONS, out);
-       printf(USAGE_HELP_OPTIONS(16));
-       printf(USAGE_MAN_TAIL("ctrlaltdel(8)"));
+       fprintf(out, USAGE_HELP_OPTIONS(16));
+       fprintf(out, USAGE_MAN_TAIL("ctrlaltdel(8)"));
        exit(EXIT_SUCCESS);
 }
 
index f33a23dc2fb9ad14a3cfcbb3edad56b290803c17..79e1c1690a167684827d4a533426f2402c87fd90 100644 (file)
@@ -322,7 +322,7 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_("     --until <time>          display the lines until the specified time\n"), out);
 
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(29));
+       fprintf(out, USAGE_HELP_OPTIONS(29));
        fputs(_("\nSupported log facilities:\n"), out);
        for (i = 0; i < ARRAY_SIZE(level_names); i++)
                fprintf(out, " %7s - %s\n",
@@ -335,7 +335,7 @@ static void __attribute__((__noreturn__)) usage(void)
                        level_names[i].name,
                        _(level_names[i].help));
 
-       printf(USAGE_MAN_TAIL("dmesg(1)"));
+       fprintf(out, USAGE_MAN_TAIL("dmesg(1)"));
        exit(EXIT_SUCCESS);
 }
 
index 6037ddc8f8450ca9e20e5429dce8271fac71e31b..166d591ec77f112df3e0c645a3f1366e67282fde 100644 (file)
@@ -164,10 +164,10 @@ static void __attribute__((__noreturn__)) usage(void)
                out);
 
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(29));
+       fprintf(out, USAGE_HELP_OPTIONS(29));
 
        fputs(_("\nBy default tries -r, -s, -f, and -q in order until success.\n"), out);
-       printf(USAGE_MAN_TAIL("eject(1)"));
+       fprintf(out, USAGE_MAN_TAIL("eject(1)"));
 
        exit(EXIT_SUCCESS);
 }
index 307fbd858b2530b66effa16952be8021d0007538..86d17dbf1e9ba7d0d1e09dd2a033548803fd2001 100644 (file)
@@ -101,12 +101,12 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -v, --verbose        verbose mode\n"), out);
 
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(22));
+       fprintf(out, USAGE_HELP_OPTIONS(22));
 
        fputs(USAGE_ARGUMENTS, out);
-       printf(USAGE_ARG_SIZE(_("<num>")));
+       fprintf(out, USAGE_ARG_SIZE(_("<num>")));
 
-       printf(USAGE_MAN_TAIL("fallocate(1)"));
+       fprintf(out, USAGE_MAN_TAIL("fallocate(1)"));
 
        exit(EXIT_SUCCESS);
 }
index 6079920dff6bfa61d41ebdfa398cb2e189a635e5..bba621a2ec3ed542cfdaf4275daf7795c78abdf7 100644 (file)
@@ -49,7 +49,7 @@
 static void __attribute__((__noreturn__)) usage(void)
 {
        fputs(USAGE_HEADER, stdout);
-       printf(
+       fprintf(stdout,
                _(" %1$s [options] <file>|<directory> <command> [<argument>...]\n"
                  " %1$s [options] <file>|<directory> -c <command>\n"
                  " %1$s [options] <file descriptor number>\n"),
@@ -70,8 +70,8 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(  " -F, --no-fork            execute command without forking\n"), stdout);
        fputs(_(  "     --verbose            increase verbosity\n"), stdout);
        fputs(USAGE_SEPARATOR, stdout);
-       printf(USAGE_HELP_OPTIONS(26));
-       printf(USAGE_MAN_TAIL("flock(1)"));
+       fprintf(stdout, USAGE_HELP_OPTIONS(26));
+       fprintf(stdout, USAGE_MAN_TAIL("flock(1)"));
        exit(EXIT_SUCCESS);
 }
 
index cd2bb4790f34d0cb53046f836309695ff6716dc8..d2d9402ee5cc11a2e90b42b604039f2d902b57d4 100644 (file)
@@ -47,8 +47,8 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -f, --freeze      freeze the filesystem\n"), out);
        fputs(_(" -u, --unfreeze    unfreeze the filesystem\n"), out);
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(19));
-       printf(USAGE_MAN_TAIL("fsfreeze(8)"));
+       fprintf(out, USAGE_HELP_OPTIONS(19));
+       fprintf(out, USAGE_MAN_TAIL("fsfreeze(8)"));
 
        exit(EXIT_SUCCESS);
 }
@@ -147,4 +147,3 @@ done:
        close(fd);
        return rc;
 }
-
index 96b7d2d484657b388e73d922376e7b5efc9456c3..446217e71dc9e57d6e7139b75b059f04b627481a 100644 (file)
@@ -469,12 +469,12 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -n, --dry-run            does everything, but trim\n"), out);
 
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(21));
+       fprintf(out, USAGE_HELP_OPTIONS(21));
 
        fputs(USAGE_ARGUMENTS, out);
-       printf(USAGE_ARG_SIZE(_("<num>")));
+       fprintf(out, USAGE_ARG_SIZE(_("<num>")));
 
-       printf(USAGE_MAN_TAIL("fstrim(8)"));
+       fprintf(out, USAGE_MAN_TAIL("fstrim(8)"));
        exit(EXIT_SUCCESS);
 }
 
index b043646b3c5a7caa2f0ecced1149bd31ba7931a2..e310cbcc72627843568c6aa6389d84324c1f2aec 100644 (file)
@@ -1256,22 +1256,22 @@ usage(void)
        puts(_(" -v, --verbose                   display more details"));
 
        fputs(USAGE_SEPARATOR, stdout);
-       printf(USAGE_HELP_OPTIONS(33));
+       fprintf(stdout, USAGE_HELP_OPTIONS(33));
 
 #ifdef __linux__
        fputs(USAGE_ARGUMENTS, stdout);
-       puts(_(" <param> is either a numeric RTC parameter value or one of these aliases:"));
+       fputs(_(" <param> is either a numeric RTC parameter value or one of these aliases:"), stdout);
 
        while (param->name) {
-               printf(_("   - %1$s: %2$s (0x%3$x)\n"), param->name, param->help, param->id);
+               fprintf(stdout, _("   - %1$s: %2$s (0x%3$x)\n"), param->name, param->help, param->id);
                param++;
        }
 
-       puts(_("   See Kernel's include/uapi/linux/rtc.h for parameters and values."));
+       fputs(_("   See Kernel's include/uapi/linux/rtc.h for parameters and values."), stdout);
        fputs(USAGE_ARG_SEPARATOR, stdout);
-       puts(_(" <param> and <value> accept hexadecimal values if prefixed with 0x, otherwise decimal."));
+       fputs(_(" <param> and <value> accept hexadecimal values if prefixed with 0x, otherwise decimal."), stdout);
 #endif
-       printf(USAGE_MAN_TAIL("hwclock(8)"));
+       fprintf(stdout, USAGE_MAN_TAIL("hwclock(8)"));
        exit(EXIT_SUCCESS);
 }
 
index 9c1f60868c3da996c2c1da7950ca46252dc51978..67a7637f629ef4a7543b1465fb4acf2147f408d4 100644 (file)
@@ -76,12 +76,12 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -p, --mode <mode>        permission for the resource (default is 0644)\n"), out);
 
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(26));
+       fprintf(out, USAGE_HELP_OPTIONS(26));
 
        fputs(USAGE_ARGUMENTS, out);
-       printf(USAGE_ARG_SIZE(_("<size>")));
+       fprintf(out, USAGE_ARG_SIZE(_("<size>")));
 
-       printf(USAGE_MAN_TAIL("ipcmk(1)"));
+       fprintf(out, USAGE_MAN_TAIL("ipcmk(1)"));
 
        exit(EXIT_SUCCESS);
 }
index 52768a242971313ec8e67ea1f7e53e418f6ea732..7ea8ffd3ad8a9a6a69b25576baefe582b681daeb 100644 (file)
@@ -65,8 +65,8 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -v, --verbose              explain what is being done\n"), out);
 
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(28));
-       printf(USAGE_MAN_TAIL("ipcrm(1)"));
+       fprintf(out, USAGE_HELP_OPTIONS(28));
+       fprintf(out, USAGE_MAN_TAIL("ipcrm(1)"));
 
        exit(EXIT_SUCCESS);
 }
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);
 }
index eb0e6bc661b5e6ed5704587c8a80699076ee0aa8..4cad0f97d6a75adf2f7c00c5c6dde4754e6293dd 100644 (file)
@@ -272,7 +272,7 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -s, --sort <column>  specify sort column\n"), stdout);
        fputs(_(" -S, --softirq        show softirqs instead of interrupts\n"), stdout);
        fputs(USAGE_SEPARATOR, stdout);
-       printf(USAGE_HELP_OPTIONS(22));
+       fprintf(stdout, USAGE_HELP_OPTIONS(22));
 
        fputs(_("\nThe following interactive key commands are valid:\n"), stdout);
        fputs(_("  i      sort by IRQ\n"), stdout);
@@ -284,7 +284,7 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(USAGE_COLUMNS, stdout);
        irq_print_columns(stdout, 0);
 
-       printf(USAGE_MAN_TAIL("irqtop(1)"));
+       fprintf(stdout, USAGE_MAN_TAIL("irqtop(1)"));
        exit(EXIT_SUCCESS);
 }
 
index 9c67eeec80ffdcaf498273c25038f47f9e3128d4..0282abd0b287573f7cefa0d55b2cfadf061f01b8 100644 (file)
@@ -217,7 +217,7 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -i, --iflag [-]<iflag>  set input mode flag\n"), out);
 
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(25));
+       fprintf(out, USAGE_HELP_OPTIONS(25));
 
        fputs(_("\nKnown <ldisc> names:\n"), out);
        print_table(out, ld_discs);
@@ -226,7 +226,7 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_("\nKnown <iflag> names:\n"), out);
        print_table(out, ld_iflags);
 
-       printf(USAGE_MAN_TAIL("ldattach(8)"));
+       fprintf(out, USAGE_MAN_TAIL("ldattach(8)"));
        exit(EXIT_SUCCESS);
 }
 
index 0ca910ae334751abdce5f01114e844803481534c..454e9a145d27f602cad6150c1af90ae75835d36c 100644 (file)
@@ -488,13 +488,13 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_("     --raw                     use raw --list output format\n"), out);
 
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(31));
+       fprintf(out, USAGE_HELP_OPTIONS(31));
 
        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("losetup(8)"));
+       fprintf(out, USAGE_MAN_TAIL("losetup(8)"));
 
        exit(EXIT_SUCCESS);
 }
@@ -992,4 +992,3 @@ int main(int argc, char **argv)
        loopcxt_deinit(&lc);
        return res ? EXIT_FAILURE : EXIT_SUCCESS;
 }
-
index aded21a3846d7b07af58314a6e82bb668de0c757..278f2be5816ea20848b4382312c2d605203052e6 100644 (file)
@@ -1198,7 +1198,7 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_("     --hierarchic[=when] use subsections in summary (auto, never, always)\n"), out);
        fputs(_("     --output-all        print all available columns for -e, -p or -C\n"), out);
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(25));
+       fprintf(out, USAGE_HELP_OPTIONS(25));
 
        fputs(_("\nAvailable output columns for -e or -p:\n"), out);
        for (i = 0; i < ARRAY_SIZE(coldescs_cpu); i++)
@@ -1208,7 +1208,7 @@ static void __attribute__((__noreturn__)) usage(void)
        for (i = 0; i < ARRAY_SIZE(coldescs_cache); i++)
                fprintf(out, " %13s  %s\n", coldescs_cache[i].name, _(coldescs_cache[i].help));
 
-       printf(USAGE_MAN_TAIL("lscpu(1)"));
+       fprintf(out, USAGE_MAN_TAIL("lscpu(1)"));
 
        exit(EXIT_SUCCESS);
 }
index 9ad7b19002be416ce3004c81c8b2d3bd402d69f8..2c55611128e19c52513bd15cbc71358ffe417562 100644 (file)
@@ -320,7 +320,7 @@ static void __attribute__((__noreturn__)) usage(void)
 
 
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(26));
+       fprintf(out, USAGE_HELP_OPTIONS(26));
 
        fprintf(out, _("\nGeneric columns:\n"));
        for (i = COLDESC_IDX_GEN_FIRST; i <= COLDESC_IDX_GEN_LAST; i++)
@@ -342,7 +342,7 @@ static void __attribute__((__noreturn__)) usage(void)
        for (i = COLDESC_IDX_SUM_FIRST; i <= COLDESC_IDX_SUM_LAST; i++)
                fprintf(out, " %14s  %s\n", coldescs[i].name, _(coldescs[i].help));
 
-       printf(USAGE_MAN_TAIL("lsipc(1)"));
+       fprintf(out, USAGE_MAN_TAIL("lsipc(1)"));
        exit(EXIT_SUCCESS);
 }
 
@@ -1354,4 +1354,3 @@ int main(int argc, char *argv[])
 
        return EXIT_SUCCESS;
 }
-
index 375476dca84ab686878396200ddcdc42f1f491b8..ba281a7913e7ec7818c152e29f0e92051bd80650 100644 (file)
@@ -57,7 +57,7 @@ static void __attribute__((__noreturn__)) usage(void)
        printf(_(" %s [options]\n"), program_invocation_short_name);
        fputs(USAGE_SEPARATOR, stdout);
 
-       puts(_("Utility to display kernel interrupt information."));
+       fputs(_("Utility to display kernel interrupt information."), stdout);
 
        fputs(USAGE_OPTIONS, stdout);
        fputs(_(" -J, --json           use JSON output format\n"), stdout);
@@ -67,12 +67,12 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -s, --sort <column>  specify sort column\n"), stdout);
        fputs(_(" -S, --softirq        show softirqs instead of interrupts\n"), stdout);
        fputs(USAGE_SEPARATOR, stdout);
-       printf(USAGE_HELP_OPTIONS(22));
+       fprintf(stdout, USAGE_HELP_OPTIONS(22));
 
        fputs(USAGE_COLUMNS, stdout);
        irq_print_columns(stdout, 1);
 
-       printf(USAGE_MAN_TAIL("lsirq(1)"));
+       fprintf(stdout, USAGE_MAN_TAIL("lsirq(1)"));
        exit(EXIT_SUCCESS);
 }
 
index 0f6b91edbe4edb9ae89bf461e70203ba969c1c1b..86c912c744f3b736e523a08d6799b2851d55bae6 100644 (file)
@@ -535,13 +535,13 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_("     --summary[=when] print summary information (never,always or only)\n"), out);
 
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(22));
+       fprintf(out, USAGE_HELP_OPTIONS(22));
 
        fputs(USAGE_COLUMNS, out);
        for (i = 0; i < ARRAY_SIZE(coldescs); i++)
                fprintf(out, " %10s  %s\n", coldescs[i].name, _(coldescs[i].help));
 
-       printf(USAGE_MAN_TAIL("lsmem(1)"));
+       fprintf(out, USAGE_MAN_TAIL("lsmem(1)"));
 
        exit(EXIT_SUCCESS);
 }
index 5b909d4b79cfd392f31fe1a4eed29732f3a9335a..b66439a4affdc7c03a7c79b4079fe74c97d1953f 100644 (file)
@@ -1302,13 +1302,13 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -T, --tree <rel>       use tree format (parent, owner, or process)\n"), out);
 
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(24));
+       fprintf(out, USAGE_HELP_OPTIONS(24));
 
        fputs(USAGE_COLUMNS, out);
        for (i = 0; i < ARRAY_SIZE(infos); i++)
                fprintf(out, " %11s  %s\n", infos[i].name, _(infos[i].help));
 
-       printf(USAGE_MAN_TAIL("lsns(8)"));
+       fprintf(out, USAGE_MAN_TAIL("lsns(8)"));
 
        exit(EXIT_SUCCESS);
 }
index cf62e2dd2b5026529a40e2884621cc47a107b424..68b57eb36d7e26cf3cfd0ff33d10a171b486e4d1 100644 (file)
@@ -482,7 +482,7 @@ static void __attribute__((__noreturn__)) usage(void)
        FILE *out = stdout;
 
        fputs(USAGE_HEADER, out);
-       printf(_(
+       fprintf(out, _(
                " %1$s [-lhV]\n"
                " %1$s -a [options]\n"
                " %1$s [options] [--source] <source> | [--target] <directory>\n"
@@ -529,7 +529,7 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -N, --namespace <ns>    perform mount in another namespace\n"), out);
 
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(25));
+       fprintf(out, USAGE_HELP_OPTIONS(25));
 
        fputs(USAGE_SEPARATOR, out);
        fputs(_("Source:\n"), out);
@@ -558,7 +558,7 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" --make-rprivate         recursively mark a whole subtree as private\n"), out);
        fputs(_(" --make-runbindable      recursively mark a whole subtree as unbindable\n"), out);
 
-       printf(USAGE_MAN_TAIL("mount(8)"));
+       fprintf(out, USAGE_MAN_TAIL("mount(8)"));
 
        exit(MNT_EX_SUCCESS);
 }
index b9904f3cf681289924f2280770d19f46b88ff0ec..cb01f5c02ed9e5c7be47e5a7b61b810d31c27f46 100644 (file)
@@ -130,8 +130,8 @@ static void __attribute__((__noreturn__)) usage(void)
                " -d, --fs-devno     print maj:min device number of the filesystem\n"
                " -x, --devno        print maj:min device number of the block device\n"), out);
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(20));
-       printf(USAGE_MAN_TAIL("mountpoint(1)"));
+       fprintf(out, USAGE_HELP_OPTIONS(20));
+       fprintf(out, USAGE_MAN_TAIL("mountpoint(1)"));
 
        exit(EXIT_SUCCESS);
 }
index 0a3086f53582c4a58568339de03c3d85db788218..c895b031e2700035e0143ad5f7163f82cc61d44f 100644 (file)
@@ -120,8 +120,8 @@ static void __attribute__((__noreturn__)) usage(void)
 #endif
 
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(24));
-       printf(USAGE_MAN_TAIL("nsenter(1)"));
+       fprintf(out, USAGE_HELP_OPTIONS(24));
+       fprintf(out, USAGE_MAN_TAIL("nsenter(1)"));
 
        exit(EXIT_SUCCESS);
 }
index aef1b12bb9db51eb33edf50786692b14734421f5..6462a5b95f2925bec15716fb75b9a80dd77ba439 100644 (file)
@@ -38,8 +38,8 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_("Change the root filesystem.\n"), out);
 
        fputs(USAGE_OPTIONS, out);
-       printf(USAGE_HELP_OPTIONS(16));
-       printf(USAGE_MAN_TAIL("pivot_root(8)"));
+       fprintf(out, USAGE_HELP_OPTIONS(16));
+       fprintf(out, USAGE_MAN_TAIL("pivot_root(8)"));
        exit(EXIT_SUCCESS);
 }
 
index a8f633d835caeac508c5e61a000388a6103f6ed5..6b33c14eb007bd7b2f538a9f87830fbc8f66ef53 100644 (file)
@@ -179,7 +179,7 @@ static void __attribute__((__noreturn__)) usage(void)
                "     --raw              use the raw output format\n"
                "     --verbose          verbose output\n"
                ), out);
-       printf(USAGE_HELP_OPTIONS(24));
+       fprintf(out, USAGE_HELP_OPTIONS(24));
 
        fputs(_("\nResources:\n"), out);
        fputs(_(" -c, --core             maximum size of core files created\n"
@@ -209,7 +209,7 @@ static void __attribute__((__noreturn__)) usage(void)
        for (i = 0; i < ARRAY_SIZE(infos); i++)
                fprintf(out, " %11s  %s\n", infos[i].name, _(infos[i].help));
 
-       printf(USAGE_MAN_TAIL("prlimit(1)"));
+       fprintf(out, USAGE_MAN_TAIL("prlimit(1)"));
 
        exit(EXIT_SUCCESS);
 }
index 579902d50ae007f6afddeed85be00abf903ec313..e810ea5e1b6063e450a3e1a9dd2375bdd72d0326 100644 (file)
@@ -124,8 +124,8 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -r, --reset               reset all the counters (root only)\n"), out);
        fputs(_(" -n, --no-auto             disable byte order auto-detection\n"), out);
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(27));
-       printf(USAGE_MAN_TAIL("readprofile(8)"));
+       fprintf(out, USAGE_HELP_OPTIONS(27));
+       fprintf(out, USAGE_MAN_TAIL("readprofile(8)"));
        exit(EXIT_SUCCESS);
 }
 
index c4e15371d69f012cc6134464929a32ec4e617350..b802dc334fe430303ece64691a4b2784bdda2314 100644 (file)
@@ -78,8 +78,8 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -g, --pgrp             interpret arguments as process group ID\n"), out);
        fputs(_(" -u, --user             interpret arguments as username or user ID\n"), out);
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(24));
-       printf(USAGE_MAN_TAIL("renice(1)"));
+       fprintf(out, USAGE_HELP_OPTIONS(24));
+       fprintf(out, USAGE_MAN_TAIL("renice(1)"));
        exit(EXIT_SUCCESS);
 }
 
@@ -100,7 +100,7 @@ static int donice(const int which, const int who, const int prio, const int rela
 
        if (getprio(which, who, &oldprio) != 0)
                return 1;
-       
+
        newprio = prio; // if not relative, set absolute priority
 
        if (relative)
index c4ee1372b0c1b2b5187fd99bbdb4a238c3e49833..56f050b3964d494c874bb1b3f8f88658fc1e406f 100644 (file)
@@ -643,7 +643,7 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -r, --raw              use the raw output format\n"), stdout);
 
        fputs(USAGE_SEPARATOR, stdout);
-       printf(USAGE_HELP_OPTIONS(24));
+       fprintf(stdout, USAGE_HELP_OPTIONS(24));
 
        fputs(USAGE_COLUMNS, stdout);
        for (i = 0; i < ARRAY_SIZE(infos); i++)
index 65f916b8149f8cc1c251f2de6d479e0607520cf9..d6a489ecdc3f1bbef2ec1a446d513119a0507616 100644 (file)
@@ -118,8 +118,8 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -v, --verbose            verbose messages\n"), out);
 
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(26));
-       printf(USAGE_MAN_TAIL("rtcwake(8)"));
+       fprintf(out, USAGE_HELP_OPTIONS(26));
+       fprintf(out, USAGE_MAN_TAIL("rtcwake(8)"));
        exit(EXIT_SUCCESS);
 }
 
index 0a6af83b6ad1aa916c235d6996b695d7ae4de3cf..227bc6b5de3e95855688b28b37afae3de4fddb5c 100644 (file)
@@ -139,9 +139,9 @@ static void __attribute__((__noreturn__)) usage(int archwrapper)
 {
        fputs(USAGE_HEADER, stdout);
        if (!archwrapper)
-               printf(_(" %s [<arch>] [options] [<program> [<argument>...]]\n"), program_invocation_short_name);
+               fprintf(stdout, _(" %s [<arch>] [options] [<program> [<argument>...]]\n"), program_invocation_short_name);
        else
-               printf(_(" %s [options] [<program> [<argument>...]]\n"), program_invocation_short_name);
+               fprintf(stdout, _(" %s [options] [<program> [<argument>...]]\n"), program_invocation_short_name);
 
        fputs(USAGE_SEPARATOR, stdout);
        fputs(_("Change the reported architecture and set personality flags.\n"), stdout);
@@ -167,8 +167,8 @@ static void __attribute__((__noreturn__)) usage(int archwrapper)
        }
 
        fputs(USAGE_SEPARATOR, stdout);
-       printf(USAGE_HELP_OPTIONS(26));
-       printf(USAGE_MAN_TAIL("setarch(8)"));
+       fprintf(stdout, USAGE_HELP_OPTIONS(26));
+       fprintf(stdout, USAGE_MAN_TAIL("setarch(8)"));
 
        exit(EXIT_SUCCESS);
 }
index d5806a49e8ba0b34f3e3abd2e08e4faee4760bb5..f89dbb8df9a4642bc08219b184a30c9cd0dbf4d8 100644 (file)
@@ -26,9 +26,9 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(USAGE_OPTIONS, out);
        fputs(_(" -f, --foregound     Make a foreground process group\n"), out);
 
-       printf(USAGE_HELP_OPTIONS(16));
+       fprintf(out, USAGE_HELP_OPTIONS(16));
 
-       printf(USAGE_MAN_TAIL("setpgid(1)"));
+       fprintf(out, USAGE_MAN_TAIL("setpgid(1)"));
        exit(EXIT_SUCCESS);
 }
 
index ddc2cc6afea6ffc7e5c7b52c7f1247a460291e40..4099355106913270d2e811d32f5471509f932744 100644 (file)
@@ -147,10 +147,10 @@ static void __attribute__((__noreturn__)) usage(void)
                "                               HOME, SHELL, USER, LOGNAME and PATH\n"), out);
 
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(29));
+       fprintf(out, USAGE_HELP_OPTIONS(29));
        fputs(USAGE_SEPARATOR, out);
        fputs(_(" This tool can be dangerous.  Read the manpage, and be careful.\n"), out);
-       printf(USAGE_MAN_TAIL("setpriv(1)"));
+       fprintf(out, USAGE_MAN_TAIL("setpriv(1)"));
 
        exit(EXIT_SUCCESS);
 }
index 5725e80090f9d515c2a70079bfda03de3f5882c9..b10aaa985b2828e9c7e2f2e446d6af68786a14b0 100644 (file)
@@ -41,9 +41,9 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -f, --fork     always fork\n"), out);
        fputs(_(" -w, --wait     wait program to exit, and use the same return\n"), out);
 
-       printf(USAGE_HELP_OPTIONS(16));
+       fprintf(out, USAGE_HELP_OPTIONS(16));
 
-       printf(USAGE_MAN_TAIL("setsid(1)"));
+       fprintf(out, USAGE_MAN_TAIL("setsid(1)"));
        exit(EXIT_SUCCESS);
 }
 
index 1ddfcda00d04cd242a067ced761add20c6878022..aca42b8a4a1fc24523fd46034fb10240624f6230 100644 (file)
@@ -148,7 +148,7 @@ static void __attribute__((__noreturn__)) usage(void)
                " -v, --verbose          verbose mode\n"), out);
 
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(24));
+       fprintf(out, USAGE_HELP_OPTIONS(24));
 
        fputs(_("\nThe <spec> parameter:\n" \
                " -L <label>             LABEL of device to be used\n" \
@@ -158,7 +158,7 @@ static void __attribute__((__noreturn__)) usage(void)
                " <device>               name of device to be used\n" \
                " <file>                 name of file to be used\n"), out);
 
-       printf(USAGE_MAN_TAIL("swapoff(8)"));
+       fprintf(out, USAGE_MAN_TAIL("swapoff(8)"));
        exit(SWAPOFF_EX_OK);
 }
 
index 81c383a299c970661d67610a5f707e83a7532d70..fa2bf46cdfaa3a1cff97353c8bbadf983a3b36b7 100644 (file)
@@ -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);
 }
 
index 174eec64c9f5c858ef033dda24dbb37c7ed67103..ab8c2a141c4795ab984255b3abbebd970c888d66 100644 (file)
@@ -230,8 +230,8 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_("Switch to another filesystem as the root of the mount tree.\n"), output);
 
        fputs(USAGE_OPTIONS, output);
-       printf(USAGE_HELP_OPTIONS(16));
-       printf(USAGE_MAN_TAIL("switch_root(8)"));
+       fprintf(output, USAGE_HELP_OPTIONS(16));
+       fprintf(output, USAGE_MAN_TAIL("switch_root(8)"));
 
        exit(EXIT_SUCCESS);
 }
@@ -280,4 +280,3 @@ int main(int argc, char *argv[])
        execv(init, initargs);
        errexec(init);
 }
-
index 731acd14ec99c270ad582ab35bf0cfaa892a5d91..95a21b39eeecbebec1b4b89543fc1916e964f40c 100644 (file)
@@ -112,8 +112,8 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -r, --reset                  reset the port\n"), out);
        fputs(_(" -q, --print-irq <on|off>     display current irq setting\n"), out);
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(30));
-       printf(USAGE_MAN_TAIL("tunelp(8)"));
+       fprintf(out, USAGE_HELP_OPTIONS(30));
+       fprintf(out, USAGE_MAN_TAIL("tunelp(8)"));
 
        exit(EXIT_SUCCESS);
 }
index e579fb786b77793bc04c9d56db0ed803740be2c5..d31bddf4e388087e33803a7fb85d6efe05a86a3b 100644 (file)
@@ -107,8 +107,8 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -N, --namespace <ns>    perform umount in another namespace\n"), out);
 
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(25));
-       printf(USAGE_MAN_TAIL("umount(8)"));
+       fprintf(out, USAGE_HELP_OPTIONS(25));
+       fprintf(out, USAGE_MAN_TAIL("umount(8)"));
 
        exit(MNT_EX_SUCCESS);
 }
@@ -656,4 +656,3 @@ int main(int argc, char **argv)
 
        return (rc < 256) ? rc : 255;
 }
-
index 38bdc5a6455fc515e4cd5206e97591125be6ebd6..6222c1421c634c35adbcd9fe0a0f03d940bfb08d 100644 (file)
@@ -683,8 +683,8 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" --boottime <offset>       set clock boottime offset (seconds) in time namespaces\n"), out);
 
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(27));
-       printf(USAGE_MAN_TAIL("unshare(1)"));
+       fprintf(out, USAGE_HELP_OPTIONS(27));
+       fprintf(out, USAGE_MAN_TAIL("unshare(1)"));
 
        exit(EXIT_SUCCESS);
 }
index 767f061fea226aa5e6f615c7e5f13f5bfb9f54c2..ffecea9e575fc68651a4dff12c853893b22fac2d 100644 (file)
@@ -247,7 +247,7 @@ static void __attribute__((__noreturn__)) usage(void)
                " -x, --flags-only       print only flags table (same as -I -T)\n"), out);
 
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(24));
+       fprintf(out, USAGE_HELP_OPTIONS(24));
        fputs(USAGE_SEPARATOR, out);
 
        if (dflt)
@@ -259,7 +259,7 @@ static void __attribute__((__noreturn__)) usage(void)
        for (i = 0; i < ARRAY_SIZE(infos); i++)
                fprintf(out, " %13s  %s\n", infos[i].name, _(infos[i].help));
 
-       printf(USAGE_MAN_TAIL("wdctl(8)"));
+       fprintf(out, USAGE_MAN_TAIL("wdctl(8)"));
 
        exit(EXIT_SUCCESS);
 }
index a84ce665bc39f18b8b69ceed02ffb378ee6befe3..cc32ab4f69c8b9d3dce16125dee9acf55b13e7c3 100644 (file)
@@ -559,10 +559,10 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -t, --streams <number>    number of compression streams\n"), out);
 
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(27));
+       fprintf(out, USAGE_HELP_OPTIONS(27));
 
        fputs(USAGE_ARGUMENTS, out);
-       printf(USAGE_ARG_SIZE(_("<size>")));
+       fprintf(out, USAGE_ARG_SIZE(_("<size>")));
 
        fputs(_(" <alg> specify algorithm, supported are:\n"), out);
        fputs(_("   lzo, lz4, lz4hc, deflate, 842 and zstd\n"), out);
@@ -572,7 +572,7 @@ static void __attribute__((__noreturn__)) usage(void)
        for (i = 0; i < ARRAY_SIZE(infos); i++)
                fprintf(out, " %11s  %s\n", infos[i].name, _(infos[i].help));
 
-       printf(USAGE_MAN_TAIL("zramctl(8)"));
+       fprintf(out, USAGE_MAN_TAIL("zramctl(8)"));
        exit(EXIT_SUCCESS);
 }
 
index 6d7f081412f34ffda57c5211c89242e4800e8c77..ca8385f3413999f1792d7d3a353d2e8fb5070d68 100644 (file)
@@ -2488,9 +2488,9 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_("     --nice <number>        run login with this priority\n"), out);
        fputs(_("     --reload               reload prompts on running agetty instances\n"), out);
        fputs(_("     --list-speeds          display supported baud rates\n"), out);
-       printf( "     --help                 %s\n", USAGE_OPTSTR_HELP);
-       printf( "     --version              %s\n", USAGE_OPTSTR_VERSION);
-       printf(USAGE_MAN_TAIL("agetty(8)"));
+       fprintf(out, "     --help                 %s\n", USAGE_OPTSTR_HELP);
+       fprintf(out, "     --version              %s\n", USAGE_OPTSTR_VERSION);
+       fprintf(out, USAGE_MAN_TAIL("agetty(8)"));
 
        exit(EXIT_SUCCESS);
 }
index cb0b493d3fc2de19eedfd89e714b3fcce7fdbfcd..23e2f0d0eba5375d0e8e96d475601539b9d645c3 100644 (file)
@@ -82,8 +82,8 @@ static void __attribute__((__noreturn__)) usage(void)
 
        fputs(USAGE_OPTIONS, out);
        fputs(_(" -v, --verbose  explain what is being done\n"), out);
-       printf(USAGE_HELP_OPTIONS(16));
-       printf(USAGE_MAN_TAIL("mesg(1)"));
+       fprintf(out, USAGE_HELP_OPTIONS(16));
+       fprintf(out, USAGE_MAN_TAIL("mesg(1)"));
 
        exit(EXIT_SUCCESS);
 }
index 9f53f3664074d70225da455457e8f8b494a3961e..3457ac8174741960cb17fe1d18e01c2e60f49e7c 100644 (file)
@@ -216,8 +216,8 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -q, --quiet                   be quiet\n"), out);
 
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(31));
-       printf(USAGE_MAN_TAIL("script(1)"));
+       fprintf(out, USAGE_HELP_OPTIONS(31));
+       fprintf(out, USAGE_MAN_TAIL("script(1)"));
 
        exit(EXIT_SUCCESS);
 }
index f8434ad579931264326d582bc1a270b1690297b7..40d68dd8806ca9ea9ab107dc3e702f669192a8e3 100644 (file)
@@ -73,9 +73,9 @@ usage(void)
        fputs(_(" -c, --command <command> run command rather than interactive shell\n"), out);
        fputs(_(" -d, --divisor <num>     speed up or slow down execution with time divisor\n"), out);
        fputs(_(" -m, --maxdelay <num>    wait at most this many seconds between updates\n"), out);
-       printf(USAGE_HELP_OPTIONS(25));
+       fprintf(out, USAGE_HELP_OPTIONS(25));
 
-       printf(USAGE_MAN_TAIL("scriptlive(1)"));
+       fprintf(out, USAGE_MAN_TAIL("scriptlive(1)"));
        exit(EXIT_SUCCESS);
 }
 
index 38fa4251c8779d81397a1fde65cf1f5f4fcaaaf3..98501a83c9fbe8743742ded25f578c6af439f222 100644 (file)
@@ -68,9 +68,9 @@ usage(void)
        fputs(_(" -m, --maxdelay <num>    wait at most this many seconds between updates\n"), out);
        fputs(_(" -x, --stream <name>     stream type (out, in, signal or info)\n"), out);
        fputs(_(" -c, --cr-mode <type>    CR char mode (auto, never, always)\n"), out);
-       printf(USAGE_HELP_OPTIONS(25));
+       fprintf(out, USAGE_HELP_OPTIONS(25));
 
-       printf(USAGE_MAN_TAIL("scriptreplay(1)"));
+       fprintf(out, USAGE_MAN_TAIL("scriptreplay(1)"));
        exit(EXIT_SUCCESS);
 }
 
index 22afc761632ed063f0a63bf545b140da517e9d7f..1bf9a5bb4966fcc1268101b7e0e3b4fb32e740eb 100644 (file)
@@ -438,10 +438,10 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" --bfreq[=<number>]            bell frequency in Hertz\n"), out);
 
        fputs(USAGE_SEPARATOR, out);
-       printf( " --help                        %s\n", USAGE_OPTSTR_HELP);
-       printf( " --version                     %s\n", USAGE_OPTSTR_VERSION);
+       fprintf(out, " --help                        %s\n", USAGE_OPTSTR_HELP);
+       fprintf(out, " --version                     %s\n", USAGE_OPTSTR_VERSION);
 
-       printf(USAGE_MAN_TAIL("setterm(1)"));
+       fprintf(out, USAGE_MAN_TAIL("setterm(1)"));
        exit(EXIT_SUCCESS);
 }
 
index 3a694734876f5afc77c9aaff6c1259b1c39f984d..a3fe7d29a6a79be5b1e8e1d0a7016d128630f51e 100644 (file)
@@ -101,8 +101,8 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -n, --nobanner          do not print banner, works only for root\n"), out);
        fputs(_(" -t, --timeout <timeout> write timeout in seconds\n"), out);
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(25));
-       printf(USAGE_MAN_TAIL("wall(1)"));
+       fprintf(out, USAGE_HELP_OPTIONS(25));
+       fprintf(out, USAGE_MAN_TAIL("wall(1)"));
 
        exit(EXIT_SUCCESS);
 }
index 855b02224dfe7618833d6312fa0adb0c8daaa232..3784f0300e46b379b43776bf77a4fb8481283c1e 100644 (file)
@@ -96,8 +96,8 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_("Send a message to another user.\n"), out);
 
        fputs(USAGE_OPTIONS, out);
-       printf(USAGE_HELP_OPTIONS(16));
-       printf(USAGE_MAN_TAIL("write(1)"));
+       fprintf(out, USAGE_HELP_OPTIONS(16));
+       fprintf(out, USAGE_MAN_TAIL("write(1)"));
        exit(EXIT_SUCCESS);
 }
 
index d1502d30501ff29aa4237d8ce40ed24cc78c37a2..f9bc3be40c4f1baa10fcaf4ae2782369e3996213 100644 (file)
@@ -182,10 +182,10 @@ static void __attribute__((__noreturn__)) usage(void)
                " -x, --spaces           convert tabs to spaces\n"
                " -l, --lines NUM        buffer at least NUM lines\n"
                ));
-       printf( " -H, --help             %s\n", USAGE_OPTSTR_HELP);
-       printf( " -V, --version          %s\n", USAGE_OPTSTR_VERSION);
+       fprintf(out, " -H, --help             %s\n", USAGE_OPTSTR_HELP);
+       fprintf(out, " -V, --version          %s\n", USAGE_OPTSTR_VERSION);
 
-       printf(USAGE_MAN_TAIL("col(1)"));
+       fprintf(out, USAGE_MAN_TAIL("col(1)"));
        exit(EXIT_SUCCESS);
 }
 
index 113e3d0b69a705dff9af7c9e4a0c65bb7cf4827b..a6da499763e8c8e200e027203e9a931acd695029 100644 (file)
@@ -89,9 +89,9 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -2, --half-lines        print all half-lines\n"), out);
 
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(25));
+       fprintf(out, USAGE_HELP_OPTIONS(25));
 
-       printf(USAGE_MAN_TAIL("colcrt(1)"));
+       fprintf(out, USAGE_MAN_TAIL("colcrt(1)"));
 
        exit(EXIT_SUCCESS);
 }
index 7df5a745060709c0d1ab21c5fb1196962e323a04..122564339f4f242bdf5e91f64f14a71b1728f93f 100644 (file)
@@ -65,10 +65,10 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_("Filter out the specified columns.\n"), out);
 
        fputs(USAGE_OPTIONS, out);
-       printf(USAGE_HELP_OPTIONS(16));
+       fprintf(out, USAGE_HELP_OPTIONS(16));
        fprintf(out, _("%s reads from standard input and writes to standard output\n\n"),
                       program_invocation_short_name);
-       printf(USAGE_MAN_TAIL("colrm(1)"));
+       fprintf(out, USAGE_MAN_TAIL("colrm(1)"));
        exit(EXIT_SUCCESS);
 }
 
index b2e62017a345504733e764a6d49478a27c76c17e..06aeaa08a806a90a03eec6b02a7b443b9297d595 100644 (file)
@@ -778,8 +778,8 @@ static void __attribute__((__noreturn__)) usage(void)
 
 
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(34));
-       printf(USAGE_MAN_TAIL("column(1)"));
+       fprintf(out, USAGE_HELP_OPTIONS(34));
+       fprintf(out, USAGE_MAN_TAIL("column(1)"));
 
        exit(EXIT_SUCCESS);
 }
index 5b92b16371059834c74a2113a0b388c68c5cdfc0..36744554edf2972c12c27e2c5d67a9d38c4339b5 100644 (file)
@@ -187,12 +187,12 @@ void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -v, --no-squeezing        output identical lines\n"), out);
 
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(27));
+       fprintf(out, USAGE_HELP_OPTIONS(27));
 
        fputs(USAGE_ARGUMENTS, out);
-       printf(USAGE_ARG_SIZE(_("<length> and <offset>")));
+       fprintf(out, USAGE_ARG_SIZE(_("<length> and <offset>")));
 
-       printf(USAGE_MAN_TAIL("hexdump(1)"));
+       fprintf(out, USAGE_MAN_TAIL("hexdump(1)"));
        exit(EXIT_SUCCESS);
 }
 
index e8940761891739007e975817722bd65e718f9864..7ad552fb95d570ab0132af92c003374ccbc13c9a 100644 (file)
@@ -34,8 +34,8 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_("Read one line.\n"), out);
 
        fputs(USAGE_OPTIONS, out);
-       printf(USAGE_HELP_OPTIONS(16));
-       printf(USAGE_MAN_TAIL("line(1)"));
+       fprintf(out,USAGE_HELP_OPTIONS(16));
+       fprintf(out, USAGE_MAN_TAIL("line(1)"));
        exit(EXIT_SUCCESS);
 }
 
index adb3840be2acfb383f7ab1e4629d22351872f0f9..262187289fe7a51caf93fba97e758cf1f319e2e4 100644 (file)
@@ -247,9 +247,9 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" +/pattern/   start at the line containing pattern\n"), out);
 
        fputs(USAGE_SEPARATOR, out);
-       printf(USAGE_HELP_OPTIONS(16));
+       fprintf(out, USAGE_HELP_OPTIONS(16));
 
-       printf(USAGE_MAN_TAIL("pg(1)"));
+       fprintf(out, USAGE_MAN_TAIL("pg(1)"));
        exit(0);
 }
 
index bfc4e804b66a5bd3e4de1406dfba228ad037e848..81331719d7725fa8481e4a3cf171b506455fdb9e 100644 (file)
@@ -79,8 +79,8 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_("Reverse lines characterwise.\n"), out);
 
        fputs(USAGE_OPTIONS, out);
-       printf(USAGE_HELP_OPTIONS(16));
-       printf(USAGE_MAN_TAIL("rev(1)"));
+       fprintf(out, USAGE_HELP_OPTIONS(16));
+       fprintf(out, USAGE_MAN_TAIL("rev(1)"));
 
        exit(EXIT_SUCCESS);
 }
@@ -202,4 +202,3 @@ int main(int argc, char *argv[])
        free(buf);
        return rval;
 }
-
index 15d28ff404c2ed47e15b0aea01dc07c7fa8246ba..85fa86fe48b563aeecb95d3e58c4a26b30983fe9 100644 (file)
@@ -128,9 +128,9 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(USAGE_OPTIONS, out);
        fputs(_(" -t, -T, --terminal TERMINAL  override the TERM environment variable\n"), out);
        fputs(_(" -i, --indicated              underlining is indicated via a separate line\n"), out);
-       printf(USAGE_HELP_OPTIONS(30));
+       fprintf(out, USAGE_HELP_OPTIONS(30));
 
-       printf(USAGE_MAN_TAIL("ul(1)"));
+       fprintf(out, USAGE_MAN_TAIL("ul(1)"));
 
        exit(EXIT_SUCCESS);
 }