]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: pass elementName to virDomainThreadSchedParseHelper
authorJán Tomko <jtomko@redhat.com>
Sat, 25 Jul 2020 07:42:14 +0000 (09:42 +0200)
committerJán Tomko <jtomko@redhat.com>
Mon, 3 Aug 2020 05:23:45 +0000 (07:23 +0200)
commita7d7c2a451b0f95bef3874a2794532f77ea02b08
treecff9e4f2e0526705692759183b8e0945773a028a
parentdd44868423832306a7287df82d69a359d6abac0e
conf: pass elementName to virDomainThreadSchedParseHelper

Pass the scheduler element name instead of trying to reconstructing
it from the attribute name.

This has the benefit of not mixing '%s' with regular text in
translatable strings as well as preventing the confusion when
the 's' marking the plural in the element name ('vcpus') is taken
as a first letter of the 'sched' suffix.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Fixes: 7ea55a481dd45f09b54425005362533ecc800cd2
Fixes: 99c5fe0e7c26c08103415248ffef1f5acb81ddc7
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/conf/domain_conf.c