summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGunnar Mills <gmills@us.ibm.com>2018-06-14 08:56:17 -0500
committerGunnar Mills <gmills@us.ibm.com>2018-06-14 08:56:31 -0500
commitc19b813e79e71a6b66887434f1dc4468df1d88bf (patch)
tree6afc81f4fa01b5cf5186690ee8003f122f160188
parenta37002fa0563b8136f3325ef19d5ec42aff2384d (diff)
downloadipmi-fru-parser-c19b813e79e71a6b66887434f1dc4468df1d88bf.zip
ipmi-fru-parser-c19b813e79e71a6b66887434f1dc4468df1d88bf.tar.gz
Spelling fixes
Spelling errors found using github.com/lucasdemarchi/codespell A tool to fix common misspellings. This tool is licensed under GNU General Public License, version 2. Change-Id: Ifbc540985ddef6ee0ac6e5510c9bf79f24f89f96 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
-rw-r--r--frup.cpp2
-rw-r--r--writefrudata.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/frup.cpp b/frup.cpp
index b7da386..8009b3e 100644
--- a/frup.cpp
+++ b/frup.cpp
@@ -730,7 +730,7 @@ void _append_to_dict (uint8_t vpd_key_id,
/*
* Max number of characters needed to represent 1 unsigned byte in string
- * is number of bytes multipled by 2. Extra 3 for 0x and a ending '\0';
+ * is number of bytes multiplied by 2. Extra 3 for 0x and a ending '\0';
*/
char bin_in_ascii_len = vpd_val_len * 2 + 3;
diff --git a/writefrudata.cpp b/writefrudata.cpp
index 6e1fbec..1b8acba 100644
--- a/writefrudata.cpp
+++ b/writefrudata.cpp
@@ -240,7 +240,7 @@ std::string getFRUValue(const std::string& section,
//if the key is custom property then the value could be in two formats.
//1) custom field 2 = "value".
//2) custom field 2 = "key:value".
- //if delimeter length = 0 i.e custom field 2 = "value"
+ //if delimiter length = 0 i.e custom field 2 = "value"
constexpr auto customProp = "Custom Field";
if (key.find(customProp) != std::string::npos)
@@ -450,7 +450,7 @@ int ipmi_populate_fru_areas(uint8_t *fru_data, const size_t data_len,
{
rc = -1;
// Actual offset in the payload is the offset mentioned in common header
- // multipled by 8. Common header is always the first 8 bytes.
+ // multiplied by 8. Common header is always the first 8 bytes.
area_offset = fru_data[fru_entry] * IPMI_EIGHT_BYTES;
if(area_offset && (data_len < (area_offset + 2)))
{
OpenPOWER on IntegriCloud