From nobody Sun May 5 18:31:31 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=1639675759; cv=none; d=zohomail.com; s=zohoarc; b=I2DEP4jeEwSmbDardROVILoQSm16zHVEIZG4urR26oYlNoKjDGm/Op9uaOj93tITrw/yk2oLFQLycb3wK/+l9RKvngTaVTCYdMHPoRKabUcFt+njDsnc0zhqx7Dcjidm0u4J+TJ+GDJqEPTOhYj/SmGn+V4kaC9xZdf62V9qQFo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1639675759; 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=Trie+h3HgT5ywO2UqzHXpesLDVuH4MJUvBN/hKwsIN8=; b=Kh+bHvDmRG3701BHb3nYTBLbrEwoM93xzCtOLVk++TnqykvDeg/yXo+nYyEdHw6tkpcnWb3QKvLR68Z7RqQIpcg32F2gEyJSgOulKfZSrAVXMQXYdkI+QpJ/0DgGHL1hweDnGzRJYE16cwTIXlEsmEvBqJaLAuflcjxnBrpGhhE= 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 1639675759457404.6759880826976; Thu, 16 Dec 2021 09:29:19 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-564-K8IU_x_jOhOzTakXJtvExg-1; Thu, 16 Dec 2021 12:29:17 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 4F5F51800D50; Thu, 16 Dec 2021 17:29:12 +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 21EFF5BD33; Thu, 16 Dec 2021 17:29:10 +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 21C914CA93; Thu, 16 Dec 2021 17:29:07 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 1BGHT4nT014378 for ; Thu, 16 Dec 2021 12:29:04 -0500 Received: by smtp.corp.redhat.com (Postfix) id 0C7707A235; Thu, 16 Dec 2021 17:29:04 +0000 (UTC) Received: from speedmetal.redhat.com (unknown [10.40.208.10]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6753D7A2E9 for ; Thu, 16 Dec 2021 17:28:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1639675758; 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=Trie+h3HgT5ywO2UqzHXpesLDVuH4MJUvBN/hKwsIN8=; b=IIqn7zKIjkkSLxshRHZ2gZDYHhg/0IqlaFPJAuofu75pgdqqOCiCjWt6PDRj00sLEki87N PHO3kISeHAdsyqmVuA1IrudliNp3rLqGszl5eDe1e9plfNOQib0vZ1be8LqLnh94ptqF5h uGZgFX5mP02E8+kJaeZahlG0biEke4g= X-MC-Unique: K8IU_x_jOhOzTakXJtvExg-1 From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH] qemuGetSEVInfoToParams: Reformat to standard coding style Date: Thu, 16 Dec 2021 18:28:44 +0100 Message-Id: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 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.11 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-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1639675760061100003 Content-Type: text/plain; charset="utf-8" The function was formatted weirdly which prompted additions to conform to the unusual style. Signed-off-by: Peter Krempa Reviewed-by: Daniel P. Berrang=C3=A9 --- src/qemu/qemu_driver.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index bae8b7c39b..372e1360b5 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -19901,30 +19901,30 @@ qemuGetSEVInfoToParams(virQEMUCaps *qemuCaps, virCheckFlags(VIR_TYPED_PARAM_STRING_OKAY, -1); if (virTypedParamsAddString(&sevParams, &n, &maxpar, - VIR_NODE_SEV_PDH, sev->pdh) < 0) + VIR_NODE_SEV_PDH, sev->pdh) < 0) return -1; if (virTypedParamsAddString(&sevParams, &n, &maxpar, - VIR_NODE_SEV_CERT_CHAIN, sev->cert_chain) < 0) + VIR_NODE_SEV_CERT_CHAIN, sev->cert_chain) = < 0) goto cleanup; if (virTypedParamsAddUInt(&sevParams, &n, &maxpar, - VIR_NODE_SEV_CBITPOS, sev->cbitpos) < 0) + VIR_NODE_SEV_CBITPOS, sev->cbitpos) < 0) goto cleanup; if (virTypedParamsAddUInt(&sevParams, &n, &maxpar, - VIR_NODE_SEV_REDUCED_PHYS_BITS, - sev->reduced_phys_bits) < 0) + VIR_NODE_SEV_REDUCED_PHYS_BITS, + sev->reduced_phys_bits) < 0) goto cleanup; if (virTypedParamsAddUInt(&sevParams, &n, &maxpar, - VIR_NODE_SEV_MAX_GUESTS, - sev->max_guests) < 0) + VIR_NODE_SEV_MAX_GUESTS, + sev->max_guests) < 0) goto cleanup; if (virTypedParamsAddUInt(&sevParams, &n, &maxpar, - VIR_NODE_SEV_MAX_ES_GUESTS, - sev->max_es_guests) < 0) + VIR_NODE_SEV_MAX_ES_GUESTS, + sev->max_es_guests) < 0) goto cleanup; *params =3D g_steal_pointer(&sevParams); --=20 2.31.1