conf: cpu: Break some long lines
This commit is contained in:
parent
4a9c179325
commit
41bd91f8ad
@ -264,8 +264,9 @@ virCPUDefParseXML(const xmlNodePtr node,
|
|||||||
VIR_FREE(match);
|
VIR_FREE(match);
|
||||||
|
|
||||||
if (def->match < 0) {
|
if (def->match < 0) {
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
||||||
"%s", _("Invalid match attribute for CPU specification"));
|
_("Invalid match attribute for CPU "
|
||||||
|
"specification"));
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -333,8 +334,8 @@ virCPUDefParseXML(const xmlNodePtr node,
|
|||||||
ret = virXPathULong("string(./topology[1]/@sockets)",
|
ret = virXPathULong("string(./topology[1]/@sockets)",
|
||||||
ctxt, &ul);
|
ctxt, &ul);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
||||||
"%s", _("Missing 'sockets' attribute in CPU topology"));
|
_("Missing 'sockets' attribute in CPU topology"));
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
def->sockets = (unsigned int) ul;
|
def->sockets = (unsigned int) ul;
|
||||||
@ -342,8 +343,8 @@ virCPUDefParseXML(const xmlNodePtr node,
|
|||||||
ret = virXPathULong("string(./topology[1]/@cores)",
|
ret = virXPathULong("string(./topology[1]/@cores)",
|
||||||
ctxt, &ul);
|
ctxt, &ul);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
||||||
"%s", _("Missing 'cores' attribute in CPU topology"));
|
_("Missing 'cores' attribute in CPU topology"));
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
def->cores = (unsigned int) ul;
|
def->cores = (unsigned int) ul;
|
||||||
@ -351,8 +352,8 @@ virCPUDefParseXML(const xmlNodePtr node,
|
|||||||
ret = virXPathULong("string(./topology[1]/@threads)",
|
ret = virXPathULong("string(./topology[1]/@threads)",
|
||||||
ctxt, &ul);
|
ctxt, &ul);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
||||||
"%s", _("Missing 'threads' attribute in CPU topology"));
|
_("Missing 'threads' attribute in CPU topology"));
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
def->threads = (unsigned int) ul;
|
def->threads = (unsigned int) ul;
|
||||||
@ -370,8 +371,9 @@ virCPUDefParseXML(const xmlNodePtr node,
|
|||||||
|
|
||||||
if (n > 0) {
|
if (n > 0) {
|
||||||
if (!def->model) {
|
if (!def->model) {
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
||||||
"%s", _("Non-empty feature list specified without CPU model"));
|
_("Non-empty feature list specified without "
|
||||||
|
"CPU model"));
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user