summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGunnar Mills <gmills@us.ibm.com>2020-07-08 22:00:30 +0300
committerGunnar Mills <gmills@us.ibm.com>2020-07-10 19:48:05 +0300
commit4e0453b11cf4780b06c73643ce31e6bc1809b7cf (patch)
treed8068462a6aae98917036b7084a561a9ac3658fa
parent222f2b7fcaa351f7c5ef7d7d790aace6a3e59d48 (diff)
downloadbmcweb-4e0453b11cf4780b06c73643ce31e6bc1809b7cf.tar.xz
Codespell redfish-core spelling fixes
These spelling errors were found using https://github.com/codespell-project/codespell Tested: Top commit (along with this) was built and ran against validator. Change-Id: Ic9dce27b1de8567eedf7753164ef564d3aedf8ca Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
-rw-r--r--redfish-core/include/event_service_manager.hpp4
-rw-r--r--redfish-core/include/utils/fw_utils.hpp2
-rw-r--r--redfish-core/lib/certificate_service.hpp4
-rw-r--r--redfish-core/lib/chassis.hpp4
-rw-r--r--redfish-core/lib/ethernet.hpp6
-rw-r--r--redfish-core/lib/event_service.hpp2
-rw-r--r--redfish-core/lib/log_services.hpp2
-rw-r--r--redfish-core/lib/managers.hpp2
-rw-r--r--redfish-core/lib/systems.hpp4
-rw-r--r--redfish-core/lib/task.hpp2
-rw-r--r--redfish-core/lib/update_service.hpp4
-rw-r--r--redfish-core/lib/virtual_media.hpp2
12 files changed, 19 insertions, 19 deletions
diff --git a/redfish-core/include/event_service_manager.hpp b/redfish-core/include/event_service_manager.hpp
index 801a7ad485..6362112b5d 100644
--- a/redfish-core/include/event_service_manager.hpp
+++ b/redfish-core/include/event_service_manager.hpp
@@ -311,9 +311,9 @@ bool readSSEQueryParams(std::string sseFilter, std::string& formatType,
if ((i + minTokenSize) < result.size())
{
- std::string& seperator = result[i + minTokenSize];
+ std::string& separator = result[i + minTokenSize];
// SSE supports only "or" and "and" in query params.
- if ((seperator != "or") && (seperator != "and"))
+ if ((separator != "or") && (separator != "and"))
{
BMCWEB_LOG_ERROR
<< "Invalid group operator in SSE query parameters";
diff --git a/redfish-core/include/utils/fw_utils.hpp b/redfish-core/include/utils/fw_utils.hpp
index 0fd02c75ad..9aa567410a 100644
--- a/redfish-core/include/utils/fw_utils.hpp
+++ b/redfish-core/include/utils/fw_utils.hpp
@@ -308,7 +308,7 @@ void getFwStatus(std::shared_ptr<AsyncResp> asyncResp,
* @brief Updates programmable status of input swId into json response
*
* This function checks whether firmware inventory component
- * can be programable or not and fill's the "Updateable"
+ * can be programmable or not and fill's the "Updateable"
* Property.
*
* @param[i,o] asyncResp Async response object
diff --git a/redfish-core/lib/certificate_service.hpp b/redfish-core/lib/certificate_service.hpp
index 48316174b1..7a94935546 100644
--- a/redfish-core/lib/certificate_service.hpp
+++ b/redfish-core/lib/certificate_service.hpp
@@ -56,7 +56,7 @@ class CertificateService : public Node
Node(app, "/redfish/v1/CertificateService/")
{
// TODO: Issue#61 No entries are available for Certificate
- // sevice at https://www.dmtf.org/standards/redfish
+ // service at https://www.dmtf.org/standards/redfish
// "redfish standard registries". Need to modify after DMTF
// publish Privilege details for certificate service
entityPrivileges = {
@@ -500,7 +500,7 @@ class CertificateActionGenerateCSR : public Node
}; // CertificateActionGenerateCSR
/**
- * @brief Parse and update Certficate Issue/Subject property
+ * @brief Parse and update Certificate Issue/Subject property
*
* @param[in] asyncResp Shared pointer to the response message
* @param[in] str Issuer/Subject value in key=value pairs
diff --git a/redfish-core/lib/chassis.hpp b/redfish-core/lib/chassis.hpp
index d1119cd71e..4a18028b00 100644
--- a/redfish-core/lib/chassis.hpp
+++ b/redfish-core/lib/chassis.hpp
@@ -96,7 +96,7 @@ void getIntrusionByService(std::shared_ptr<AsyncResp> aResp,
const std::variant<std::string>& value) {
if (ec)
{
- // do not add err msg in redfish response, becaues this is not
+ // do not add err msg in redfish response, because this is not
// mandatory property
BMCWEB_LOG_ERROR << "DBUS response error " << ec << "\n";
return;
@@ -131,7 +131,7 @@ void getPhysicalSecurityData(std::shared_ptr<AsyncResp> aResp)
subtree) {
if (ec)
{
- // do not add err msg in redfish response, becaues this is not
+ // do not add err msg in redfish response, because this is not
// mandatory property
BMCWEB_LOG_ERROR << "DBUS error: no matched iface " << ec
<< "\n";
diff --git a/redfish-core/lib/ethernet.hpp b/redfish-core/lib/ethernet.hpp
index a76b01ba45..b1a9f695bb 100644
--- a/redfish-core/lib/ethernet.hpp
+++ b/redfish-core/lib/ethernet.hpp
@@ -880,7 +880,7 @@ inline void createIPv6(const std::string& ifaceId, uint8_t prefixLength,
}
};
// Passing null for gateway, as per redfish spec IPv6StaticAddresses object
- // does not have assosiated gateway property
+ // does not have associated gateway property
crow::connections::systemBus->async_method_call(
std::move(createIpHandler), "xyz.openbmc_project.Network",
"/xyz/openbmc_project/network/" + ifaceId,
@@ -936,7 +936,7 @@ void getEthernetIfaceData(const std::string& ethiface_id,
}
extractIPV6Data(ethiface_id, resp, ipv6Data);
- // Finally make a callback with usefull data
+ // Finally make a callback with useful data
callback(true, ethData, ipv4Data, ipv6Data);
},
"xyz.openbmc_project.Network", "/xyz/openbmc_project/network",
@@ -978,7 +978,7 @@ void getEthernetIfaceList(CallbackFunc&& callback)
if (interface.first ==
"xyz.openbmc_project.Network.EthernetInterface")
{
- // Cut out everyting until last "/", ...
+ // Cut out everything until last "/", ...
const std::string& iface_id = objpath.first.str;
std::size_t last_pos = iface_id.rfind("/");
if (last_pos != std::string::npos)
diff --git a/redfish-core/lib/event_service.hpp b/redfish-core/lib/event_service.hpp
index da537bfc1e..b27c6e061d 100644
--- a/redfish-core/lib/event_service.hpp
+++ b/redfish-core/lib/event_service.hpp
@@ -246,7 +246,7 @@ class EventDestinationCollection : public Node
// Format: <protocol>://<host>:<port>/<uri>
// protocol: http/https
// host: Exclude ' ', ':', '#', '?'
- // port: Empty or numeric value with ':' seperator.
+ // port: Empty or numeric value with ':' separator.
// uri: Start with '/' and Exclude '#', ' '
// Can include query params(ex: '/event?test=1')
// TODO: Need to validate hostname extensively(as per rfc)
diff --git a/redfish-core/lib/log_services.hpp b/redfish-core/lib/log_services.hpp
index 52a51a60b9..baef92f48e 100644
--- a/redfish-core/lib/log_services.hpp
+++ b/redfish-core/lib/log_services.hpp
@@ -2729,7 +2729,7 @@ static void fillPostCodeEntry(
continue;
}
- // skip if a sepcific codeIndex is specified and does not match the
+ // skip if a specific codeIndex is specified and does not match the
// currentIndex
if ((codeIndex > 0) && (currentCodeIndex != codeIndex))
{
diff --git a/redfish-core/lib/managers.hpp b/redfish-core/lib/managers.hpp
index 2ff65bf4f0..2056d1041b 100644
--- a/redfish-core/lib/managers.hpp
+++ b/redfish-core/lib/managers.hpp
@@ -1497,7 +1497,7 @@ struct SetPIDValues : std::enable_shared_from_this<SetPIDValues>
if (createNewObject && it.value() == nullptr)
{
- // can't delete a non-existant object
+ // can't delete a non-existent object
messages::invalidObject(response->res, name);
continue;
}
diff --git a/redfish-core/lib/systems.hpp b/redfish-core/lib/systems.hpp
index e9e52805f0..422b2f75de 100644
--- a/redfish-core/lib/systems.hpp
+++ b/redfish-core/lib/systems.hpp
@@ -49,7 +49,7 @@ void updateDimmProperties(std::shared_ptr<AsyncResp> aResp,
}
BMCWEB_LOG_DEBUG << "Dimm Functional: " << *isDimmFunctional;
- // Set it as Enabled if atleast one DIMM is functional
+ // Set it as Enabled if at least one DIMM is functional
// Update STATE only if previous State was DISABLED and current Dimm is
// ENABLED.
nlohmann::json& prevMemSummary =
@@ -122,7 +122,7 @@ void modifyCpuFunctionalState(std::shared_ptr<AsyncResp> aResp,
nlohmann::json& prevProcState =
aResp->res.jsonValue["ProcessorSummary"]["Status"]["State"];
- // Set it as Enabled if atleast one CPU is functional
+ // Set it as Enabled if at least one CPU is functional
// Update STATE only if previous State was Non_Functional and current CPU is
// Functional.
if (prevProcState == "Disabled")
diff --git a/redfish-core/lib/task.hpp b/redfish-core/lib/task.hpp
index fe1468feeb..fb2d0be76a 100644
--- a/redfish-core/lib/task.hpp
+++ b/redfish-core/lib/task.hpp
@@ -174,7 +174,7 @@ struct TaskData : std::enable_shared_from_this<TaskData>
[self = shared_from_this()](boost::system::error_code ec) {
if (ec == boost::asio::error::operation_aborted)
{
- return; // completed succesfully
+ return; // completed successfully
}
if (!ec)
{
diff --git a/redfish-core/lib/update_service.hpp b/redfish-core/lib/update_service.hpp
index 8dae2fb52a..0b151d9463 100644
--- a/redfish-core/lib/update_service.hpp
+++ b/redfish-core/lib/update_service.hpp
@@ -400,8 +400,8 @@ class UpdateServiceActionsSimpleUpdate : public Node
BMCWEB_LOG_DEBUG << "Enter UpdateService.SimpleUpdate doPost";
// User can pass in both TransferProtocol and ImageURI parameters or
- // they can pass in just the ImageURI with the transfer protocl embedded
- // within it.
+ // they can pass in just the ImageURI with the transfer protocol
+ // embedded within it.
// 1) TransferProtocol:TFTP ImageURI:1.1.1.1/myfile.bin
// 2) ImageURI:tftp://1.1.1.1/myfile.bin
diff --git a/redfish-core/lib/virtual_media.hpp b/redfish-core/lib/virtual_media.hpp
index 552e2552c8..0b5eb1a51d 100644
--- a/redfish-core/lib/virtual_media.hpp
+++ b/redfish-core/lib/virtual_media.hpp
@@ -559,7 +559,7 @@ class VirtualMediaActionInsertMedia : public Node
std::optional<bool> writeProtected = true;
std::optional<bool> inserted;
- // Read obligatory paramters (url of image)
+ // Read obligatory parameters (url of image)
if (!json_util::readJson(
req, aResp->res, "Image", imageUrl,
"WriteProtected", writeProtected,