mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
conf: scheduler parser: do not hardcode element name
When trying to parse an XML with overlapping iothread scheduler settings, the error message was rather confusing: error: iothreadssched attributes 'vcpus' must not overlap Pass the correct element name. Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
a7d7c2a451
commit
a36b6c9a8a
@ -20024,8 +20024,8 @@ virDomainThreadSchedParseHelper(xmlNodePtr node,
|
||||
|
||||
if (sched->policy != VIR_PROC_POLICY_NONE) {
|
||||
virReportError(VIR_ERR_XML_DETAIL,
|
||||
_("'%s' attributes 'vcpus' must not overlap"),
|
||||
elementName);
|
||||
_("'%s' attributes '%s' must not overlap"),
|
||||
elementName, attributeName);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user