All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@suse.de>
To: xen-devel@lists.xensource.com
Cc: ack@xensource.com
Subject: [patch 2/6] Add more xc_error_code values.
Date: Thu, 25 Jan 2007 17:19:18 +0100	[thread overview]
Message-ID: <20070125161926.510246000@suse.de> (raw)
In-Reply-To: 20070125161916.736076000@suse.de

[-- Attachment #1: tools-add-errors.diff --]
[-- Type: text/plain, Size: 1293 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/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";

-- 

  parent reply	other threads:[~2007-01-25 16:19 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-25 16:19 [patch 0/6] domain builder patches Gerd Hoffmann
2007-01-25 16:19 ` [patch 1/6] Generate headers with arch-specific structs Gerd Hoffmann
2007-01-25 16:19 ` Gerd Hoffmann [this message]
2007-01-25 16:19 ` [patch 3/6] libxc header fixups Gerd Hoffmann
2007-01-25 16:19 ` [patch 4/6] libxc domain builder rewrite, core bits Gerd Hoffmann
2007-01-25 16:19 ` [patch 5/6] libxc domain builder rewrite, linux builder Gerd Hoffmann
2007-01-25 16:19 ` [patch 6/6] Support transparant gunzipping in the readnotes utility Gerd Hoffmann
2007-02-13 14:54 ` [patch 0/6] domain builder patches Dietmar Hahn
2007-03-08 21:11 ` Hollis Blanchard
2007-03-13 10:04   ` Gerd Hoffmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070125161926.510246000@suse.de \
    --to=kraxel@suse.de \
    --cc=ack@xensource.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.