diff options
author | Patrick Venture <venture@google.com> | 2018-10-26 18:14:00 -0700 |
---|---|---|
committer | Patrick Venture <venture@google.com> | 2018-10-26 18:16:27 -0700 |
commit | f18bf836d206b1bc5b4fd849127a2e706eddf0aa (patch) | |
tree | 5c61f65861a2350f84080f21c6b996d33d0c2ab3 /callouts | |
parent | aabb92ef56c4faa8f05487e9fcdf83f1053f1a22 (diff) | |
download | phosphor-logging-f18bf836d206b1bc5b4fd849127a2e706eddf0aa.tar.gz phosphor-logging-f18bf836d206b1bc5b4fd849127a2e706eddf0aa.zip |
add .clang-format
Change-Id: I2c36b7886a25d0b235693b0776019d29608e1d52
Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'callouts')
-rw-r--r-- | callouts/callout_test.cpp | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/callouts/callout_test.cpp b/callouts/callout_test.cpp index 2eff6a0..729bbf5 100644 --- a/callouts/callout_test.cpp +++ b/callouts/callout_test.cpp @@ -1,14 +1,15 @@ +#include "elog_meta.hpp" + #include <iostream> -#include <sdbusplus/exception.hpp> -#include <phosphor-logging/elog.hpp> #include <phosphor-logging/elog-errors.hpp> -#include "elog_meta.hpp" +#include <phosphor-logging/elog.hpp> +#include <sdbusplus/exception.hpp> using namespace phosphor::logging; int main(int argc, char** argv) { - if(2 != argc) + if (2 != argc) { std::cerr << "usage: callout-test <sysfs path>" << std::endl; return -1; @@ -17,10 +18,9 @@ int main(int argc, char** argv) using namespace example::xyz::openbmc_project::Example::Elog; try { - elog<TestCallout>( - TestCallout::DEV_ADDR(0xDEADEAD), - TestCallout::CALLOUT_ERRNO_TEST(0), - TestCallout::CALLOUT_DEVICE_PATH_TEST(argv[1])); + elog<TestCallout>(TestCallout::DEV_ADDR(0xDEADEAD), + TestCallout::CALLOUT_ERRNO_TEST(0), + TestCallout::CALLOUT_DEVICE_PATH_TEST(argv[1])); } catch (TestCallout& e) { @@ -29,5 +29,3 @@ int main(int argc, char** argv) return 0; } - - |