[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH] nodeinfo: Fully convert to new virReportError

With our latest s/[a-z]+ReportError/virReportError/ rewrite
(47ab34e2) we forgot to update arm part of the code.

Thanks to my masochist idea of compiling libvirt
on my Raspberry PI I've discovered this.

Pushing under trivial & build breaker (on arm platforms obviously) rules.

For those who are interested, it took ages and we
don't build cleanly:


But I am not sure how to fix those 'cast increases required
alignment of target type' warnings. And I am not sure anybody
else is ever going to use libvirt on arm.

 src/nodeinfo.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/nodeinfo.c b/src/nodeinfo.c
index 4cbfe63..c0e60d8 100644
--- a/src/nodeinfo.c
+++ b/src/nodeinfo.c
@@ -423,8 +423,8 @@ int linuxNodeInfoCPUPopulate(FILE *cpuinfo,
             if (*buf != ':' || !buf[1]) {
-                nodeReportError(VIR_ERR_INTERNAL_ERROR,
-                                "%s", _("parsing cpu MHz from cpuinfo"));
+                virReportError(VIR_ERR_INTERNAL_ERROR,
+                               "%s", _("parsing cpu MHz from cpuinfo"));
                 goto cleanup;

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]