Patchwork [4/7] QError: Add QERR_DEV_NFOUND

login
register
mail settings
Submitter Luiz Capitulino
Date Oct. 29, 2009, 6:42 p.m.
Message ID <1256841750-15228-5-git-send-email-lcapitulino@redhat.com>
Download mbox | patch
Permalink /patch/37220/
State New
Headers show

Comments

Luiz Capitulino - Oct. 29, 2009, 6:42 p.m.
A generic error to be triggered when a device is not found.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
---
 qerror.c |    4 ++++
 qerror.h |    1 +
 2 files changed, 5 insertions(+), 0 deletions(-)

Patch

diff --git a/qerror.c b/qerror.c
index 0359d65..69eabfb 100644
--- a/qerror.c
+++ b/qerror.c
@@ -51,6 +51,10 @@  static QErrorTable qerror_table[] = {
         .code = QERR_UNKNOWN,
         .desc = "unknown error",
     },
+    {
+        .code = QERR_DEV_NFOUND,
+        .desc = "device \"%(name)s\" not found",
+    },
 };
 
 /**
diff --git a/qerror.h b/qerror.h
index 2fd0d58..7f45360 100644
--- a/qerror.h
+++ b/qerror.h
@@ -21,6 +21,7 @@ 
  */
 typedef enum QErrorCode {
     QERR_UNKNOWN,
+    QERR_DEV_NFOUND,
     QERR_MAX,
 } QErrorCode;