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/evdevpp/evdev.hpp b/evdevpp/evdev.hpp
index e68ad7c..4c4441f 100644
--- a/evdevpp/evdev.hpp
+++ b/evdevpp/evdev.hpp
@@ -39,7 +39,6 @@
} // namespace details
-using namespace phosphor::logging;
/** @class EvDev
* @brief Provides C++ bindings to the libevdev C API.
*/
@@ -78,7 +77,7 @@
lg2::error(
"Error in call to libevdev_fetch_event_value, Type={TYPE}, Code={CODE}",
"TYPE", type, "CODE", code);
- elog<InternalFailure>();
+ phosphor::logging::elog<InternalFailure>();
}
return val;
@@ -96,7 +95,7 @@
{
lg2::error("Error in call to libevdev_next_event, RC={RC}",
"RC", rc);
- elog<InternalFailure>();
+ phosphor::logging::elog<InternalFailure>();
}
if (ev.type == EV_SYN && ev.code == SYN_REPORT)
@@ -128,7 +127,7 @@
{
lg2::error("Error in call to libevdev_new_from_fd, RC={RC}, FD={FD}",
"RC", rc, "FD", fd);
- elog<InternalFailure>();
+ phosphor::logging::elog<InternalFailure>();
}
return EvDev(dev);