[POWERPC][TOOLS] Fix xc.c mismerge.

Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
This commit is contained in:
Hollis Blanchard committed 2007-01-03 17:11:55 -06:00
1 parent 74f144383a
commit d9e6a2856c
1 file changed
+6 -5
+6 -5
View File
@@ -930,7 +930,7 @@ static PyObject *pyxc_alloc_real_mode_area(XcObject *self,
return NULL;
if ( xc_alloc_real_mode_area(self->xc_handle, dom, log) )
return PyErr_SetFromErrno(xc_error);
return pyxc_error_to_exception();
Py_INCREF(zero);
return zero;
@@ -944,6 +944,7 @@ static PyObject *pyxc_prose_build(XcObject *self,
char *image, *ramdisk = NULL, *cmdline = "", *features = NULL;
int flags = 0;
int store_evtchn, console_evtchn;
unsigned int mem_mb;
unsigned long store_mfn = 0;
unsigned long console_mfn = 0;
void *arch_args = NULL;
@@ -955,22 +956,22 @@ static PyObject *pyxc_prose_build(XcObject *self,
"ramdisk", "cmdline", "flags",
"features", "arch_args", NULL };
if ( !PyArg_ParseTupleAndKeywords(args, kwds, "iiis|ssiss#", kwd_list,
&dom, &store_evtchn,
if ( !PyArg_ParseTupleAndKeywords(args, kwds, "iiiis|ssiss#", kwd_list,
&dom, &store_evtchn, &mem_mb,
&console_evtchn, &image,
/* optional */
&ramdisk, &cmdline, &flags,
&features, &arch_args, &unused) )
return NULL;
if ( xc_prose_build(self->xc_handle, dom, image,
if ( xc_prose_build(self->xc_handle, dom, mem_mb, image,
ramdisk, cmdline, features, flags,
store_evtchn, &store_mfn,
console_evtchn, &console_mfn,
arch_args) != 0 ) {
if (!errno)
errno = EINVAL;
return PyErr_SetFromErrno(xc_error);
return pyxc_error_to_exception();
}
return Py_BuildValue("{s:i,s:i}",
"store_mfn", store_mfn,
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.