summaryrefslogtreecommitdiffstats
path: root/filedescriptor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'filedescriptor.cpp')
-rw-r--r--filedescriptor.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/filedescriptor.cpp b/filedescriptor.cpp
index 89f77e2..c96249e 100644
--- a/filedescriptor.cpp
+++ b/filedescriptor.cpp
@@ -13,12 +13,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-#include <stdexcept>
+#include "filedescriptor.hpp"
+
#include <unistd.h>
-#include <phosphor-logging/elog.hpp>
+
#include <phosphor-logging/elog-errors.hpp>
+#include <phosphor-logging/elog.hpp>
+#include <stdexcept>
#include <xyz/openbmc_project/Common/File/error.hpp>
-#include "filedescriptor.hpp"
namespace openpower
{
@@ -37,13 +39,11 @@ FileDescriptor::FileDescriptor(const std::string& path)
{
using metadata = xyz::openbmc_project::Common::File::Open;
- elog<file_error::Open>(
- metadata::ERRNO(errno),
- metadata::PATH(path.c_str()));
+ elog<file_error::Open>(metadata::ERRNO(errno),
+ metadata::PATH(path.c_str()));
}
}
-
FileDescriptor::~FileDescriptor()
{
if (fd >= 0)
@@ -52,5 +52,5 @@ FileDescriptor::~FileDescriptor()
}
}
-}
-}
+} // namespace util
+} // namespace openpower
OpenPOWER on IntegriCloud