mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 20:45:18 +00:00
qemuAssignDeviceAliases: Use qemuAssignDeviceRNGAlias for assigning RNG aliases
We have a special function for assigning aliases to RNG devices. Use that instead of plain virAsprintf(). Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
93ef9cf21d
commit
16bb5a710e
@ -523,7 +523,7 @@ qemuAssignDeviceAliases(virDomainDefPtr def, virQEMUCapsPtr qemuCaps)
|
||||
return -1;
|
||||
}
|
||||
for (i = 0; i < def->nrngs; i++) {
|
||||
if (virAsprintf(&def->rngs[i]->info.alias, "rng%zu", i) < 0)
|
||||
if (qemuAssignDeviceRNGAlias(def, def->rngs[i]) < 0)
|
||||
return -1;
|
||||
}
|
||||
if (def->tpm) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user