mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 12:35:17 +00:00
qemu: command: Break some very long lines in qemuBuildRNGDevStr()
This commit is contained in:
parent
d7ec244f6e
commit
b9f2d781d9
@ -6233,13 +6233,17 @@ qemuBuildRNGDevStr(virDomainDefPtr def,
|
||||
}
|
||||
|
||||
if (dev->info.type == VIR_DOMAIN_DEVICE_ADDRESS_TYPE_CCW)
|
||||
virBufferAsprintf(&buf, "virtio-rng-ccw,rng=obj%s,id=%s", dev->info.alias, dev->info.alias);
|
||||
virBufferAsprintf(&buf, "virtio-rng-ccw,rng=obj%s,id=%s",
|
||||
dev->info.alias, dev->info.alias);
|
||||
else if (dev->info.type == VIR_DOMAIN_DEVICE_ADDRESS_TYPE_VIRTIO_S390)
|
||||
virBufferAsprintf(&buf, "virtio-rng-s390,rng=obj%s,id=%s", dev->info.alias, dev->info.alias);
|
||||
virBufferAsprintf(&buf, "virtio-rng-s390,rng=obj%s,id=%s",
|
||||
dev->info.alias, dev->info.alias);
|
||||
else if (dev->info.type == VIR_DOMAIN_DEVICE_ADDRESS_TYPE_VIRTIO_MMIO)
|
||||
virBufferAsprintf(&buf, "virtio-rng-device,rng=obj%s,id=%s", dev->info.alias, dev->info.alias);
|
||||
virBufferAsprintf(&buf, "virtio-rng-device,rng=obj%s,id=%s",
|
||||
dev->info.alias, dev->info.alias);
|
||||
else
|
||||
virBufferAsprintf(&buf, "virtio-rng-pci,rng=obj%s,id=%s", dev->info.alias, dev->info.alias);
|
||||
virBufferAsprintf(&buf, "virtio-rng-pci,rng=obj%s,id=%s",
|
||||
dev->info.alias, dev->info.alias);
|
||||
|
||||
if (dev->rate > 0) {
|
||||
virBufferAsprintf(&buf, ",max-bytes=%u", dev->rate);
|
||||
|
Loading…
x
Reference in New Issue
Block a user