From nobody Mon Sep 16 18:54:12 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.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.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1695106864; cv=none; d=zohomail.com; s=zohoarc; b=FTgdAA1ZAQjV0dg9GtKvyouHhRzZaybIJfVTfyMplQAY+unBII6C5s/5vH2MPgXT3z1MxbiUc+bufVPUbV8tAPpRf5ahxfJqnRF2/hbNAXucAW4Gk4UFtLNtQRxDcwwOE0BrIst0rgjRO/Qm/zju1GbpN5VriIEmQ7JGb/h+5LU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1695106864; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=i2f9Nagsi4cEeHm2OBpsZv4YhwC8zpD6rE6IRZKREtA=; b=XfHjIx+mg61DZj1RNZYpl/hhPcyMmeOb5oS2XreIDrGkv66/g9g+E9lXPmpedr2+k5izb2SLVYOf7ncJd+Zt9LKQDC7BysXDOUlWVSXbmKgmag1NeK6NAfSqvD40ctkaNQah88Q77S1wQadOlv9cfv5UBWVdKVHN0w+DaD42nBw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 1695106864916383.8485891943137; Tue, 19 Sep 2023 00:01:04 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-343-Tl07mWT5MPK4RqJissB-Xw-1; Tue, 19 Sep 2023 03:00:11 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (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 73E271C05EB7; Tue, 19 Sep 2023 07:00:08 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5DF0D1C554; Tue, 19 Sep 2023 07:00:08 +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 DDF751946A40; Tue, 19 Sep 2023 07:00:05 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 2F702194658C for ; Tue, 19 Sep 2023 07:00:05 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 1FB1D40C2070; Tue, 19 Sep 2023 07:00:05 +0000 (UTC) Received: from maggie.brq.redhat.com (unknown [10.43.2.46]) by smtp.corp.redhat.com (Postfix) with ESMTP id BB62340C2064 for ; Tue, 19 Sep 2023 07:00:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1695106863; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=i2f9Nagsi4cEeHm2OBpsZv4YhwC8zpD6rE6IRZKREtA=; b=Q9PRRR9/+kb0Mdvkve2Uw6jSWhmJff5exdcCEfkjP0ihKA4X4RMr+6Iftvic9AqLq+JKFh LKyaTimHMmVs2cm4VcuGyzn2ixXzgBJfhidKqE4B3Xd48JllgkHWWyXIAZX6EmgPoitXu1 bc8zNzoOuE84IRJW3MwlIpcVDrbLtA0= X-MC-Unique: Tl07mWT5MPK4RqJissB-Xw-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH 3/4] virDomainVideoDefValidate: Use proper type in virReportEnumRangeError() Date: Tue, 19 Sep 2023 08:59:59 +0200 Message-ID: <5b6f1ed84364165e7ec6de61d91959bf0a1a4e31.1695105934.git.mprivozn@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 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: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.5 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1695106866610100001 Content-Type: text/plain; charset="utf-8"; x-default="true" The @backend member of _virDomainVideoDef struct is of type virDomainVideoBackendType. Pass the proper type to virReportEnumRangeError(). Signed-off-by: Michal Privoznik --- src/conf/domain_validate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conf/domain_validate.c b/src/conf/domain_validate.c index e70841c1d6..ac32fa1477 100644 --- a/src/conf/domain_validate.c +++ b/src/conf/domain_validate.c @@ -181,7 +181,7 @@ virDomainVideoDefValidate(const virDomainVideoDef *vide= o, break; case VIR_DOMAIN_VIDEO_BACKEND_TYPE_LAST: default: - virReportEnumRangeError(virDomainInputType, video->backend); + virReportEnumRangeError(virDomainVideoBackendType, video->backend); return -1; } =20 --=20 2.41.0