summaryrefslogtreecommitdiffstats
path: root/tools/example
diff options
context:
space:
mode:
authorAndrew Geissler <andrewg@us.ibm.com>2016-11-21 16:06:53 -0600
committerAndrew Geissler <andrewg@us.ibm.com>2016-11-23 06:18:56 -0600
commite8596300873a33e220d275e714e8ae2fb9aaf42a (patch)
tree36232c1a6fb2b9c7c663eae7e1b119659b2a0f9e /tools/example
parentf1f2cfa943d08f270976e42e1f386fd34e723003 (diff)
downloadphosphor-logging-e8596300873a33e220d275e714e8ae2fb9aaf42a.tar.gz
phosphor-logging-e8596300873a33e220d275e714e8ae2fb9aaf42a.zip
Break elog yaml files into two pieces
This is the final piece to supporting the phosphor-dbus-interfaces design where the errors are defined in one yaml file and their corresponding meta data is defined within another file. Change-Id: Idd2e18c1fd82fccb1298a2570a484deb382954f8 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
Diffstat (limited to 'tools/example')
-rw-r--r--tools/example/xyz/openbmc_project/Example/Elog.errors.yaml16
-rw-r--r--tools/example/xyz/openbmc_project/Example/Elog.logging.yaml19
2 files changed, 19 insertions, 16 deletions
diff --git a/tools/example/xyz/openbmc_project/Example/Elog.errors.yaml b/tools/example/xyz/openbmc_project/Example/Elog.errors.yaml
index 9ae2028..1ec9997 100644
--- a/tools/example/xyz/openbmc_project/Example/Elog.errors.yaml
+++ b/tools/example/xyz/openbmc_project/Example/Elog.errors.yaml
@@ -1,21 +1,5 @@
- name: TestErrorOne
description: this is test error one
- level: INFO
- meta:
- - str: "ERRNUM=0x%.4X"
- type: int
- - str: FILE_PATH=%s
- type: const char *
- - str: FILE_NAME=%s
- type: const char *
- name: TestErrorTwo
description: This is test error two
- level: ERR
- meta:
- - str: DEV_ADDR=0x%.8X
- type: int
- - str: DEV_ID=%u
- type: int
- - str: DEV_NAME=%s
- type: const char*
diff --git a/tools/example/xyz/openbmc_project/Example/Elog.logging.yaml b/tools/example/xyz/openbmc_project/Example/Elog.logging.yaml
new file mode 100644
index 0000000..9ca4a4e
--- /dev/null
+++ b/tools/example/xyz/openbmc_project/Example/Elog.logging.yaml
@@ -0,0 +1,19 @@
+- name: TestErrorOne
+ level: INFO
+ meta:
+ - str: "ERRNUM=0x%.4X"
+ type: int
+ - str: FILE_PATH=%s
+ type: const char*
+ - str: FILE_NAME=%s
+ type: const char*
+
+- name: TestErrorTwo
+ level: ERR
+ meta:
+ - str: DEV_ADDR=0x%.8X
+ type: int
+ - str: DEV_ID=%u
+ type: int
+ - str: DEV_NAME=%s
+ type: const char*
OpenPOWER on IntegriCloud