]> xenbits.xensource.com Git - libvirt.git/commitdiff
conf: fix error message
authorАнастасия Белова <abelova@astralinux.ru>
Mon, 7 Aug 2023 13:37:34 +0000 (16:37 +0300)
committerMartin Kletzander <mkletzan@redhat.com>
Tue, 8 Aug 2023 08:36:15 +0000 (10:36 +0200)
In case of invalid placement its value should
be passed as a parameter of virReportError
instead of mode.

Fixes: 93e82727ec ("numatune: Encapsulate numatune configuration in order to unify results")
Signed-off-by: Anastasia Belova <abelova@astralinux.ru>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
src/conf/numa_conf.c

index a616521763fa91aabfdc390f06cb9cf8f6ef9fcf..31b5ea58f6bcdb862620beec105b78c0f590910f 100644 (file)
@@ -508,7 +508,7 @@ virDomainNumatuneSet(virDomainNuma *numa,
         (placement < 0 || placement >= VIR_DOMAIN_NUMATUNE_PLACEMENT_LAST)) {
         virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
                        _("Unsupported numatune placement '%1$d'"),
-                       mode);
+                       placement);
         return -1;
     }