From nobody Mon Sep 16 19:03:01 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; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1695106816; cv=none; d=zohomail.com; s=zohoarc; b=kLND88rjKQpqavtjQjaEEGlVlj2pJJyutMzfkCzVGuLRPNc/tS7lyP5iNi0qTv+4KBEBn5f3FIKSUlNJliHHRB6P2kCBnY9uNINNbi5FKELhy6XzP0g9Fci7RAQLoS7P7Qmr8aO2KFXxQLR0KOOHwxC8uKQz7euXTE4kUKvNpGA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1695106816; 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=lu3uqaP22SLY9+y7WpeikZ8qPNrgfjUTRwPzn1CWlnk=; b=h9LGEQvjxIKPbfe4ZWgvXN1xdHbf+rDtBZH1czlTUrYObohGOTxPI24DYtZHT5l1QWB5R8Kmlk33dSOb2XJ/viAuwG1vYunM+N3WCDTrbuL8pLuXRbYGV262BcpnjwbNmg8+4N6d9d1a8e5w2gx7cStHCnG9BdWyokNyq7mV36Y= 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; 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.133.124]) by mx.zohomail.com with SMTPS id 1695106816002104.98485731802089; Tue, 19 Sep 2023 00:00:16 -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-694-eWCHSTwvO1uwzaIjo3beNQ-1; Tue, 19 Sep 2023 03:00:12 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (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 E892F3844E03; Tue, 19 Sep 2023 07:00:07 +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 2EDC740C2064; Tue, 19 Sep 2023 07:00:07 +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 9C53719466E5; 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 99ED7194658C for ; Tue, 19 Sep 2023 07:00:04 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 848A340C2070; Tue, 19 Sep 2023 07:00:04 +0000 (UTC) Received: from maggie.brq.redhat.com (unknown [10.43.2.46]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2C28C40C200A 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=1695106814; 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=lu3uqaP22SLY9+y7WpeikZ8qPNrgfjUTRwPzn1CWlnk=; b=buy9mvyXH9oBGpcTvrzszdlEBVEOW+YRLI0U3FiC2I6GQ3Lji+YE82yPw2Rney1Ux7sGyz 2uLXNwutrqsnNxXf5ZZ7eFRYPRv961oI+OxQ9qG5MkGcH/tyjGpD+rdGlw/ghTTLpMC0Lp KRp3ih7R+4iZM47D7Wq2l5+YwTS3G2I= X-MC-Unique: eWCHSTwvO1uwzaIjo3beNQ-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH 2/4] virNetDevVPortProfileOp8021Qbh: Use proper type in virReportEnumRangeError() Date: Tue, 19 Sep 2023 08:59:58 +0200 Message-ID: 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.1 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: 1695106816804100003 Content-Type: text/plain; charset="utf-8"; x-default="true" The @virtPortOp variable inside of virNetDevVPortProfileOp8021Qbh is of type virNetDevVPortProfileLinkOp. Pass the proper type to virReportEnumRangeError(). Signed-off-by: Michal Privoznik --- src/util/virnetdevvportprofile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/virnetdevvportprofile.c b/src/util/virnetdevvportprof= ile.c index 6d5bfbe870..c755fa79ec 100644 --- a/src/util/virnetdevvportprofile.c +++ b/src/util/virnetdevvportprofile.c @@ -1182,7 +1182,7 @@ virNetDevVPortProfileOp8021Qbh(const char *ifname, rc =3D -1; break; default: - virReportEnumRangeError(virNetDevVPortProfileType, virtPortOp); + virReportEnumRangeError(virNetDevVPortProfileLinkOp, virtPortOp); rc =3D -1; break; } --=20 2.41.0