mirror of https://gitee.com/openkylin/libvirt.git
xenParseXLVnuma: Replace virStringSplitCount by g_strsplit
Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
b926959084
commit
94e601f5e8
|
@ -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"),
|
||||
|
|
Loading…
Reference in New Issue