From nobody Wed May 15 00:14:40 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=1657710477; cv=none; d=zohomail.com; s=zohoarc; b=cE8YnbiM3xVQenFEXNziYxoO+dNmygDvnr1XQOvXh9iY8F8WLKmZE0bp/BTD4kY3TQ3HhHXQyBri1TXlORginSCNRvVYDqYci+9af/EjWnaBZ/0N0EUmRQ2CxNDvGYJ1g5IDTZIVtCT5lvkcmLh/uxqdz06bjcJ80NtSfbzxTr4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1657710477; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=TqZaVXZlC6ZbtX5S4Boi61frSWPPPSJQRP50LWIezCg=; b=l7VVAdA8Nb52BAUXhm3ioUNnk/T5BWHxATPAIihTYKv7wCmIVcvbkgLlFgPQHaL26Yd53WXEqCsHA6i7W2RRGIreRku8hFoArb/13pHOsArLr/m13YcnP+8Y89jECuC/DXCpesRVhKSLKsT1b6NOmbO+3DAHfIxE73zGnlRMvWE= 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 1657710477888159.67059081890807; Wed, 13 Jul 2022 04:07:57 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mx3-rdu2.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-360-jugpvd6yO_iA-1ExXxun7A-1; Wed, 13 Jul 2022 07:07:53 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 8A4E9380406F; Wed, 13 Jul 2022 11:07:51 +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 372202026D07; Wed, 13 Jul 2022 11:07:50 +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 C408C1947061; Wed, 13 Jul 2022 11:07:49 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 18966194705F for ; Wed, 13 Jul 2022 11:07:49 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id E77F62166B2A; Wed, 13 Jul 2022 11:07:48 +0000 (UTC) Received: from localhost.localdomain.com (unknown [10.33.36.163]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6FB9B2166B26; Wed, 13 Jul 2022 11:07:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1657710476; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=TqZaVXZlC6ZbtX5S4Boi61frSWPPPSJQRP50LWIezCg=; b=b2aodyDzVUlaF0B8awRQnQg0hb09j6zag/Vin2gJZKUmkd0Rlxb5suPYNTbL7Ugk4dQnK1 /CjVOainCwp06V1h+o+C5/++vCgsvGKLUCX99v2G2JNeUcPW4XYVxnRVfGbRFAhQMdj029 GlrEV/8MeNEoAP+Kgsk+Mi4oXY8Wzxw= X-MC-Unique: jugpvd6yO_iA-1ExXxun7A-1 X-Original-To: libvir-list@listman.corp.redhat.com From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Subject: [libvirt PATCH] docs: replace ARRAY_CARDINALITY with G_N_ELEMENTS Date: Wed, 13 Jul 2022 12:07:47 +0100 Message-Id: <20220713110747.1611884-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 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 2.78 on 10.11.54.4 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1657710480238100001 Fix docs illustrating call with an obsolete macro. Signed-off-by: Daniel P. Berrang=C3=A9 Reviewed-by: Pavel Hrdina --- docs/kbase/internals/locking.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/kbase/internals/locking.rst b/docs/kbase/internals/lockin= g.rst index 50d2b92d57..7a863ab4b2 100644 --- a/docs/kbase/internals/locking.rst +++ b/docs/kbase/internals/locking.rst @@ -127,7 +127,7 @@ locks, this will be done from the libvirtd process. }; mgr =3D virLockManagerNew(lockPlugin, VIR_LOCK_MANAGER_TYPE_DOMAIN, - ARRAY_CARDINALITY(params), + G_N_ELEMENTS(params), params, 0))); =20 @@ -171,7 +171,7 @@ however, a process may voluntarily give up the lock by = running }; mgr =3D virLockManagerNew(lockPlugin, VIR_LOCK_MANAGER_TYPE_DOMAIN, - ARRAY_CARDINALITY(params), + G_N_ELEMENTS(params), params, 0))); =20 --=20 2.36.1