Enable clang code format
Change-Id: Ia899858c11cff6e4fa26b820b35b1e5dca1b57df
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
diff --git a/download_manager.cpp b/download_manager.cpp
index 1f31d32..3affd1d 100644
--- a/download_manager.cpp
+++ b/download_manager.cpp
@@ -22,8 +22,7 @@
using namespace phosphor::logging;
namespace fs = std::experimental::filesystem;
-void Download::downloadViaTFTP(std::string fileName,
- std::string serverAddress)
+void Download::downloadViaTFTP(std::string fileName, std::string serverAddress)
{
using Argument = xyz::openbmc_project::Common::InvalidArgument;
@@ -69,10 +68,9 @@
if (pid == 0)
{
// child process
- execl("/usr/bin/tftp", "tftp", "-g", "-r", fileName.c_str(),
+ execl("/usr/bin/tftp", "tftp", "-g", "-r", fileName.c_str(),
serverAddress.c_str(), "-l",
- (std::string{IMG_UPLOAD_DIR} + '/' + fileName).c_str(),
- (char*)0);
+ (std::string{IMG_UPLOAD_DIR} + '/' + fileName).c_str(), (char*)0);
// execl only returns on fail
log<level::ERR>("Error occurred during the TFTP call");
elog<InternalFailure>();
@@ -89,4 +87,3 @@
} // namespace manager
} // namespace software
} // namespace phosphor
-