attn: Move create pel support to util
Move the create pel support from attention handler the util library.
Signed-off-by: Ben Tyner <ben.tyner@ibm.com>
Change-Id: I023add4b3e237d0253b218ff2912ea081961da6d
diff --git a/attn/attn_logging.cpp b/attn/attn_logging.cpp
index 226b496..52e39bc 100644
--- a/attn/attn_logging.cpp
+++ b/attn/attn_logging.cpp
@@ -7,6 +7,7 @@
#include <attn/attn_logging.hpp>
#include <attn/pel/pel_minimal.hpp>
#include <phosphor-logging/log.hpp>
+#include <util/dbus.hpp>
#include <util/ffdc.hpp>
#include <util/trace.hpp>
@@ -291,7 +292,8 @@
{
// Create PEL with additional data and FFDC data. The newly created
// PEL's platform log-id will be returned.
- pelId = createPel(eventName, i_additional, createFFDCTuples(i_ffdc));
+ pelId = util::dbus::createPel(eventName, levelPelError, i_additional,
+ createFFDCTuples(i_ffdc));
// If this is a TI event we will create an additional PEL that is
// specific to the subsystem that generated the TI.