Revert "PEL: Create trace wrapper for peltool"
This reverts commit 2ea96f6c6c92bb585668cff7c659cdea606dfc68.
Going to go in a different direction and not build peltool in other
contexts.
Change-Id: I92fefbb3fe5249f2cc0ccf679febe5a3b3340048
diff --git a/extensions/openpower-pels/callout.cpp b/extensions/openpower-pels/callout.cpp
index a1d5ebe..f54d77e 100644
--- a/extensions/openpower-pels/callout.cpp
+++ b/extensions/openpower-pels/callout.cpp
@@ -15,9 +15,7 @@
*/
#include "callout.hpp"
-#include "trace.hpp"
-
-#include <fmt/format.h>
+#include <phosphor-logging/log.hpp>
namespace openpower
{
@@ -26,6 +24,8 @@
namespace src
{
+using namespace phosphor::logging;
+
constexpr size_t locationCodeMaxSize = 80;
Callout::Callout(Stream& pel)
@@ -70,8 +70,8 @@
break;
}
default:
- trace::error(
- fmt::format("Invalid Callout subsection type {}", type));
+ log<level::ERR>("Invalid Callout subsection type",
+ entry("CALLOUT_TYPE=0x%X", type));
throw std::runtime_error("Invalid Callout subsection type");
break;
}