
def print_devices(b):
    for device in sorted(b.devices, key=lambda d: len(d.ancestors)):
        print(device)    # this is a blivet.devices.StorageDevice instance

    print()


def print_devices(b):
    print(b.devicetree)

Use DeviceTree.__str__ when printing devices in examples.
Use DeviceTree.__str__ when printing devices in examples.
