]> xenbits.xensource.com Git - libvirt.git/commitdiff
conf: fix enum convertor function for feature capability errors
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 31 Jan 2019 10:53:18 +0000 (10:53 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Thu, 31 Jan 2019 10:54:22 +0000 (10:54 +0000)
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 <jferlan@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/conf/domain_conf.c

index f2ef53a9a3a9884d557703b579226cad6dc18869..9f75dc44fa3c74da2f98d50cfc2b51cd547c9f46 100644 (file)
@@ -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);