Mercurial > illumos > git > illumos-gate
changeset 19419:8dc4b829d283
12250 zonestat_usage(): stderr vs. stdio dilemma
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: Peter Tribble <peter.tribble@gmail.com>
Reviewed by: Gergő Mihály Doma <domag02@gmail.com>
Approved by: Dan McDonald <danmcd@joyent.com>
author | Marcel Telka <marcel@telka.sk> |
---|---|
date | Sat, 25 Jan 2020 11:35:29 +0100 |
parents | 4e1c3bef2343 |
children | 2e7f4e9db08b |
files | usr/src/cmd/zonestat/zonestat/zonestat.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/cmd/zonestat/zonestat/zonestat.c Fri Jan 24 17:59:49 2020 +0100 +++ b/usr/src/cmd/zonestat/zonestat/zonestat.c Sat Jan 25 11:35:29 2020 +0100 @@ -292,7 +292,7 @@ " Name of a zone using dedicated-cpu\n"), "-z", "-n", ZONESTAT_NAME_MEM_DEFAULT, ZONESTAT_NAME_VM_DEFAULT); - (void) printf(gettext( + (void) fprintf(fd, gettext( " %s Print timestamp. Valid timestamps are:\n" " \"%s\"\tDate as specifed by date(1) command\n" " \"%s\"\tUnix time as returned by time(2)\n" @@ -309,7 +309,7 @@ ZONESTAT_NAME_HIGH, "-q", "-p"); - (void) printf(gettext( + (void) fprintf(fd, gettext( " %s Select desired lines in parseable output.\n" " \"%s\"\tLines describing each resource\n" " \"%s\"\tTotal usage of each resource\n" @@ -319,7 +319,7 @@ "-P", ZONESTAT_NAME_RESOURCE, ZONESTAT_NAME_TOTAL, ZONESTAT_NAME_SYSTEM, ZONESTAT_NAME_ZONES, ZONESTAT_NAME_HEADER); - (void) printf(gettext( + (void) fprintf(fd, gettext( " %s Sort output by the specified columns:\n" " \"%s\"\tby name alphanumerically\n" " \"%s\"\tby percent of resource used\n"