Add Error definition for host watchdog timeout
When the host watchdog times out, we need an errorlog to report it.
This commit adds that support.
Change-Id: I0ebb792b768b2ce10e2019fcc24a4d171d3f38fb
Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
diff --git a/watchdog_timeout.cpp b/watchdog_timeout.cpp
new file mode 100644
index 0000000..130b79a
--- /dev/null
+++ b/watchdog_timeout.cpp
@@ -0,0 +1,13 @@
+#include <phosphor-logging/elog.hpp>
+#include "elog-errors.hpp"
+#include "org/open_power/Host/error.hpp"
+
+int main(int argc, char* argv[])
+{
+ using namespace phosphor::logging;
+ using error = sdbusplus::org::open_power::Host::Error::WatchdogTimedOut;
+ report<error>();
+
+ return 0;
+}
+