From nobody Fri Apr 19 05:24:48 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; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.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.129.124]) by mx.zohomail.com with SMTPS id 1651886627783436.1759048813541; Fri, 6 May 2022 18:23:47 -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-53-BOcgJ-5gM6ew24HvwHC7Lg-1; Fri, 06 May 2022 21:23:42 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 7BF8B29DD9A7; Sat, 7 May 2022 01:23:38 +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 293DE40D2971; Sat, 7 May 2022 01:23:36 +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 BDD021947057; Sat, 7 May 2022 01:23:35 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 1FAC71947056 for ; Sat, 7 May 2022 01:23:34 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id C46372028E9B; Sat, 7 May 2022 01:23:33 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast08.extmail.prod.ext.rdu2.redhat.com [10.11.55.24]) by smtp.corp.redhat.com (Postfix) with ESMTPS id BF78B2026614 for ; Sat, 7 May 2022 01:23:30 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) (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 3B3EA380665D for ; Sat, 7 May 2022 01:23:30 +0000 (UTC) Received: from smtp.cecloud.com (smtp.cecloud.com [106.39.185.58]) by relay.mimecast.com with ESMTP id us-mta-247-h_Lz52h-MR2NHdk5IydhQQ-1; Fri, 06 May 2022 21:23:27 -0400 Received: from localhost (localhost [127.0.0.1]) by smtp.cecloud.com (Postfix) with ESMTP id E236A3000019C for ; Sat, 7 May 2022 09:17:54 +0800 (CST) Received: from localhost.localdomain (unknown [111.48.58.11]) by smtp.cecloud.com (postfix) whith ESMTP id P4032146T281472704180592S1651886273837714_; Sat, 07 May 2022 09:17:54 +0800 (CST) X-MC-Unique: BOcgJ-5gM6ew24HvwHC7Lg-1 X-Original-To: libvir-list@listman.corp.redhat.com X-MC-Unique: h_Lz52h-MR2NHdk5IydhQQ-1 X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-ANTISPAM-LEVEL: 2 X-ABS-CHECKED: 0 X-IP-DOMAINF: 1 X-UNIQUE-TAG: <6cc07b3f37cb9b6c55d40cfeda37c6ef> X-RL-SENDER: luzhipeng@cestc.cn X-SENDER: luzhipeng@cestc.cn X-LOGIN-NAME: luzhipeng@cestc.cn X-FST-TO: libvir-list@redhat.com X-RCPT-COUNT: 2 X-SENDER-IP: 111.48.58.11 X-ATTACHMENT-NUM: 0 X-System-Flag: 0 From: luzhipeng To: libvir-list@redhat.com Subject: [PATCH RESEND] apibuild: Fix self.waring method call Date: Sat, 7 May 2022 09:17:31 +0800 Message-Id: <20220507011731.448-1-luzhipeng@cestc.cn> 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-Mimecast-Spam-Signature: yes X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 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: luzhipeng Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 2.84 on 10.11.54.2 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-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1651886628975100001 Content-Type: text/plain; charset="utf-8"; x-default="true" The parameters of self.warning is inconsistent with it's definition, So fix it. Signed-off-by: luzhipeng Reviewed-by: Martin Kletzander --- scripts/apibuild.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/apibuild.py b/scripts/apibuild.py index 2a343208c5..23a66734ac 100755 --- a/scripts/apibuild.py +++ b/scripts/apibuild.py @@ -328,7 +328,7 @@ class index: if type in type_map: type_map[type][name] =3D d else: - self.warning("Unable to register type ", type) + self.warning("Unable to register type %s" % type) =20 if name =3D=3D debugsym and not quiet: print("New symbol: %s" % (d)) --=20 2.34.0.windows.1