diff mbox

[4/7] QError: Add QERR_DEV_NFOUND

Message ID 1256841750-15228-5-git-send-email-lcapitulino@redhat.com
State New
Headers show

Commit Message

Luiz Capitulino Oct. 29, 2009, 6:42 p.m. UTC
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(-)
diff mbox

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;