summaryrefslogtreecommitdiffstats
path: root/xyz/openbmc_project
diff options
context:
space:
mode:
authorMatt Spinler <spinler@us.ibm.com>2017-03-13 13:45:02 -0500
committerPatrick Williams <patrick@stwcx.xyz>2017-03-15 21:14:25 +0000
commit1ba9b8a2758cfb2c5e4f6bbf6583d5cc1c9b7334 (patch)
treeb572288ce769b37620844c376883177043bca4ae /xyz/openbmc_project
parent9be034af29ecfc57e72ccef0d2511b22e600420a (diff)
downloadphosphor-dbus-interfaces-1ba9b8a2758cfb2c5e4f6bbf6583d5cc1c9b7334.tar.gz
phosphor-dbus-interfaces-1ba9b8a2758cfb2c5e4f6bbf6583d5cc1c9b7334.zip
Create YAML for common file operation failures
Added File.errors.yaml and File.metadata.yaml for logging failures related to file operations. Change-Id: I0c934b35f0763ee8fc9722da7696705114d54437 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Diffstat (limited to 'xyz/openbmc_project')
-rw-r--r--xyz/openbmc_project/Common/File.errors.yaml5
-rw-r--r--xyz/openbmc_project/Common/File.metadata.yaml15
2 files changed, 20 insertions, 0 deletions
diff --git a/xyz/openbmc_project/Common/File.errors.yaml b/xyz/openbmc_project/Common/File.errors.yaml
new file mode 100644
index 0000000..aef5f1d
--- /dev/null
+++ b/xyz/openbmc_project/Common/File.errors.yaml
@@ -0,0 +1,5 @@
+- name: Open
+ description: Failed to open a file
+
+- name: Seek
+ description: Failed to seek a file
diff --git a/xyz/openbmc_project/Common/File.metadata.yaml b/xyz/openbmc_project/Common/File.metadata.yaml
new file mode 100644
index 0000000..0e12eaf
--- /dev/null
+++ b/xyz/openbmc_project/Common/File.metadata.yaml
@@ -0,0 +1,15 @@
+- name: Open
+ - str: "ERRNO=%d"
+ type: int32
+ - str: "PATH=%s"
+ type: string
+
+- name: Seek
+ - str: "OFFSET=%ll"
+ type: int64
+ - str: "WHENCE=%d"
+ type: int32
+ - str: "ERRNO=%d"
+ type: int32
+ - str: "PATH=%s"
+ type: string
OpenPOWER on IntegriCloud