summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRatan Gupta <ratagupt@in.ibm.com>2018-02-07 16:10:16 +0530
committerRatan Gupta <ratagupt@in.ibm.com>2018-02-13 10:59:45 +0530
commit3e6a769b552c0cf1ec6dd60b2e5a6c6fed9b46a5 (patch)
treef4524345fad212e744ce8bb3e0960a510934ef93
parent6edfc5c16cfe85e7c50a3574e3d6ef81b1895ad4 (diff)
downloadphosphor-host-ipmid-3e6a769b552c0cf1ec6dd60b2e5a6c6fed9b46a5.tar.gz
phosphor-host-ipmid-3e6a769b552c0cf1ec6dd60b2e5a6c6fed9b46a5.zip
Fix the typo
Change-Id: I5eff36514969ca7e301578f0913b5da250b426c9 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
-rw-r--r--ipmi_fru_info_area.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/ipmi_fru_info_area.cpp b/ipmi_fru_info_area.cpp
index 64fa222..386b164 100644
--- a/ipmi_fru_info_area.cpp
+++ b/ipmi_fru_info_area.cpp
@@ -24,7 +24,7 @@ static constexpr auto chassis = "Chassis";
static constexpr auto product = "Product";
static constexpr auto specVersion = 0x1;
-static constexpr auto recordUnitOfMeasurment = 0x8; //size in bytes
+static constexpr auto recordUnitOfMeasurement = 0x8; //size in bytes
static constexpr auto checksumSize = 0x1; //size in bytes
static constexpr auto recordNotPresent = 0x0;
static constexpr auto englishLanguageCode = 0x0;
@@ -76,10 +76,10 @@ void appendDataChecksum(FruAreaData& data)
*/
void padData(FruAreaData& data)
{
- uint8_t pad = (data.size() + checksumSize) % recordUnitOfMeasurment;
+ uint8_t pad = (data.size() + checksumSize) % recordUnitOfMeasurement;
if (pad)
{
- data.resize((data.size() + recordUnitOfMeasurment - pad));
+ data.resize((data.size() + recordUnitOfMeasurement - pad));
}
}
@@ -95,7 +95,7 @@ void postFormatProcessing(FruAreaData& data)
//Set size of data info area
data.at(areaSizeOffset) = (data.size() + checksumSize) /
- (recordUnitOfMeasurment);
+ (recordUnitOfMeasurement);
//Finally add area checksum
appendDataChecksum(data);
@@ -189,12 +189,12 @@ void buildCommonHeaderSection(
else
{
// offset should be multiple of 8.
- auto remainder = offset % recordUnitOfMeasurment;
+ auto remainder = offset % recordUnitOfMeasurement;
// add the padding bytes in the offset so that offset
// will be multiple of 8 byte.
- offset += (remainder > 0) ? recordUnitOfMeasurment - remainder : 0;
+ offset += (remainder > 0) ? recordUnitOfMeasurement - remainder : 0;
//Place data to define offset to area data section
- data.emplace_back(offset / recordUnitOfMeasurment);
+ data.emplace_back(offset / recordUnitOfMeasurement);
offset += infoAreaSize;
}
OpenPOWER on IntegriCloud