details: show port number for console device in hwlist
We could see more than one console devices in hwlist because of multi console support. This patch will show port number of console device in hwlist. Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
This commit is contained in:
parent
e0103286bd
commit
f0fb4ca204
|
@ -3151,7 +3151,7 @@ class vmmDetails(vmmGObjectUI):
|
|||
port = chardev.target_port
|
||||
|
||||
label = devtype.capitalize()
|
||||
if devtype in ["serial", "parallel"]:
|
||||
if devtype in ["serial", "parallel", "console"]:
|
||||
label += " %s" % (int(port) + 1)
|
||||
elif devtype == "channel":
|
||||
name = chardev.pretty_channel_name(chardev.target_name)
|
||||
|
|
Loading…
Reference in New Issue