Skip to contentSkip to conversation

fix info qtree indention

PATCH In review Gerd Hoffmann 1 participant 3 messages Aug 7, 2012 – Aug 24, 2012

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 fix info qtree indention

Without the patch bus properties are are not in line with the other properties:

[ ... ]
dev: fw_cfg, id ""

    ctl_iobase = 0x510
    data_iobase = 0x511
      irq 0
      mmio ffffffffffffffff/0000000000000002
      mmio ffffffffffffffff/0000000000000001

[ ... ]

With the patch applied everything is lined up properly:

[ ... ]
dev: fw_cfg, id ""

    ctl_iobase = 0x510
    data_iobase = 0x511
    irq 0
    mmio ffffffffffffffff/0000000000000002
    mmio ffffffffffffffff/0000000000000001

[ ... ]

Needed to make the autotest qtree parser happy.

---
 hw/qdev-monitor.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
hw/qdev-monitor.c +1 -1
index b22a37a..0588fbc 100644
@@ -543,7 +543,7 @@ static void qdev_print(Monitor *mon, DeviceState *dev, int indent)
         qdev_print_props(mon, dev, DEVICE_CLASS(class)->props, indent);
         class = object_class_get_parent(class);
     } while (class != object_class_by_name(TYPE_DEVICE));
-    bus_print_dev(dev->parent_bus, mon, dev, indent + 2);
+    bus_print_dev(dev->parent_bus, mon, dev, indent);
     QLIST_FOREACH(child, &dev->child_bus, sibling) {
         qbus_print(mon, child, indent);
     }
Signature · 1 line
1.7.1
#1 lore raw
Quoted 16 lines · Gerd Hoffmann

Without the patch bus properties are are not in line with the other properties:

[ ... ]
dev: fw_cfg, id ""

    ctl_iobase = 0x510
    data_iobase = 0x511
      irq 0
      mmio ffffffffffffffff/0000000000000002
      mmio ffffffffffffffff/0000000000000001

[ ... ]

With the patch applied everything is lined up properly:

[ ... ]
dev: fw_cfg, id ""

Quoted 8 lines
    ctl_iobase = 0x510
    data_iobase = 0x511
    irq 0
    mmio ffffffffffffffff/0000000000000002
    mmio ffffffffffffffff/0000000000000001

[ ... ]

Needed to make the autotest qtree parser happy.

Ping?

cheers,
Gerd

#2 lore raw
Quoted 24 lines · Gerd Hoffmann
Quoted 23 lines · Gerd Hoffmann

Without the patch bus properties are are not in line with the other properties:

[ ... ]
dev: fw_cfg, id ""

    ctl_iobase = 0x510
    data_iobase = 0x511
      irq 0
      mmio ffffffffffffffff/0000000000000002
      mmio ffffffffffffffff/0000000000000001

[ ... ]

With the patch applied everything is lined up properly:

[ ... ]
dev: fw_cfg, id ""

    ctl_iobase = 0x510
    data_iobase = 0x511
    irq 0
    mmio ffffffffffffffff/0000000000000002
    mmio ffffffffffffffff/0000000000000001

[ ... ]

Quoted 3 lines
Quoted 1 line

Needed to make the autotest qtree parser happy.

Ping?

Ping²

This should go into 1.2 ...

cheers,
Gerd