From: Daniel P. Berrangé Date: Thu, 31 Jan 2019 10:53:18 +0000 (+0000) Subject: conf: fix enum convertor function for feature capability errors X-Git-Tag: v5.1.0-rc1~304 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a306a6b8fba1bb323565354d5f1089fde12ce0d;p=thirdparty%2Flibvirt.git conf: fix enum convertor function for feature capability errors A copy+paste mistaken meant the wrong enum -> string convertor function was used for the error when an incorrect feature capability was used. Reviewed-by: John Ferlan Signed-off-by: Daniel P. Berrangé --- diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index f2ef53a9a3..9f75dc44fa 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -20528,7 +20528,7 @@ virDomainDefParseXML(xmlDocPtr xml, if ((def->caps_features[val] = virTristateSwitchTypeFromString(tmp)) == -1) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, _("unknown state attribute '%s' of feature capability '%s'"), - tmp, virDomainFeatureTypeToString(val)); + tmp, virDomainCapsFeatureTypeToString(val)); goto error; } VIR_FREE(tmp);