Skip to contentSkip to conversation

Remove XendLogging dependency from xen/utils/blkif.py

PATCH New Zhigang Wang 1 participant 1 message May 21, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

tools/python/xen/util/blkif.py +0 -2
@@ -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
[email protected]
http://lists.xensource.com/xen-devel