ia64/xen-unstable

changeset 2223:37ef3fbdde75

bitkeeper revision 1.1159.1.51 (411cb093WisMx6OYUPrSE3N1COOggA)

Fix construction of error message.
author mjw@wray-m-3.hpl.hp.com
date Fri Aug 13 12:14:11 2004 +0000 (2004-08-13)
parents 79f922fe70cb
children 6c85a89e99e3
files tools/python/xen/xend/server/blkif.py
line diff
     1.1 --- a/tools/python/xen/xend/server/blkif.py	Fri Aug 13 12:10:18 2004 +0000
     1.2 +++ b/tools/python/xen/xend/server/blkif.py	Fri Aug 13 12:14:11 2004 +0000
     1.3 @@ -198,9 +198,8 @@ class BlkifControllerFactory(controller.
     1.4          val = unpackMsg('blkif_be_vbd_grow_t', msg)
     1.5  	status = val['status']
     1.6  	if status != BLKIF_BE_STATUS_OKAY:
     1.7 -            raise XendError("Adding extent to vbd failed: device %x, error %d",
     1.8 -                            val['extent.device'],
     1.9 -                            status)
    1.10 +            raise XendError("Adding extent to vbd failed: device %x, error %d"
    1.11 +                            % (val['extent.device'], status))
    1.12          if self.attached:
    1.13              if d:
    1.14                  d.callback(dev)