From: Adrian Chiris Date: Thu, 25 Aug 2016 13:14:28 +0000 (+0300) Subject: Fix spelling errors appearing in binaries X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=82c6224032bde5bbd98352d29dbd9cd443c6bc9a;p=~adrianc%2Fmstflint.git Fix spelling errors appearing in binaries --- diff --git a/flint/cmd_line_parser.cpp b/flint/cmd_line_parser.cpp index 021a61c..7167b4c 100644 --- a/flint/cmd_line_parser.cpp +++ b/flint/cmd_line_parser.cpp @@ -428,7 +428,7 @@ void Flint::initCmdParser() { "", "4 GUIDs must be specified here.\n" "The specified GUIDs are assigned\n" - "to the following fields, repectively:\n" + "to the following fields, respectively:\n" "node, port1, port2 and system image GUID.\n\n" "Note: port2 guid must be specified even for a\n" "single port HCA - The HCA ignores this value.\n" @@ -450,7 +450,7 @@ void Flint::initCmdParser() { "", "2 MACs must be specified here.\n" "The specified MACs are assigned\n" - "to port1, port2, repectively.\n" + "to port1, port2, respectively.\n" "Commands affected: burn, sg\n\n" "Note: -mac/-macs flags are applicable only for Mellanox\n" "\tTechnologies ethernet products."); diff --git a/flint/err_msgs.h b/flint/err_msgs.h index b7c160a..6f8bc18 100644 --- a/flint/err_msgs.h +++ b/flint/err_msgs.h @@ -59,8 +59,8 @@ typedef enum { #define FLINT_PARSE_MEM_ERROR "Failed to allocate memory for parsing.\n " #define FLINT_NO_OPTIONS_FOUND_ERROR "No options found. " #define FLINT_INVALID_COMMAD_ERROR "Invalid command: %s\n" -#define FLINT_TOO_MANY_ARGS_ERROR "Too many arguments. Expected: %d , Recieved: %d\n" -#define FLINT_TOO_FEW_ARGS_ERROR "Too few arguments. Expected: %d , Recieved: %d\n" +#define FLINT_TOO_MANY_ARGS_ERROR "Too many arguments. Expected: %d , Received: %d\n" +#define FLINT_TOO_FEW_ARGS_ERROR "Too few arguments. Expected: %d , Received: %d\n" #define FLINT_NO_COMMAND_ERROR "No command found." #define FLINT_OPEN_FWOPS_DEVICE_ERROR "Cannot open Device: %s. %s\n" #define FLINT_OPEN_FWOPS_IMAGE_ERROR "Cannot open Image: %s. %s\n" diff --git a/flint/subcommands.cpp b/flint/subcommands.cpp index e779378..a6741b7 100644 --- a/flint/subcommands.cpp +++ b/flint/subcommands.cpp @@ -3613,7 +3613,7 @@ WbneSubCommand:: WbneSubCommand() { _param = " "; _paramExp = "addr - address of block\n" INDENTEX"size - size of data to write in bytes\n" - INDENTEX"data - data to write - space seperated dwords"; + INDENTEX"data - data to write - space separated dwords"; _example = FLINT_NAME" -d "MST_DEV_EXAMPLE1" wbne 0x10000 12 0x30000 0x76800 0x5a445a44"; _v = Wtv_Dev; _minCmdParamNum = 3; diff --git a/mlxconfig/mlxcfg_param_lib.cpp b/mlxconfig/mlxcfg_param_lib.cpp index 39f8b46..1028e67 100644 --- a/mlxconfig/mlxcfg_param_lib.cpp +++ b/mlxconfig/mlxcfg_param_lib.cpp @@ -83,7 +83,7 @@ enum { printf("-I- Data Sent:\n");\ tools_open_##struct_name##_print(data_struct, stdout, 1) # define DEBUG_PRINT_RECIEVE(data_struct, struct_name)\ - printf("-I- Data Recieved:\n");\ + printf("-I- Data Received:\n");\ tools_open_##struct_name##_print(data_struct, stdout, 1) #else # define DEBUG_PRINT_SEND(data_struct, struct_name) @@ -1499,7 +1499,7 @@ bool VpiParams5thGen::cfgSupported(mfile* mf, mlxCfgParam param) bool suppRead, suppWrite; rc = nvqcCom5thGen(mf, getTlvTypeBe(), suppRead, suppWrite); if (rc) { - errmsg("Failed to get VPI params capabilites. %s", m_err2str(rc)); + errmsg("Failed to get VPI params capabilities. %s", m_err2str(rc)); return false; } return suppRead && suppWrite; diff --git a/mlxconfig/mlxcfg_parser.cpp b/mlxconfig/mlxcfg_parser.cpp index 6f9235d..a534b0b 100644 --- a/mlxconfig/mlxcfg_parser.cpp +++ b/mlxconfig/mlxcfg_parser.cpp @@ -280,7 +280,7 @@ mlxCfgStatus MlxCfg::parseArgs(int argc, char* argv[]) return err(true, "missing configuration arguments. For more information please run "MLXCFG_NAME" -h|--help."); } if (i != argc && (_mlxParams.cmd == Mc_Reset || _mlxParams.cmd == Mc_Query)) { - return err(true, "%s command expects no argument but %d argument recieved", (_mlxParams.cmd == Mc_Reset) ? "reset" : "query", argc -i); + return err(true, "%s command expects no argument but %d argument received", (_mlxParams.cmd == Mc_Reset) ? "reset" : "query", argc -i); } if ((_mlxParams.cmd == Mc_Set || _mlxParams.cmd == Mc_Clr_Sem || _mlxParams.cmd == Mc_Set_Raw || _mlxParams.cmd == Mc_Backup) && _mlxParams.device.length() == 0) { return err(true, "%s command expects device to be specified.", diff --git a/mlxfwops/lib/fs2_ops.cpp b/mlxfwops/lib/fs2_ops.cpp index 3cd3606..7268ee3 100644 --- a/mlxfwops/lib/fs2_ops.cpp +++ b/mlxfwops/lib/fs2_ops.cpp @@ -1804,7 +1804,7 @@ bool Fs2Operations::FwBurnRom(FImage* romImg, bool ignoreProdIdCheck, bool ignor u_int32_t cntx_image_num; FindAllImageStart(romImg, cntx_image_start, &cntx_image_num, _cntx_magic_pattern); if (cntx_image_num != 0) { - return errmsg("Expecting an expansion ROM image, Recieved Mellanox FW image."); + return errmsg("Expecting an expansion ROM image, Received Mellanox FW image."); } if (!Fs2IntQuery()) { diff --git a/mlxfwops/lib/fw_ops.cpp b/mlxfwops/lib/fw_ops.cpp index 98130d5..34a8fc7 100644 --- a/mlxfwops/lib/fw_ops.cpp +++ b/mlxfwops/lib/fw_ops.cpp @@ -827,7 +827,7 @@ bool FwOperations::writeImage(ProgressCallBack progressFunc, u_int32_t addr, voi u_int32_t new_perc = ((cnt - towrite + alreadyWrittenSz) * 100) / totalSz; if (progressFunc((int)new_perc)) { - return errmsg("Aborting... recieved interrupt signal"); + return errmsg("Aborting... received interrupt signal"); } } } diff --git a/mtcr_ul/mtcr_ul_com.c b/mtcr_ul/mtcr_ul_com.c index 52e8fe6..ea0ac9b 100644 --- a/mtcr_ul/mtcr_ul_com.c +++ b/mtcr_ul/mtcr_ul_com.c @@ -2264,7 +2264,7 @@ static int mreg_send_raw(mfile *mf, u_int16_t reg_id, maccess_reg_method_t metho memcpy(reg_data, buffer + OP_TLV_SIZE + REG_TLV_HEADER_LEN, reg_size); #ifdef _ENABLE_DEBUG_ - fprintf(stdout, "-I-Tlv's of Data Recieved:\n"); + fprintf(stdout, "-I-Tlv's of Data Received:\n"); fprintf(stdout, "\tOperation Tlv\n"); OperationTlv_dump(&tlv, stdout); fprintf(stdout, "\tReg Tlv\n");