From nobody Mon Feb 9 09:08:44 2026 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; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.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=1667315001; cv=none; d=zohomail.com; s=zohoarc; b=gVOO/wIWyONANsXWyqjH1Udd7kpNfF9Chp+tTMQ7qRanZJJP2MluFWcMnA36p3G2AOMS47Gcoy6WtGKhs/9mVMrAtfILPQgkM5bYFauYwOwFxz5LWWfbtryQnfApxwa/uS0UBxo5bwlZUEnlchfER5wnPIsVqFajmwT5tyU0jc4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1667315001; 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=W54tOgx8JhBcc1jjlO4oXMmx+Q66GrXAtWhVxstX1do=; b=Jwmk4XdFEAmNU/j+5dk3u3+Sk+/C3jBUHrs/ZqikYOUfLgSqHifHX7BK/gWvXzAEppnbWv/w7+B9oS24idcAKVJlHip7dZaTBUoA3dcO9RolVeknp+oLGoAocV9LMGTNQ0QEHG0THkLsZ7dsqH48KAEb/h/C7Rozh+HdQrPgZA4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.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.129.124]) by mx.zohomail.com with SMTPS id 1667315001826244.29867581969654; Tue, 1 Nov 2022 08:03:21 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-619-5s3J0WY8Pr6b7hwzUD6LbA-1; Tue, 01 Nov 2022 11:03:08 -0400 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id BC5888060A1; Tue, 1 Nov 2022 15:02:52 +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 A623E492B18; Tue, 1 Nov 2022 15:02:52 +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 884001946A42; Tue, 1 Nov 2022 15:02:52 +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 D1B551946594 for ; Tue, 1 Nov 2022 15:02:50 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id B69B62166BB3; Tue, 1 Nov 2022 15:02:50 +0000 (UTC) Received: from speedmetal.redhat.com (ovpn-208-3.brq.redhat.com [10.40.208.3]) by smtp.corp.redhat.com (Postfix) with ESMTP id 22A222166B2D for ; Tue, 1 Nov 2022 15:02:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1667314999; 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=W54tOgx8JhBcc1jjlO4oXMmx+Q66GrXAtWhVxstX1do=; b=I40RcyPZNml03WAFRPhy1TYtHnk41q/wxSBEFnpv2AQiRF26rhte12XxkTx4WDRzVNWj+b pQesOnYsAFPLtZ7i+HJOhcKncyHtkcPikTByVUTUv+4OKvRNaXIhMlsXm1TPf3ewAsmi0s YOe/f2d5/pdRTH40VOW1uEDhO4YecVw= X-MC-Unique: 5s3J0WY8Pr6b7hwzUD6LbA-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 06/11] conf: domain: Reformat XPath queries in virSysinfoChassisParseXML Date: Tue, 1 Nov 2022 16:02:20 +0100 Message-Id: <4058fd948a7d289462e0f2ad80b1e4f2e230d015.1667314911.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 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 3.1 on 10.11.54.10 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: 1667315004143100001 Content-Type: text/plain; charset="utf-8" Remove the unneeded linebreaks after assignment operator. Only one line exceeds 80 colums and just by 4 characters. Signed-off-by: Peter Krempa --- src/conf/domain_conf.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index d9b77eddb4..90478f2528 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -12336,16 +12336,11 @@ virSysinfoChassisParseXML(xmlNodePtr node, def =3D g_new0(virSysinfoChassisDef, 1); - def->manufacturer =3D - virXPathString("string(entry[@name=3D'manufacturer'])", ctxt); - def->version =3D - virXPathString("string(entry[@name=3D'version'])", ctxt); - def->serial =3D - virXPathString("string(entry[@name=3D'serial'])", ctxt); - def->asset =3D - virXPathString("string(entry[@name=3D'asset'])", ctxt); - def->sku =3D - virXPathString("string(entry[@name=3D'sku'])", ctxt); + def->manufacturer =3D virXPathString("string(entry[@name=3D'manufactur= er'])", ctxt); + def->version =3D virXPathString("string(entry[@name=3D'version'])", ct= xt); + def->serial =3D virXPathString("string(entry[@name=3D'serial'])", ctxt= ); + def->asset =3D virXPathString("string(entry[@name=3D'asset'])", ctxt); + def->sku =3D virXPathString("string(entry[@name=3D'sku'])", ctxt); if (!def->manufacturer && !def->version && !def->serial && !def->asset && !def->sku) { --=20 2.37.3