|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH]Remove XendLogging dependency from xen/utils/blkif.py
hi, xen/utils/blkif.py imported log from xen.xend.XendLogging but never uses. Other tools rather than xend can easily get the block device id by calling blkdev_name_to_number(). So it's useful to other tools. But the dependency on XendLogging prevents it from directly resuing. This patch removes the dependency on XendLogging from xen/utils/blkif.py. thanks, zhigang Remove XendLogging dependency from xen/utils/blkif.py
xen/utils/blkif.py imported log from xen.xend.XendLogging but never uses.
Other tools rather than xend can easily get the block device id by calling
blkdev_name_to_number(). So it's useful to other tools.
But the dependency on XendLogging prevents it from directly resuable.
This patch removes the dependency on XendLogging from xen/utils/blkif.py.
Signed-off-by: Zhigang Wang <zhigang.x.wang@xxxxxxxxxx>
--- xen-unstable.orig/tools/python/xen/util/blkif.py 2008-05-12
16:43:51.000000000 +0800
+++ xen-unstable/tools/python/xen/util/blkif.py 2008-05-21 16:55:06.000000000
+0800
@@ -2,8 +2,6 @@
import re
import string
-from xen.xend.XendLogging import log
-
def expand_dev_name(name):
if not name:
return name
_______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |