From nobody Mon Feb 9 07:39:43 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 207.211.31.120 as permitted sender) client-ip=207.211.31.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of redhat.com designates 207.211.31.120 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=1573568363; cv=none; d=zoho.com; s=zohoarc; b=VXqRD/jOklTEEqkTE7qoWbpaSgUESY2/3ODThlfFB+rTWahsTxiomWCXO3+IX8vZcyjy39TorWsAvi/llf6uqYXnFNtnGFKu1k0j+eVB5Yl5X+LwdO3xNeFkv4Wz/7WFBKQAZeytK33/8OjQ6qImhjI37j1OILaCzGDj8bvvAtg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1573568363; 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=E4miYJ/4hXKpzsUrp8FR0T79k2tyUU//pi4VBhJtISQ=; b=NAxb+UQsABiFdnGTrUzUNsnOy6gige8qFXr4pZhFhb4tu3VSA8+CQ1AfEC4fDeADRZECdA6M3HOFuMhVpZv3ZShnYpmlIe3dzgTiGKBNdwDrzortuu07xTO2TohdNJz736/z66C2OWsheby7IukoAeMn98KRG6hX4yVWxla332c= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of redhat.com designates 207.211.31.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by mx.zohomail.com with SMTPS id 1573568363794889.2891859489672; Tue, 12 Nov 2019 06:19:23 -0800 (PST) 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-409-u93xCjqFNmW_al3wd6iXyQ-1; Tue, 12 Nov 2019 09:18:50 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 792DC801E51; Tue, 12 Nov 2019 14:18:45 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 477FD18215; Tue, 12 Nov 2019 14:18:45 +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 F092F4E56C; Tue, 12 Nov 2019 14:18:44 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id xACEISmh001068 for ; Tue, 12 Nov 2019 09:18:28 -0500 Received: by smtp.corp.redhat.com (Postfix) id 7744B101E26E; Tue, 12 Nov 2019 14:18:28 +0000 (UTC) Received: from angien.redhat.com (unknown [10.43.2.48]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0294510027B8 for ; Tue, 12 Nov 2019 14:18:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1573568362; 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=E4miYJ/4hXKpzsUrp8FR0T79k2tyUU//pi4VBhJtISQ=; b=aupFtjOWzaI0vrYSOnzDx7ff011t1Dqzjk1/zqCpnmXsA95YggddMJt1w6PmZM6iAJ7/91 QhAdHP16FTUmzzfYDEAFPBxzkpd4Jt25DgBJenB5KmE5iYBJAu3SDteQr3iPIl5v2U6DDc DzcOBbZmQKOdCO7+0xCwpIrdnKP+Cl0= From: Peter Krempa To: libvir-list@redhat.com Date: Tue, 12 Nov 2019 15:18:18 +0100 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 5/7] conf: cpu: Convert child buffers to use VIR_BUFFER_INIT_CHILD 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.16 X-MC-Unique: u93xCjqFNmW_al3wd6iXyQ-1 X-Mimecast-Spam-Score: 0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Use the new helper to initialize child XML element buffers. Signed-off-by: Peter Krempa --- src/conf/cpu_conf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/conf/cpu_conf.c b/src/conf/cpu_conf.c index 2b644638a7..ca048d899a 100644 --- a/src/conf/cpu_conf.c +++ b/src/conf/cpu_conf.c @@ -683,7 +683,7 @@ virCPUDefFormatBufFull(virBufferPtr buf, { int ret =3D -1; virBuffer attributeBuf =3D VIR_BUFFER_INITIALIZER; - virBuffer childrenBuf =3D VIR_BUFFER_INITIALIZER; + virBuffer childrenBuf =3D VIR_BUFFER_INIT_CHILD(buf); if (!def) return 0; @@ -718,7 +718,6 @@ virCPUDefFormatBufFull(virBufferPtr buf, } /* Format children */ - virBufferSetChildIndent(&childrenBuf, buf); if (def->type =3D=3D VIR_CPU_TYPE_HOST && def->arch) virBufferAsprintf(&childrenBuf, "%s\n", virArchToString(def->arch)); --=20 2.23.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list