Update elog gen script to support the dbus specified errors
This work is in prep for running this python script against the
errors defined in the phosphor-dbus-interfaces repo
Change-Id: I85e6f612a5935391deaedc74aab06ca023c15703
Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
diff --git a/elog.yaml b/elog.yaml
index 0dd21e3..17cf1e0 100644
--- a/elog.yaml
+++ b/elog.yaml
@@ -1,22 +1,22 @@
----
-SW:
- FILE_NOT_FOUND:
- msg: "A required file was not found"
- level: INFO
- meta:
- - str: "ERRNUM=0x%.4X"
- type: int
- - str: FILE_PATH=%s
- type: const char*
- - str: FILE_NAME=%s
- type: const char*
- GETSCOM:
- msg: "Getscom call failed"
- level: ERR
- meta:
+error-codes:
+ - name: org.freedesktop.DBus.Error.FileNotFound
+ msg: "A required file was not found"
+ level: INFO
+ meta:
+ - str: "ERRNUM=0x%.4X"
+ type: int
+ - str: FILE_PATH=%s
+ type: const char *
+ - str: FILE_NAME=%s
+ type: const char *
+
+ - name: xyz.openbmc_project.Hwsv.Error.Scom
+ msg: "Getscom call failed"
+ level: ERR
+ meta:
- str: DEV_ADDR=0x%.8X
type: int
- str: DEV_ID=%u
type: int
- str: DEV_NAME=%s
- type: const char*
\ No newline at end of file
+ type: const char*