All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH]Remove XendLogging dependency from xen/utils/blkif.py
@ 2008-05-21  9:11 Zhigang Wang
  0 siblings, 0 replies; only message in thread
From: Zhigang Wang @ 2008-05-21  9:11 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Type: text/plain, Size: 374 bytes --]

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

[-- Attachment #2: xen-blkif-logging.patch --]
[-- Type: text/x-patch, Size: 789 bytes --]

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@oracle.com>

--- 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

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-05-21  9:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-21  9:11 [PATCH]Remove XendLogging dependency from xen/utils/blkif.py Zhigang Wang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.