Fix spelling mistakes using codespell
This commit corrects various spelling mistakes throughout the
repository. The corrections were made automatically using `codespell`[1]
tool.
[1]: https://github.com/codespell-project/codespell
Change-Id: I539a0c5baa63be240fc1c76367c0af338dd89c7b
Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com>
diff --git a/libpldmresponder/test/libpldmresponder_bios_config_test.cpp b/libpldmresponder/test/libpldmresponder_bios_config_test.cpp
index 5c0e779..ea29015 100644
--- a/libpldmresponder/test/libpldmresponder_bios_config_test.cpp
+++ b/libpldmresponder/test/libpldmresponder_bios_config_test.cpp
@@ -27,7 +27,7 @@
class TestBIOSConfig : public ::testing::Test
{
public:
- static void SetUpTestCase() // will execute once at the begining of all
+ static void SetUpTestCase() // will execute once at the beginning of all
// TestBIOSConfig objects
{
char tmpdir[] = "/tmp/BIOSTables.XXXXXX";
@@ -305,7 +305,7 @@
0, 0, /* attr handle */
1, /* attr type string read-write */
4, 0, /* current string length */
- 'a', 'b', 'c', 'd', /* defaut value string handle index */
+ 'a', 'b', 'c', 'd', /* default value string handle index */
};
uint16_t attrHandle{10};
@@ -351,7 +351,7 @@
0, 0, /* attr handle */
1, /* attr type string read-write */
4, 0, /* current string length */
- 'a', 'b', 'c', 'd', /* defaut value string handle index */
+ 'a', 'b', 'c', 'd', /* default value string handle index */
};
attrValueEntry[0] = attrHandle & 0xff;
diff --git a/libpldmresponder/test/libpldmresponder_bios_enum_attribute_test.cpp b/libpldmresponder/test/libpldmresponder_bios_enum_attribute_test.cpp
index 98161a0..1521fcb 100644
--- a/libpldmresponder/test/libpldmresponder_bios_enum_attribute_test.cpp
+++ b/libpldmresponder/test/libpldmresponder_bios_enum_attribute_test.cpp
@@ -109,7 +109,7 @@
2, 0, /* possible value handle */
3, 0, /* possible value handle */
1, /* number of default value */
- 1 /* defaut value string handle index */
+ 1 /* default value string handle index */
};
std::vector<uint8_t> expectedAttrValueEntry{
@@ -214,7 +214,7 @@
2, 0, /* possible value handle */
3, 0, /* possible value handle */
1, /* number of default value */
- 1 /* defaut value string handle index */
+ 1 /* default value string handle index */
};
ON_CALL(biosStringTable, findString(2))
diff --git a/libpldmresponder/test/libpldmresponder_bios_integer_attribute_test.cpp b/libpldmresponder/test/libpldmresponder_bios_integer_attribute_test.cpp
index f016649..6d4026a 100644
--- a/libpldmresponder/test/libpldmresponder_bios_integer_attribute_test.cpp
+++ b/libpldmresponder/test/libpldmresponder_bios_integer_attribute_test.cpp
@@ -107,7 +107,7 @@
1, 0, 0, 0, 0, 0, 0, 0, /* lower bound */
15, 0, 0, 0, 0, 0, 0, 0, /* upper bound */
1, 0, 0, 0, /* scalar increment */
- 2, 0, 0, 0, 0, 0, 0, 0, /* defaut value */
+ 2, 0, 0, 0, 0, 0, 0, 0, /* default value */
};
std::vector<uint8_t> expectedAttrValueEntry{
0, 0, /* attr handle */
diff --git a/libpldmresponder/test/libpldmresponder_bios_string_attribute_test.cpp b/libpldmresponder/test/libpldmresponder_bios_string_attribute_test.cpp
index 06c1f6c..08c8ea7 100644
--- a/libpldmresponder/test/libpldmresponder_bios_string_attribute_test.cpp
+++ b/libpldmresponder/test/libpldmresponder_bios_string_attribute_test.cpp
@@ -103,7 +103,7 @@
0, 0, /* attr handle */
0x81, /* attr type string read-only */
3, 0, /* current string length */
- 'a', 'b', 'c', /* defaut value string handle index */
+ 'a', 'b', 'c', /* default value string handle index */
};
ON_CALL(biosStringTable, findHandle(StrEq("str_example1")))
@@ -154,7 +154,7 @@
0, 0, /* attr handle */
1, /* attr type string read-write */
4, 0, /* current string length */
- 'a', 'b', 'c', 'd', /* defaut value string handle index */
+ 'a', 'b', 'c', 'd', /* default value string handle index */
};
checkConstructEntry(stringReadWrite, biosStringTable, expectedAttrEntry,
@@ -191,7 +191,7 @@
0, 0, /* attr handle */
1, /* attr type string read-write */
4, 0, /* current string length */
- 'a', 'b', 'c', 'd', /* defaut value string handle index */
+ 'a', 'b', 'c', 'd', /* default value string handle index */
};
auto entry = reinterpret_cast<pldm_bios_attr_val_table_entry*>(
attrValueEntry.data());
diff --git a/libpldmresponder/test/libpldmresponder_systemspecific_bios_test.cpp b/libpldmresponder/test/libpldmresponder_systemspecific_bios_test.cpp
index 1b84204..0c7cc8c 100644
--- a/libpldmresponder/test/libpldmresponder_systemspecific_bios_test.cpp
+++ b/libpldmresponder/test/libpldmresponder_systemspecific_bios_test.cpp
@@ -27,7 +27,7 @@
class TestSystemSpecificBIOSConfig : public ::testing::Test
{
public:
- static void SetUpTestCase() // will execute once at the begining of all
+ static void SetUpTestCase() // will execute once at the beginning of all
// TestSystemSpecificBIOSConfig objects
{
char tmpdir[] = "/tmp/BIOSTables.XXXXXX";
@@ -386,7 +386,7 @@
0, 0, /* attr handle */
1, /* attr type string read-write */
4, 0, /* current string length */
- 'a', 'b', 'c', 'd', /* defaut value string handle index */
+ 'a', 'b', 'c', 'd', /* default value string handle index */
};
uint16_t attrHandle{10};
@@ -395,7 +395,7 @@
auto rc = biosConfig.setAttrValue(attrValueEntry.data(),
attrValueEntry.size(), false);
- std::cout << "Error in settig Attribute " << rc << std::endl;
+ std::cout << "Error in setting Attribute " << rc << std::endl;
EXPECT_EQ(rc, PLDM_BIOS_TABLE_UNAVAILABLE);
}
@@ -436,7 +436,7 @@
0, 0, /* attr handle */
1, /* attr type string read-write */
4, 0, /* current string length */
- 'a', 'b', 'c', 'd', /* defaut value string handle index */
+ 'a', 'b', 'c', 'd', /* default value string handle index */
};
attrValueEntry[0] = attrHandle & 0xff;