mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
bitkeeper revision 1.1426 (4289b3a59jCX-jlUcC5FbM5VwgzLvw)
Merge firebug.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-unstable.bk into firebug.cl.cam.ac.uk:/local/scratch/cl349/xen-unstable.bk
This commit is contained in:
commit
ca5d3268f9
2 files changed
+13
-4
No files matched your search
@@ -285,6 +285,16 @@ def prettyprint(sxpr, out=sys.stdout, width=80):
|
||||
sxp.show(sxpr, out=out)
|
||||
print >> out
|
||||
|
||||
def prettyprintstring(sxp):
|
||||
class tmpstr:
|
||||
def __init__(self):
|
||||
self.str = ""
|
||||
def write(self, str):
|
||||
self.str = self.str + str
|
||||
tmp = tmpstr()
|
||||
prettyprint(sxp, out=tmp)
|
||||
return tmp.str
|
||||
|
||||
def main():
|
||||
pin = sxp.Parser()
|
||||
while 1:
|
||||
|
||||
@@ -28,7 +28,7 @@ from XendLogging import log
|
||||
from XendError import VmError
|
||||
from XendRoot import get_component
|
||||
|
||||
from PrettyPrint import prettyprint
|
||||
from PrettyPrint import prettyprintstring
|
||||
|
||||
"""Flag for a block device backend domain."""
|
||||
SIF_BLK_BE_DOMAIN = (1<<4)
|
||||
@@ -192,9 +192,8 @@ def vm_recreate(savedinfo, info):
|
||||
@param info: domain info from xc
|
||||
@type info: xc domain dict
|
||||
"""
|
||||
print 'vm_recreate>'
|
||||
print 'savedinfo=' ; prettyprint(savedinfo)
|
||||
print 'info=', info
|
||||
log.debug('savedinfo=' + prettyprintstring(savedinfo))
|
||||
log.debug('info=' + str(info))
|
||||
vm = XendDomainInfo()
|
||||
vm.recreate = True
|
||||
vm.savedinfo = savedinfo
|
||||
|
||||