From 1acbba885a94c7d1516e43c0fdbe2dee9655293f Mon Sep 17 00:00:00 2001 From: Sebastien GODARD Date: Wed, 17 Jan 2018 20:46:08 +0100 Subject: [PATCH] sar: Update help message Update message displayed by "sar --help": Print the report name associated with each activity. Signed-off-by: Sebastien GODARD --- sar.c | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/sar.c b/sar.c index 1987e99..2c0c257 100644 --- a/sar.c +++ b/sar.c @@ -135,17 +135,17 @@ void usage(char *progname) void display_help(char *progname) { print_usage_title(stdout, progname); - printf(_("Main options and reports:\n")); - printf(_("\t-B\tPaging statistics\n")); - printf(_("\t-b\tI/O and transfer rate statistics\n")); - printf(_("\t-d\tBlock devices statistics\n")); + printf(_("Main options and reports (report name between square brackets):\n")); + printf(_("\t-B\tPaging statistics [A_PAGE]\n")); + printf(_("\t-b\tI/O and transfer rate statistics [A_IO]\n")); + printf(_("\t-d\tBlock devices statistics [A_DISK]\n")); printf(_("\t-F [ MOUNT ]\n")); - printf(_("\t\tFilesystems statistics\n")); - printf(_("\t-H\tHugepages utilization statistics\n")); + printf(_("\t\tFilesystems statistics [A_FS]\n")); + printf(_("\t-H\tHugepages utilization statistics [A_HUGE]\n")); printf(_("\t-I { | SUM | ALL }\n" - "\t\tInterrupts statistics\n")); + "\t\tInterrupts statistics [A_IRQ]\n")); printf(_("\t-m { [,...] | ALL }\n" - "\t\tPower management statistics\n" + "\t\tPower management statistics [A_PWR_...]\n" "\t\tKeywords are:\n" "\t\tCPU\tCPU instantaneous clock frequency\n" "\t\tFAN\tFans speed\n" @@ -154,7 +154,7 @@ void display_help(char *progname) "\t\tTEMP\tDevices temperature\n" "\t\tUSB\tUSB devices plugged into the system\n")); printf(_("\t-n { [,...] | ALL }\n" - "\t\tNetwork statistics\n" + "\t\tNetwork statistics [A_NET_...]\n" "\t\tKeywords are:\n" "\t\tDEV\tNetwork interfaces\n" "\t\tEDEV\tNetwork interfaces (errors)\n" @@ -176,16 +176,16 @@ void display_help(char *progname) "\t\tUDP6\tUDP traffic\t(v6)\n" "\t\tFC\tFibre channel HBAs\n" "\t\tSOFT\tSoftware-based network processing\n")); - printf(_("\t-q\tQueue length and load average statistics\n")); + printf(_("\t-q\tQueue length and load average statistics [A_QUEUE]\n")); printf(_("\t-r [ ALL ]\n" - "\t\tMemory utilization statistics\n")); - printf(_("\t-S\tSwap space utilization statistics\n")); + "\t\tMemory utilization statistics [A_MEMORY]\n")); + printf(_("\t-S\tSwap space utilization statistics [A_MEMORY]\n")); printf(_("\t-u [ ALL ]\n" - "\t\tCPU utilization statistics\n")); - printf(_("\t-v\tKernel tables statistics\n")); - printf(_("\t-W\tSwapping statistics\n")); - printf(_("\t-w\tTask creation and system switching statistics\n")); - printf(_("\t-y\tTTY devices statistics\n")); + "\t\tCPU utilization statistics [A_CPU]\n")); + printf(_("\t-v\tKernel tables statistics [A_KTABLES]\n")); + printf(_("\t-W\tSwapping statistics [A_SWAP]\n")); + printf(_("\t-w\tTask creation and system switching statistics [A_PCSW]\n")); + printf(_("\t-y\tTTY devices statistics [A_SERIAL]\n")); exit(0); } -- 2.50.1