From: Adham Masarwah Date: Sun, 27 Mar 2016 13:52:49 +0000 (+0300) Subject: Replaced printing help of mstvpd from stderr to stdout X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=7cb49dc35366ca68f81ae09bf088693f360ba70c;p=~adrianc%2Fmstflint.git Replaced printing help of mstvpd from stderr to stdout Signed-off-by: Adham Masarwah --- diff --git a/small_utils/vpd.c b/small_utils/vpd.c index 8cab06c..3c6d0ed 100644 --- a/small_utils/vpd.c +++ b/small_utils/vpd.c @@ -629,17 +629,17 @@ int main(int argc, char **argv) return 0; usage: - fprintf(stderr, "Usage: %s [-m|-n] [-t ##] [-- keyword ...]\n", argv[0]); - fprintf(stderr, "-h\tPrint this help.\n"); - fprintf(stderr, "-v\tPrint tool version.\n"); - fprintf(stderr, "-m\tDump raw VPD data to stdout.\n"); - fprintf(stderr, "-n\tDo not validate check sum.\n"); - fprintf(stderr, "-r\tDo not check and display the VPD_W tag in the vpd data.\n"); - fprintf(stderr, "-t ##\tTime out after ## seconds. (Default is 30.)\n\n"); - fprintf(stderr, "file\tThe PCI id number of the HCA (for example, \"2:00.0\"),\n"); - fprintf(stderr, "\tthe device name (such as \"mlx4_0\")\n"); - fprintf(stderr, "\tthe absolute path to the device (\"/sys/class/infiniband/mlx4_0/device\")\n"); - fprintf(stderr, "\tor '-' to read VPD data from the standard input.\n\n"); - fprintf(stderr, "keyword(s): Only display the requested information. (ID, PN, EC, SN, etc...)\n"); + printf("Usage: %s [-m|-n] [-t ##] [-- keyword ...]\n", argv[0]); + printf("-h\tPrint this help.\n"); + printf("-v\tPrint tool version.\n"); + printf("-m\tDump raw VPD data to stdout.\n"); + printf("-n\tDo not validate check sum.\n"); + printf("-r\tDo not check and display the VPD_W tag in the vpd data.\n"); + printf("-t ##\tTime out after ## seconds. (Default is 30.)\n\n"); + printf("file\tThe PCI id number of the HCA (for example, \"2:00.0\"),\n"); + printf("\tthe device name (such as \"mlx4_0\")\n"); + printf("\tthe absolute path to the device (\"/sys/class/infiniband/mlx4_0/device\")\n"); + printf("\tor '-' to read VPD data from the standard input.\n\n"); + printf("keyword(s): Only display the requested information. (ID, PN, EC, SN, etc...)\n"); return rc; }