PEL: Changing the remaining traces to lg2 style

Some of the logging traces of PEL files still uses old style of logging.

Changing the remaining traces in PEL files to lg2 style of logging.Some
of the traces in phosphor logging code which use the old style is also
considered.

Change-Id: I0daf9589af443881cb61730047c23db17fdec2c3
Signed-off-by: Arya K Padman <aryakpadman@gmail.com>
diff --git a/extensions/openpower-pels/mru.cpp b/extensions/openpower-pels/mru.cpp
index 1a9ce00..e53966a 100644
--- a/extensions/openpower-pels/mru.cpp
+++ b/extensions/openpower-pels/mru.cpp
@@ -15,7 +15,7 @@
  */
 #include "mru.hpp"
 
-#include <phosphor-logging/log.hpp>
+#include <phosphor-logging/lg2.hpp>
 
 namespace openpower
 {
@@ -24,8 +24,6 @@
 namespace src
 {
 
-using namespace phosphor::logging;
-
 // The MRU substructure supports up to 15 MRUs.
 static constexpr size_t maxMRUs = 15;
 
@@ -48,11 +46,12 @@
                         (sizeof(MRUCallout) * _mrus.size());
     if (_size != actualSize)
     {
-        log<level::WARNING>("MRU callout section in PEL has listed size that "
-                            "doesn't match actual size",
-                            entry("SUBSTRUCTURE_SIZE=%lu", _size),
-                            entry("NUM_MRUS=%lu", _mrus.size()),
-                            entry("ACTUAL_SIZE=%lu", actualSize));
+        lg2::warning(
+            "MRU callout section in PEL with {NUM_MRUS} MRUs has listed size "
+            "{SUBSTRUCTURE_SIZE} that doesn't match the actual size "
+            "{ACTUAL_SIZE}",
+            "SUBSTRUCTURE_SIZE", _size, "NUM_MRUS", _mrus.size(), "ACTUAL_SIZE",
+            actualSize);
     }
 }
 
@@ -60,7 +59,7 @@
 {
     if (mrus.empty())
     {
-        log<level::ERR>("Trying to create a MRU section with no MRUs");
+        lg2::error("Trying to create a MRU section with no MRUs");
         throw std::runtime_error{"Trying to create a MRU section with no MRUs"};
     }