Cleanup old headers and namespace declarations
Remove the header includes for the old phosphor::logging::log API
as well as unnecessary phosphor::logging namespace declarations.
Fully qualify phosphor::logging namespace where applicable and/or
needed.
Tested:
* Verified commit passed CI unit tests.
* Verified commit built using bitbake.
Change-Id: I2e490e1aa3fd3423f8c52694c2b97bc58b95525a
Signed-off-by: Anwaar Hadi <anwaar.hadi@ibm.com>
diff --git a/presence/gpio.cpp b/presence/gpio.cpp
index 0bd5b6f..0920b35 100644
--- a/presence/gpio.cpp
+++ b/presence/gpio.cpp
@@ -66,10 +66,10 @@
void Gpio::fail()
{
using namespace sdbusplus::xyz::openbmc_project::Common::Callout::Error;
- using namespace phosphor::logging;
- using namespace xyz::openbmc_project::Common::Callout;
+ using namespace phosphor::logging::xyz::openbmc_project::Common::Callout;
- report<sdbusplus::xyz::openbmc_project::Common::Callout::Error::GPIO>(
+ phosphor::logging::report<
+ sdbusplus::xyz::openbmc_project::Common::Callout::Error::GPIO>(
GPIO::CALLOUT_GPIO_NUM(pin), GPIO::CALLOUT_ERRNO(0),
GPIO::CALLOUT_DEVICE_PATH(phys.c_str()));
}