bitkeeper revision 1.1676 (42a306a07UKpLq27_iCaJyxJBbKedg)

More console cleanups. The console ring now overwrites its tail when
it fills, rather than stop recording output. The guest serial output
is only allowed to half-fill the serial output buffer, and now
respects hypercall preemption requests.
Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
kaf24@firebug.cl.cam.ac.uk committed 2005-06-05 14:05:20 +00:00
1 parent 6eda19e5e4
commit 01fd68a4ee
10 files changed
+107 -72

No files matched your search

+4 -3
View File
@@ -678,7 +678,8 @@ static PyObject *pyxc_readconsolering(PyObject *self,
XcObject *xc = (XcObject *)self;
unsigned int clear = 0;
char str[32768];
char _str[32768], *str = _str;
unsigned int count = 32768;
int ret;
static char *kwd_list[] = { "clear", NULL };
@@ -686,11 +687,11 @@ static PyObject *pyxc_readconsolering(PyObject *self,
if ( !PyArg_ParseTupleAndKeywords(args, kwds, "|i", kwd_list, &clear) )
return NULL;
ret = xc_readconsolering(xc->xc_handle, str, sizeof(str), clear);
ret = xc_readconsolering(xc->xc_handle, &str, &count, clear);
if ( ret < 0 )
return PyErr_SetFromErrno(xc_error);
return PyString_FromStringAndSize(str, ret);
return PyString_FromStringAndSize(str, count);
}
static PyObject *pyxc_physinfo(PyObject *self,
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.