From c9fa69ef08e3eeb8e239f68d21419875b32917ae Mon Sep 17 00:00:00 2001 From: Gunnar Mills Date: Sun, 8 Apr 2018 16:35:25 -0500 Subject: Grammar and 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. Some additional grammar and capitalization errors were fixed as well. Change-Id: I700db4e6d7ba52b02374c9c3e84be0af8bd91859 Signed-off-by: Gunnar Mills --- docs/oem-extension-numbering.md | 2 +- ipmisensor.cpp | 2 +- sensordatahandler.cpp | 2 +- transporthandler.cpp | 16 ++++++++-------- utils.cpp | 4 ++-- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/docs/oem-extension-numbering.md b/docs/oem-extension-numbering.md index f6ff569..d87e0aa 100644 --- a/docs/oem-extension-numbering.md +++ b/docs/oem-extension-numbering.md @@ -79,7 +79,7 @@ These are the Command codes allocated for use with the OpenBMC OEM Number. ### I2C Device Access (Command 2) The next subsections describe command and response messages supporting -the I2C Device Access extension OpenBMC OEM extenstion (command code 2). +the I2C Device Access extension OpenBMC OEM extension (command code 2). #### I2C Request Message - Overall diff --git a/ipmisensor.cpp b/ipmisensor.cpp index 2e987d0..1eecb94 100644 --- a/ipmisensor.cpp +++ b/ipmisensor.cpp @@ -122,7 +122,7 @@ int set_sensor_dbus_state_fwprogress(const sensorRES_t *pRec, const lookup_t *pT case 0x00 : snprintf(p, sizeof(valuestring), "POST Error, %s", event_data_lookup(g_fwprogress00h, pRec->event_data2)); break; - case 0x01 : /* Using g_fwprogress02h for 0x01 because thats what the ipmi spec says to do */ + case 0x01 : /* Using g_fwprogress02h for 0x01 because that's what the ipmi spec says to do */ snprintf(p, sizeof(valuestring), "FW Hang, %s", event_data_lookup(g_fwprogress02h, pRec->event_data2)); break; case 0x02 : snprintf(p, sizeof(valuestring), "FW Progress, %s", event_data_lookup(g_fwprogress02h, pRec->event_data2)); diff --git a/sensordatahandler.cpp b/sensordatahandler.cpp index 4d87341..20006dc 100644 --- a/sensordatahandler.cpp +++ b/sensordatahandler.cpp @@ -68,7 +68,7 @@ ServicePath getServiceAndPath(sdbusplus::bus::bus& bus, const auto& iter = mapperResponse.find(path); if (iter == mapperResponse.end()) { - log("Coudn't find d-bus path", + log("Couldn't find D-Bus path", entry("PATH=%s", path), entry("INTERFACE=%s", interface)); elog(); diff --git a/transporthandler.cpp b/transporthandler.cpp index b33dc7d..bafeb16 100644 --- a/transporthandler.cpp +++ b/transporthandler.cpp @@ -93,8 +93,8 @@ ipmi_ret_t getNetworkData(uint8_t lan_param, uint8_t* data, int channel) ipaddress = properties["Address"].get(); } - // ignore the exception, as it is a valid condtion that - // system is not confiured with any ip. + // ignore the exception, as it is a valid condition that + // the system is not configured with any IP. catch (InternalFailure& e) { // nothing to do. @@ -212,8 +212,8 @@ ipmi_ret_t getNetworkData(uint8_t lan_param, uint8_t* data, int channel) mask = ipmi::network::MASK_32_BIT; mask = htonl(mask << (ipmi::network::BITS_32 - prefix)); } - // ignore the exception, as it is a valid condtion that - // system is not confiured with any ip. + // ignore the exception, as it is a valid condition that + // the system is not configured with any IP. catch (InternalFailure& e) { // nothing to do @@ -251,8 +251,8 @@ ipmi_ret_t getNetworkData(uint8_t lan_param, uint8_t* data, int channel) gateway = systemProperties["DefaultGateway"].get< std::string>(); } - // ignore the exception, as it is a valid condtion that - // system is not confiured with any ip. + // ignore the exception, as it is a valid condition that + // the system is not configured with any IP. catch (InternalFailure& e) { // nothing to do @@ -329,8 +329,8 @@ ipmi_ret_t getNetworkData(uint8_t lan_param, uint8_t* data, int channel) vlanID |= htole16(ipmi::network::VLAN_ENABLE_MASK); } } - // ignore the exception, as it is a valid condtion that - // system is not confiured with any ip. + // ignore the exception, as it is a valid condition that + // the system is not configured with any IP. catch (InternalFailure& e) { // nothing to do diff --git a/utils.cpp b/utils.cpp index 31c219c..4f59f6c 100644 --- a/utils.cpp +++ b/utils.cpp @@ -496,7 +496,7 @@ void createIP(sdbusplus::bus::bus& bus, if (reply.is_method_error()) { - log("Failed to excute method", + log("Failed to execute method", entry("METHOD=%s", "IP"), entry("PATH=%s", objPath.c_str())); elog(); @@ -522,7 +522,7 @@ void createVLAN(sdbusplus::bus::bus& bus, if (reply.is_method_error()) { - log("Failed to excute method", + log("Failed to execute method", entry("METHOD=%s", "VLAN"), entry("PATH=%s", objPath.c_str())); elog(); -- cgit v1.2.1