All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch] Add more xc_error_code values.
@ 2006-12-08 15:09 Gerd Hoffmann
  2006-12-08 15:35 ` Daniel P. Berrange
  0 siblings, 1 reply; 3+ messages in thread
From: Gerd Hoffmann @ 2006-12-08 15:09 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: tools-add-errors.diff --]
[-- Type: text/plain, Size: 686 bytes --]

XC_INVALID_PARAM
  such as asking for features unsupported by either xen or guest kernel.
XC_OUT_OF_MEMORY
  no comment ;)

Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
---
 tools/libxc/xenctrl.h |    2 ++
 1 file changed, 2 insertions(+)

Index: build-32-unstable-12802/tools/libxc/xenctrl.h
===================================================================
--- build-32-unstable-12802.orig/tools/libxc/xenctrl.h
+++ build-32-unstable-12802/tools/libxc/xenctrl.h
@@ -687,6 +687,8 @@ typedef enum {
   XC_ERROR_NONE = 0,
   XC_INTERNAL_ERROR = 1,
   XC_INVALID_KERNEL = 2,
+  XC_INVALID_PARAM = 3,
+  XC_OUT_OF_MEMORY = 4,
 } xc_error_code;
 
 #define XC_MAX_ERROR_MSG_LEN 1024

-- 

^ permalink raw reply	[flat|nested] 3+ messages in thread
* [patch] Add more xc_error_code values.
@ 2006-12-08 16:16 Gerd Hoffmann
  0 siblings, 0 replies; 3+ messages in thread
From: Gerd Hoffmann @ 2006-12-08 16:16 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: tools-add-errors.diff --]
[-- Type: text/plain, Size: 1328 bytes --]

XC_INVALID_PARAM
  such as asking for features unsupported by either xen or guest kernel.
XC_OUT_OF_MEMORY
  no comment ;)

With description texts this time.

Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
---
 tools/libxc/xc_private.c |    4 ++++
 tools/libxc/xenctrl.h    |    2 ++
 2 files changed, 6 insertions(+)

Index: build-32-unstable-12809/tools/libxc/xenctrl.h
===================================================================
--- build-32-unstable-12809.orig/tools/libxc/xenctrl.h
+++ build-32-unstable-12809/tools/libxc/xenctrl.h
@@ -691,6 +691,8 @@ typedef enum {
   XC_ERROR_NONE = 0,
   XC_INTERNAL_ERROR = 1,
   XC_INVALID_KERNEL = 2,
+  XC_INVALID_PARAM = 3,
+  XC_OUT_OF_MEMORY = 4,
 } xc_error_code;
 
 #define XC_MAX_ERROR_MSG_LEN 1024
Index: build-32-unstable-12809/tools/libxc/xc_private.c
===================================================================
--- build-32-unstable-12809.orig/tools/libxc/xc_private.c
+++ build-32-unstable-12809/tools/libxc/xc_private.c
@@ -45,6 +45,10 @@ const char *xc_error_code_to_desc(int co
         return "Internal error";
     case XC_INVALID_KERNEL:
         return "Invalid kernel";
+    case XC_INVALID_PARAM:
+        return "Invalid configuration";
+    case XC_OUT_OF_MEMORY:
+        return "Out of memory";
     }
 
     return "Unknown error code";

-- 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-12-08 16:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-08 15:09 [patch] Add more xc_error_code values Gerd Hoffmann
2006-12-08 15:35 ` Daniel P. Berrange
  -- strict thread matches above, loose matches on Subject: below --
2006-12-08 16:16 Gerd Hoffmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.