From: Xiaofeng Ling <xiaofeng.ling@intel.com>
To: Ian Pratt <m+Ian.Pratt@cl.cam.ac.uk>,
Keir Fraser <Keir.Fraser@cl.cam.ac.uk>
Cc: xen-devel <xen-devel@lists.xensource.com>
Subject: [PATCH][VT]value is not needed for some device model paramters
Date: Mon, 05 Sep 2005 12:13:41 +0800 [thread overview]
Message-ID: <431BC5F5.50209@intel.com> (raw)
for device mode parameter:std-vga, localtime, isa, value is not needed.
Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
diff -r 2be69124cb06 -r c5ba8748d09c tools/python/xen/xend/image.py
--- a/tools/python/xen/xend/image.py Mon Sep 5 03:56:13 2005
+++ b/tools/python/xen/xend/image.py Mon Sep 5 03:56:22 2005
@@ -338,12 +338,16 @@
# Handle booleans gracefully
if a in ['localtime', 'std-vga', 'isa']:
- if v != None: v = int(v)
-
- log.debug("args: %s, val: %s" % (a,v))
- if v:
- ret.append("-%s" % a)
- ret.append("%s" % v)
+ if v != None:
+ v = int(v)
+ if v:
+ ret.append("-%s" % a)
+ else:
+ if v:
+ ret.append("-%s" % a)
+ ret.append("%s" % v)
+ log.debug("args: %s, val: %s" % (a,v))
+
# Handle disk/network related options
devices = sxp.children(self.vm.config, 'device')
reply other threads:[~2005-09-05 4:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=431BC5F5.50209@intel.com \
--to=xiaofeng.ling@intel.com \
--cc=Keir.Fraser@cl.cam.ac.uk \
--cc=m+Ian.Pratt@cl.cam.ac.uk \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.