Build the required error log header file for elogs
Take the elog.yaml file and generate the required hpp
file required for build time validation and error log
processing.
A future commit will delete elog-gen.hpp and will
start dynamically generating it during build.
Change-Id: I21a87d959096a2541de69fde47f57f02482a00cc
Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
diff --git a/elog.yaml b/elog.yaml
index 79307a3..0dd21e3 100644
--- a/elog.yaml
+++ b/elog.yaml
@@ -1,13 +1,22 @@
---
SW:
- FILE_NOT_FOUND_ERROR:
+ FILE_NOT_FOUND:
msg: "A required file was not found"
level: INFO
- meta_i: [ ERRNUM ]
- meta_s: [ FILE_PATH, FILE_NAME ]
- GETSCOM_ERROR:
+ 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_i: [ DEV_ADDR,
- DEV_ID ]
- meta_s: [ DEV_NAME ]
+ 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