From nobody Sun Feb 8 14:30:56 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) client-ip=205.139.110.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1587995107; cv=none; d=zohomail.com; s=zohoarc; b=hcxeg1sw9csoGBzyDDlb6kBa7MHuRjn37Q4LF4SeAdguxz+VqnsQyf9AulyrKiVfNGlhtOt2yeyLMoncIuEHcz+LIfb8PSulx/KukpNYa2PMCSiTCLoeJp+90aVoboP/UoqGHE7SiUD1iIoogxGyleKmi19kWJ8PCNwHEI2yaCI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1587995107; 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=etbutMoL2rRnLK5t+HpHmbG4P7S5lS/lXLLbsR3Q9uA=; b=K6/w2hr0xxopqzP4qhBnLfxdLSH+wQ1orFxz8cmW4FLYfgp2gcloyyQrarW3luuDquOqwAvhwWtNljilFZoDQvzGKHVe3BGxu/icxO0Uto0/MBXIgZzzN52qjE0/zSOsWdwIqLszGczfboMTSqMWi0h1o7sMVQ4KNO/NRoAknBg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by mx.zohomail.com with SMTPS id 1587995107386955.617740895026; Mon, 27 Apr 2020 06:45:07 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-174-_p1PYaQ4NvqcTb0obXhu3Q-1; Mon, 27 Apr 2020 09:44:29 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 41499468; Mon, 27 Apr 2020 13:44:24 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0A2F960BF4; Mon, 27 Apr 2020 13:44:24 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id AA2171809554; Mon, 27 Apr 2020 13:44:22 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 03RDiK6F015628 for ; Mon, 27 Apr 2020 09:44:20 -0400 Received: by smtp.corp.redhat.com (Postfix) id 60B5B1000DB1; Mon, 27 Apr 2020 13:44:20 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast04.extmail.prod.ext.rdu2.redhat.com [10.11.55.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5D12B110F0DA for ; Mon, 27 Apr 2020 13:44:20 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-2.mimecast.com [207.211.31.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 108B2108C269 for ; Mon, 27 Apr 2020 13:44:20 +0000 (UTC) Received: from mail.univention.de (mail.univention.de [82.198.197.8]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-393-oVD6JD5LOYex0-FQpNkoFg-1; Mon, 27 Apr 2020 09:44:17 -0400 Received: from localhost (localhost [127.0.0.1]) by solig.knut.univention.de (Postfix) with ESMTP id 10FD48F6B35A for ; Mon, 27 Apr 2020 15:44:16 +0200 (CEST) Received: from mail.univention.de ([127.0.0.1]) by localhost (solig.knut.univention.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uwRYub-z6Nek; Mon, 27 Apr 2020 15:44:14 +0200 (CEST) Received: from fixa.knut.univention.de (p5B21E6AF.dip0.t-ipconnect.de [91.33.230.175]) by solig.knut.univention.de (Postfix) with ESMTPSA id B5DFE8F6B32B; Mon, 27 Apr 2020 15:44:11 +0200 (CEST) Received: by fixa.knut.univention.de (Postfix, from userid 2260) id 10484161767; Mon, 27 Apr 2020 15:44:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1587995106; 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=etbutMoL2rRnLK5t+HpHmbG4P7S5lS/lXLLbsR3Q9uA=; b=To+CaLvkBBke95hjbpRPSGC3paTOSvRr1H3V6GHOLthL5KyzEI6SNQTCaIp3LuX8J926rA fF65oRYskVZF964x+miU71zO3ox7uQlhQ7JJ8B2w1nQqLySIQcKUkVWFKTl/TCimr6QYvj 2BkCltro9TMLUzRL6asJNdZH/vrc80U= X-MC-Unique: _p1PYaQ4NvqcTb0obXhu3Q-1 X-MC-Unique: oVD6JD5LOYex0-FQpNkoFg-1 X-Virus-Scanned: by amavisd-new-2.10.1 (20141025) (Debian) at knut.univention.de From: Philipp Hahn To: libvir-list@redhat.com Subject: [PATCH libvirt-python 2/5] generator: Fix string formatting Date: Mon, 27 Apr 2020 15:44:07 +0200 Message-Id: <91d5ac1db14e4c8160984d5ee72a9ed8a479ed20.1587993402.git.hahn@univention.de> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-MIME-Autoconverted: from quoted-printable to 8bit by lists01.pubmisc.prod.ext.phx2.redhat.com id 03RDiK6F015628 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" remove excessive arguments. Signed-off-by: Philipp Hahn --- generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator.py b/generator.py index 7f4ae1f..0000a14 100755 --- a/generator.py +++ b/generator.py @@ -766,7 +766,7 @@ def print_function_wrapper(module, name, output, export= , include): if file =3D=3D "python_accessor": if args[1][1] =3D=3D "char *": c_call =3D "\n VIR_FREE(%s->%s);\n" % ( - args[0][0], args[1][0], args[0][0], args[= 1][0]) + args[0][0], args[1][0]) c_call =3D c_call + " %s->%s =3D (%s)strdup((const xmlC= har *)%s);\n" % (args[0][0], args[1][0], args[1][1], args[1][0]) else: --=20 2.20.1