summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGunnar Mills <gmills@us.ibm.com>2017-10-06 13:20:43 -0500
committerGunnar Mills <gmills@us.ibm.com>2017-10-08 16:29:45 -0500
commitffe04929148ffe57302655dd535dcbd54484cf26 (patch)
tree58fc025b5ff4d90d3a28734a1bab3f56e8795620
parenta4fcb6839f10203b1f93f2712c373a78b0975822 (diff)
downloadphosphor-bmc-code-mgmt-ffe04929148ffe57302655dd535dcbd54484cf26.tar.gz
phosphor-bmc-code-mgmt-ffe04929148ffe57302655dd535dcbd54484cf26.zip
Style changes in serialize.cpp
Style changes only. A similar change was made in openpower-pnor-code-mgmt. Change-Id: If68aa4822ea41a6af44258e398dfe6966827b35c Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
-rw-r--r--serialize.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/serialize.cpp b/serialize.cpp
index d692c0f..dde256a 100644
--- a/serialize.cpp
+++ b/serialize.cpp
@@ -18,7 +18,7 @@ void storeToFile(std::string versionId, uint8_t priority)
{
auto bus = sdbusplus::bus::new_default();
- if(!fs::is_directory(PERSIST_DIR))
+ if (!fs::is_directory(PERSIST_DIR))
{
fs::create_directories(PERSIST_DIR);
}
@@ -51,7 +51,7 @@ bool restoreFromFile(std::string versionId, uint8_t& priority)
iarchive(cereal::make_nvp("priority", priority));
return true;
}
- catch(cereal::RapidJSONException& e)
+ catch (cereal::RapidJSONException& e)
{
fs::remove(path);
}
@@ -63,7 +63,8 @@ bool restoreFromFile(std::string versionId, uint8_t& priority)
try
{
- while (std::getline(mtdDevices, device)) {
+ while (std::getline(mtdDevices, device))
+ {
if (device.find("u-boot-env") != std::string::npos)
{
devicePath = "/dev/" + device.substr(0, device.find(':'));
OpenPOWER on IntegriCloud