ia64/xen-unstable

changeset 13637:985384fd424c

Add more xc_error_code values.

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(+)
author Emmanuel Ackaouy <ack@xensource.com>
date Thu Jan 25 22:16:52 2007 +0000 (2007-01-25)
parents 583441e296a1
children 50d9e2ddc377
files tools/libxc/xc_private.c tools/libxc/xenctrl.h
line diff
     1.1 --- a/tools/libxc/xc_private.c	Thu Jan 25 22:16:52 2007 +0000
     1.2 +++ b/tools/libxc/xc_private.c	Thu Jan 25 22:16:52 2007 +0000
     1.3 @@ -45,6 +45,10 @@ const char *xc_error_code_to_desc(int co
     1.4          return "Internal error";
     1.5      case XC_INVALID_KERNEL:
     1.6          return "Invalid kernel";
     1.7 +    case XC_INVALID_PARAM:
     1.8 +        return "Invalid configuration";
     1.9 +    case XC_OUT_OF_MEMORY:
    1.10 +        return "Out of memory";
    1.11      }
    1.12  
    1.13      return "Unknown error code";
     2.1 --- a/tools/libxc/xenctrl.h	Thu Jan 25 22:16:52 2007 +0000
     2.2 +++ b/tools/libxc/xenctrl.h	Thu Jan 25 22:16:52 2007 +0000
     2.3 @@ -730,6 +730,8 @@ typedef enum {
     2.4    XC_ERROR_NONE = 0,
     2.5    XC_INTERNAL_ERROR = 1,
     2.6    XC_INVALID_KERNEL = 2,
     2.7 +  XC_INVALID_PARAM = 3,
     2.8 +  XC_OUT_OF_MEMORY = 4,
     2.9  } xc_error_code;
    2.10  
    2.11  #define XC_MAX_ERROR_MSG_LEN 1024