virNetworkPortDefParseXML: Fix a typo in an error message

There's a typo in error message that's printed when parsing of
<plug type=''/> fails: "prt" is reported instead of "port".

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Michal Privoznik 2022-01-20 21:46:28 +01:00
parent 7b64a83ae2
commit 6690a97b06

View File

@ -186,7 +186,7 @@ virNetworkPortDefParseXML(xmlXPathContextPtr ctxt)
if (plugtype && if (plugtype &&
(def->plugtype = virNetworkPortPlugTypeFromString(plugtype)) < 0) { (def->plugtype = virNetworkPortPlugTypeFromString(plugtype)) < 0) {
virReportError(VIR_ERR_XML_ERROR, virReportError(VIR_ERR_XML_ERROR,
_("Invalid network prt plug type '%s'"), plugtype); _("Invalid network port plug type '%s'"), plugtype);
} }
switch (def->plugtype) { switch (def->plugtype) {