summaryrefslogtreecommitdiff
path: root/redfish-core
diff options
context:
space:
mode:
authorGunnar Mills <gmills@us.ibm.com>2018-06-13 23:45:36 +0300
committerGunnar Mills <gmills@us.ibm.com>2018-06-14 00:06:13 +0300
commit274fad5ad0e7634d9ed3e174695136e674688e0c (patch)
treee8c9b0fbba41a6370c2fe81229bc6c79fdb34b80 /redfish-core
parent87419ee5e51196a431883c67504e43deaffd7d12 (diff)
downloadbmcweb-274fad5ad0e7634d9ed3e174695136e674688e0c.tar.xz
Spelling fixes in redfish-core
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: Iaac459596247a9063350a129d0458ebe0c0e39ce Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Diffstat (limited to 'redfish-core')
-rw-r--r--redfish-core/lib/chassis.hpp6
-rw-r--r--redfish-core/lib/ethernet.hpp14
-rw-r--r--redfish-core/lib/sensors.hpp4
3 files changed, 12 insertions, 12 deletions
diff --git a/redfish-core/lib/chassis.hpp b/redfish-core/lib/chassis.hpp
index 9f3fb38f5b..c7f7b951f7 100644
--- a/redfish-core/lib/chassis.hpp
+++ b/redfish-core/lib/chassis.hpp
@@ -35,7 +35,7 @@ using PropertiesType =
/**
* OnDemandChassisProvider
- * Chassis provider class that retrieves data directly from dbus, before seting
+ * Chassis provider class that retrieves data directly from dbus, before setting
* it into JSON output. This does not cache any data.
*
* Class can be a good example on how to scale different data providing
@@ -125,7 +125,7 @@ class OnDemandChassisProvider {
// is Chassis.
if (interface.first ==
"xyz.openbmc_project.Configuration.Chassis") {
- // Cut out everyting until last "/", ...
+ // Cut out everything until last "/", ...
const std::string &chassis_id = objpath.first.value;
std::size_t last_pos = chassis_id.rfind("/");
if (last_pos != std::string::npos) {
@@ -135,7 +135,7 @@ class OnDemandChassisProvider {
}
}
}
- // Finally make a callback with usefull data
+ // Finally make a callback with useful data
callback(true, chassis_list);
},
{"xyz.openbmc_project.EntityManager",
diff --git a/redfish-core/lib/ethernet.hpp b/redfish-core/lib/ethernet.hpp
index eaee13ecf1..88ce9f2fff 100644
--- a/redfish-core/lib/ethernet.hpp
+++ b/redfish-core/lib/ethernet.hpp
@@ -61,8 +61,8 @@ struct EthernetInterfaceData {
/**
* OnDemandEthernetProvider
- * Ethernet provider class that retrieves data directly from dbus, before seting
- * it into JSON output. This does not cache any data.
+ * Ethernet provider class that retrieves data directly from dbus, before
+ * setting it into JSON output. This does not cache any data.
*
* TODO(Pawel)
* This perhaps shall be different file, which has to be chosen on compile time
@@ -175,7 +175,7 @@ class OnDemandEthernetProvider {
// Since there might be several IPv4 configurations aligned with
// single ethernet interface, loop over all of them
for (auto &objpath : dbus_data) {
- // Check if propper patter for object path appears
+ // Check if proper patter for object path appears
if (boost::starts_with(
objpath.first.value,
"/xyz/openbmc_project/network/" + ethiface_id + "/ipv4/")) {
@@ -215,7 +215,7 @@ class OnDemandEthernetProvider {
// Attach IPv4 only if address is present
if (ipv4_address.address != nullptr) {
- // Check if given addres is local, or global
+ // Check if given address is local, or global
if (boost::starts_with(*ipv4_address.address, "169.254")) {
ipv4_address.global = false;
} else {
@@ -270,7 +270,7 @@ class OnDemandEthernetProvider {
}
}
- // Finally make a callback with usefull data
+ // Finally make a callback with useful data
callback(true, eth_data, ipv4_data);
},
{"xyz.openbmc_project.Network", "/xyz/openbmc_project/network",
@@ -310,7 +310,7 @@ class OnDemandEthernetProvider {
// this is what we're looking for.
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.value;
std::size_t last_pos = iface_id.rfind("/");
if (last_pos != std::string::npos) {
@@ -320,7 +320,7 @@ class OnDemandEthernetProvider {
}
}
}
- // Finally make a callback with usefull data
+ // Finally make a callback with useful data
callback(true, iface_list);
},
{"xyz.openbmc_project.Network", "/xyz/openbmc_project/network",
diff --git a/redfish-core/lib/sensors.hpp b/redfish-core/lib/sensors.hpp
index c48512af97..f4279095fb 100644
--- a/redfish-core/lib/sensors.hpp
+++ b/redfish-core/lib/sensors.hpp
@@ -200,7 +200,7 @@ void getChassis(const std::shared_ptr<AsyncResp>& asyncResp,
/**
* @brief Builds a json sensor representation of a sensor.
* @param sensorName The name of the sensor to be built
- * @param sensorType The type (temperature, fan_tach, ect) of the sensor to
+ * @param sensorType The type (temperature, fan_tach, etc) of the sensor to
* build
* @param interfacesDict A dictionary of the interfaces and properties of said
* interfaces to be built from
@@ -361,7 +361,7 @@ void getChassisData(const std::shared_ptr<AsyncResp>& asyncResp) {
continue;
}
// These indexes aren't intuitive, as boost::split puts an empty
- // string at the beggining
+ // string at the beginning
const std::string& sensorType = split[4];
const std::string& sensorName = split[5];
CROW_LOG_DEBUG << "sensorName " << sensorName << " sensorType "