[libvirt] [PATCHv2 14/23] cpu: x86: Clean up error messages in x86VendorLoad()
Peter Krempa
pkrempa at redhat.com
Tue Oct 15 12:30:43 UTC 2013
Avoid a line exceeding 80 characters and change argument alignment in
two error messages.
---
src/cpu/cpu_x86.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/cpu/cpu_x86.c b/src/cpu/cpu_x86.c
index 5e787fa..8427555 100644
--- a/src/cpu/cpu_x86.c
+++ b/src/cpu/cpu_x86.c
@@ -542,8 +542,8 @@ x86VendorLoad(xmlXPathContextPtr ctxt,
vendor->name = virXPathString("string(@name)", ctxt);
if (!vendor->name) {
- virReportError(VIR_ERR_INTERNAL_ERROR,
- "%s", _("Missing CPU vendor name"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
+ _("Missing CPU vendor name"));
goto ignore;
}
@@ -556,7 +556,8 @@ x86VendorLoad(xmlXPathContextPtr ctxt,
string = virXPathString("string(@string)", ctxt);
if (!string) {
virReportError(VIR_ERR_INTERNAL_ERROR,
- _("Missing vendor string for CPU vendor %s"), vendor->name);
+ _("Missing vendor string for CPU vendor %s"),
+ vendor->name);
goto ignore;
}
if (strlen(string) != VENDOR_STRING_LENGTH) {
--
1.8.3.2
More information about the libvir-list
mailing list