Minor changes in the code
- fix a typo in README and wrap file.
- refactoring lg2 errorlog usage.
Change-Id: I3b55b86a505405f02fe70429a266c467b87b17ff
Signed-off-by: Pavithra Barithaya <pavithra.b@ibm.com>
diff --git a/settings.cpp b/settings.cpp
index 50081b7..d0d5026 100644
--- a/settings.cpp
+++ b/settings.cpp
@@ -8,6 +8,8 @@
namespace settings
{
+PHOSPHOR_LOG2_USING;
+
using namespace phosphor::logging;
using namespace sdbusplus::xyz::openbmc_project::Common::Error;
@@ -26,12 +28,12 @@
}
catch (const sdbusplus::exception_t& ex)
{
- lg2::error("Failed to invoke GetSubTree method: {ERROR}", "ERROR", ex);
+ error("Failed to invoke GetSubTree method: {ERROR}", "ERROR", ex);
}
if (result.empty())
{
- lg2::error("Invalid response from mapper");
+ error("Invalid response from mapper");
}
for (const auto& iter : result)
@@ -49,5 +51,4 @@
}
}
}
-
} // namespace settings