From 94e601f5e8e03d4f94997223f3b22bdc818935b4 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Thu, 1 Apr 2021 15:34:03 +0200 Subject: [PATCH] xenParseXLVnuma: Replace virStringSplitCount by g_strsplit MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- src/libxl/xen_xl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libxl/xen_xl.c b/src/libxl/xen_xl.c index 65cd26bb21..e8a75979d4 100644 --- a/src/libxl/xen_xl.c +++ b/src/libxl/xen_xl.c @@ -523,9 +523,11 @@ xenParseXLVnuma(virConfPtr conf, tmp = g_strdup(vtoken); g_strfreev(token); - if (!(token = virStringSplitCount(tmp, ",", 0, &ndistances))) + if (!(token = g_strsplit(tmp, ",", 0))) goto cleanup; + ndistances = g_strv_length(token); + if (ndistances != nr_nodes) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, _("vnuma pnode %d configured '%s' (count %zu) doesn't fit the number of specified vnodes %zu"), -- 2.47.2