* src/xen_internal.c: some error handling improvements from Saori Fukuta

Daniel
This commit is contained in:
Daniel Veillard 2007-07-20 10:44:24 +00:00
parent 6664fdec44
commit 90ae19cccf
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,7 @@
Fri Jul 20 11:02:28 CEST 2007 Daniel Veillard <veillard@redhat.com>
* src/xen_internal.c: some error handling improvements from Saori Fukuta
Thu Jul 19 18:21:47 CEST 2007 Daniel Veillard <veillard@redhat.com>
* src/Makefile.am src/openvz_conf.c src/openvz_conf.h

View File

@ -672,7 +672,7 @@ virXenError(virErrorNumber error, const char *info, int value)
errmsg = __virErrorMsg(error, info);
__virRaiseError(NULL, NULL, NULL, VIR_FROM_XEN, error, VIR_ERR_ERROR,
errmsg, info, NULL, value, 0, errmsg, info);
errmsg, info, NULL, value, 0, errmsg, info, value);
}
#ifndef PROXY
@ -702,10 +702,12 @@ virXenErrorFunc(virErrorNumber error, const char *func, const char *info,
snprintf(fullinfo, 999, "%s: %s", func, info);
fullinfo[999] = 0;
__virRaiseError(NULL, NULL, NULL, VIR_FROM_XEN, error, VIR_ERR_ERROR,
errmsg, fullinfo, NULL, value, 0, errmsg, fullinfo);
errmsg, fullinfo, NULL, value, 0, errmsg, fullinfo,
value);
} else {
__virRaiseError(NULL, NULL, NULL, VIR_FROM_XEN, error, VIR_ERR_ERROR,
errmsg, info, NULL, value, 0, errmsg, info);
errmsg, info, NULL, value, 0, errmsg, info,
value);
}
}