From nobody Sun May 19 12:45:49 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1691415884; cv=none; d=zohomail.com; s=zohoarc; b=n4bQ+yDdGHt0QTtA0QQemMkfezizWVSfk5O/zJlW6igeQPmZULyMn9XIV5M3UluKwcnWz6wChuGuuC6gM/UNMXvtCRNHBP/hopo/V40BXeXAJoCfL7ojl9mtNWLPtmKzTW47NrueX7IDi9uCs5gq8TEbnmEZE2E7cOkkt0/Zrug= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1691415884; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=aZN4IqbgtwN+acDiBTZYYnaJ6y++5fiGyFP5QeCwTS8=; b=chK5dqfobuy68oNbPKm38qbRJHctOWM7IBVXM71Gr5j0dgiuz2/Mdd6T0urFl0Qiv7NhhhG+cu5Z454VunzDPpOPCz4ioHQh+Iy3THMZSHxJdMMAjPdQbrlrLLjHmoJHn1LpyfRxqbOMhs8lh3+zsDvWrV8HFxOSg0HyLu13Tzo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1691415884174664.6662457341264; Mon, 7 Aug 2023 06:44:44 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-328-F-j5TT4DOdOYVPVv6dZ-Kg-1; Mon, 07 Aug 2023 09:44:40 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id CB5F2101B42B; Mon, 7 Aug 2023 13:44:37 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id B5F411121315; Mon, 7 Aug 2023 13:44:37 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 7C5681946587; Mon, 7 Aug 2023 13:44:37 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id B18D31946586 for ; Mon, 7 Aug 2023 13:44:36 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 9FA2B1121318; Mon, 7 Aug 2023 13:44:36 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast09.extmail.prod.ext.rdu2.redhat.com [10.11.55.25]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 978471121315 for ; Mon, 7 Aug 2023 13:44:36 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 32A412A5956F for ; Mon, 7 Aug 2023 13:44:36 +0000 (UTC) Received: from mail.astralinux.ru (mail.astralinux.ru [217.74.38.119]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-65-d5KyJYIyMk6X_Q-kagqlcA-1; Mon, 07 Aug 2023 09:44:33 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.astralinux.ru (Postfix) with ESMTP id 39BF31866C55 for ; Mon, 7 Aug 2023 16:37:56 +0300 (MSK) Received: from mail.astralinux.ru ([127.0.0.1]) by localhost (rbta-msk-vsrv-mail01.astralinux.ru [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id V4zwNY1dZgi0; Mon, 7 Aug 2023 16:37:55 +0300 (MSK) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.astralinux.ru (Postfix) with ESMTP id E2CA018658B5; Mon, 7 Aug 2023 16:37:55 +0300 (MSK) Received: from mail.astralinux.ru ([127.0.0.1]) by localhost (rbta-msk-vsrv-mail01.astralinux.ru [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id lQVxAIl2qlWV; Mon, 7 Aug 2023 16:37:55 +0300 (MSK) Received: from rbta-msk-lt-106062.astralinux.ru (unknown [10.177.12.124]) by mail.astralinux.ru (Postfix) with ESMTPSA id 8D8C11864D2D; Mon, 7 Aug 2023 16:37:55 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1691415883; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=aZN4IqbgtwN+acDiBTZYYnaJ6y++5fiGyFP5QeCwTS8=; b=ecxCs/PPC63jhOn41sLJJm5McUpEbeHdx1mezxn/r4nVC1tNtS8Yh965GlHj0cB8L3kuTT +CFWyRI8Dhx/sa2yPZAfoJhKHsV22qsIJEwIzm9GAnNmLnK3lhJF5hiqB15fHWhJlR+t0e HFCVdpNwsPOFO7msoRY345hK8qKfH5Q= X-MC-Unique: F-j5TT4DOdOYVPVv6dZ-Kg-1 X-Original-To: libvir-list@listman.corp.redhat.com X-MC-Unique: d5KyJYIyMk6X_Q-kagqlcA-1 X-Virus-Scanned: amavisd-new at astralinux.ru From: Anastasia Belova To: libvir-list@redhat.com Subject: [PATCH] conf: fix error message Date: Mon, 7 Aug 2023 16:37:34 +0300 Message-Id: <20230807133734.28822-1-abelova@astralinux.ru> MIME-Version: 1.0 X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?=D0=90=D0=BD=D0=B0=D1=81=D1=82=D0=B0=D1=81=D0=B8=D1=8F=20?= =?UTF-8?q?=D0=91=D0=B5=D0=BB=D0=BE=D0=B2=D0=B0?= Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: astralinux.ru Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1691415885809100001 Content-Type: text/plain; charset="utf-8" From: =D0=90=D0=BD=D0=B0=D1=81=D1=82=D0=B0=D1=81=D0=B8=D1=8F =D0=91=D0=B5= =D0=BB=D0=BE=D0=B2=D0=B0 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 t= o unify results") Signed-off-by: Anastasia Belova Reviewed-by: Martin Kletzander --- src/conf/numa_conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conf/numa_conf.c b/src/conf/numa_conf.c index a616521763..31b5ea58f6 100644 --- a/src/conf/numa_conf.c +++ b/src/conf/numa_conf.c @@ -508,7 +508,7 @@ virDomainNumatuneSet(virDomainNuma *numa, (placement < 0 || placement >=3D VIR_DOMAIN_NUMATUNE_PLACEMENT_LAS= T)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, _("Unsupported numatune placement '%1$d'"), - mode); + placement); return -1; } =20 --=20 2.30.2