Rename 'class' to 'class_name' in the qtree parser, to fix a name clash
(followed by a parser error) with the 'class' property in upstream qemu.

Device in question is virtio-blk-pci:

      dev: virtio-blk-pci, id "virtio-disk0"
        class = 0x100
        [ ... snip ... ]
        class SCSI controller, addr 00:05.0, pci id 1af4:1001 (sub 1af4:0002)
        [ ... snip ... ]
---
 client/virt/kvm_qtree.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/client/virt/kvm_qtree.py b/client/virt/kvm_qtree.py
index 406c02e..2b06fd1 100644
--- a/client/virt/kvm_qtree.py
+++ b/client/virt/kvm_qtree.py
@@ -295,7 +295,7 @@ class QtreeContainer(object):
                     current.set_qtree_prop('class_addr', line[1])
                     current.set_qtree_prop('class_pciid', line[2])
                     current.set_qtree_prop('class_sub', line[3])
-                    line = ['class', line[0]]
+                    line = ['class_name', line[0]]
                 elif '=' in line:
                     # bus-prop: addr = 02.0
                     line = line.split('=', 1)
-- 
1.7.1

_______________________________________________
Autotest mailing list
Autotest@test.kernel.org
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to