提交 59ae97b4 编写于 作者: P Peter Krempa

conf: Mark user provided strings in error messages when parsing XML

Use apostrophes to denote user provided option names when parsing the
domain XML.
上级 c4caa012
...@@ -11408,8 +11408,7 @@ virDomainDefParseXML(xmlDocPtr xml, ...@@ -11408,8 +11408,7 @@ virDomainDefParseXML(xmlDocPtr xml,
int val = virDomainFeatureTypeFromString((const char *)nodes[i]->name); int val = virDomainFeatureTypeFromString((const char *)nodes[i]->name);
if (val < 0) { if (val < 0) {
virReportError(VIR_ERR_INTERNAL_ERROR, virReportError(VIR_ERR_INTERNAL_ERROR,
_("unexpected feature %s"), _("unexpected feature '%s'"), nodes[i]->name);
nodes[i]->name);
goto error; goto error;
} }
def->features |= (1 << val); def->features |= (1 << val);
...@@ -11419,7 +11418,7 @@ virDomainDefParseXML(xmlDocPtr xml, ...@@ -11419,7 +11418,7 @@ virDomainDefParseXML(xmlDocPtr xml,
int eoi; int eoi;
if ((eoi = virDomainFeatureStateTypeFromString(tmp)) <= 0) { if ((eoi = virDomainFeatureStateTypeFromString(tmp)) <= 0) {
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
_("unknown value for attribute eoi: %s"), _("unknown value for attribute eoi: '%s'"),
tmp); tmp);
goto error; goto error;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册