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:
Ján Tomko 2020-07-25 09:49:38 +02:00
parent a7d7c2a451
commit a36b6c9a8a

View File

@ -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;
}