Skip to content

Commit 3ff5a36

Browse files
committed
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: I1068afac44652ab3d9bfe58bb6e19d359d84f20e Signed-off-by: Manojkiran Eda <[email protected]>
1 parent 24b25a4 commit 3ff5a36

6 files changed

+7
-7
lines changed

bmc_state_manager.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ class BMC : public BMCInherit
141141
void updateLastRebootTime();
142142

143143
/**
144-
* @brief the lastRebootTime calcuated at startup.
144+
* @brief the lastRebootTime calculated at startup.
145145
**/
146146
uint64_t rebootTime;
147147
};

chassis_state_manager_main.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ int main(int argc, char** argv)
4949
{
5050
// Chassis State Manager was only support single-chassis and there only
5151
// two file to store persist values(POH and state change time), to
52-
// support multi-chassis state mamagement, each service access new file
52+
// support multi-chassis state management, each service access new file
5353
// paths with prefix 'chassisN', if any legacy persist file is exist,
5454
// rename it to the new file format of chassis0.
5555

host_check.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ bool isHostRunning(size_t id)
180180
// we have a condition where the interface may be on D-Bus but not stored
181181
// within mapper yet. There are five built in retries to check if it's
182182
// found the host is not up. This service is only called if chassis power
183-
// is on when the BMC comes up, so this wont impact most normal cases
183+
// is on when the BMC comes up, so this won't impact most normal cases
184184
// where the BMC is rebooted with chassis power off. In cases where
185185
// chassis power is on, the host is likely running so we want to be sure
186186
// we check all interfaces

host_state_manager.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ class Host : public HostInherit
307307
*/
308308
fs::path serialize();
309309

310-
/** @brief Deserialze a persisted requested host state.
310+
/** @brief Deserialize a persisted requested host state.
311311
*
312312
* @return bool - true if the deserialization was successful, false
313313
* otherwise.

scheduled_host_transition.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ constexpr auto PROPERTY_RESTART_CAUSE = "RestartCause";
4848

4949
uint64_t ScheduledHostTransition::scheduledTime(uint64_t value)
5050
{
51-
info("A scheduled host transtion request has been made for {TIME}", "TIME",
51+
info("A scheduled host transition request has been made for {TIME}", "TIME",
5252
value);
5353
if (value == 0)
5454
{
@@ -129,7 +129,7 @@ void ScheduledHostTransition::callback()
129129
void ScheduledHostTransition::initialize()
130130
{
131131
// Subscribe time change event
132-
// Choose the MAX time that is possible to avoid mis fires.
132+
// Choose the MAX time that is possible to avoid misfires.
133133
constexpr itimerspec maxTime = {
134134
{0, 0}, // it_interval
135135
{system_clock::duration::max().count(), 0}, // it_value

utils.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ void createError(
8383
void createBmcDump(sdbusplus::bus_t& bus);
8484

8585
/** @brief Attempt to locate the obmc-chassis-lost-power@ file
86-
* to indicate that an AC loss occured.
86+
* to indicate that an AC loss occurred.
8787
*
8888
* @param[in] chassisId - the chassis instance
8989
*/

0 commit comments

Comments
 (0)