From nobody Sat May 18 15:38:13 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; 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=1692949390; cv=none; d=zohomail.com; s=zohoarc; b=ig+7V1UEYUrPpRkwlGf34jxah21tpDLcfthtdg6Knyo8+9uzv8GCVZKE261UiUqMrOOiG1Drim6WoU2WmgAnIHitO5CDFCg52kF+CiKnXMvcbrzS8+t2XHOlAXvK43iisbkQRTL2ApEVRfzTUXmKzN4q7a1oyrLRD+PwpDkJR3A= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1692949390; 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=mT8lRPiSrxsJE6iX1ROGpr5aBkNdTjEPi0LsI3mflvI=; b=Uxil884AIwchgBvI2epQew5xHw+rtUskSNvb3EuELaEFUTvPdux8Tk27W3I586c7atmU/9bxgtuPqkC4dYEibWpY6fx/3FiIU87o8g9YGAHxCOglPR3AG+U+6Fyw67jpWZMvVlw/c4yaXpVylOBE/fZPb5ibxtyJLNwDiTTDx/Q= 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 1692949390296672.3363789887576; Fri, 25 Aug 2023 00:43:10 -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-76-lpqNZEfCMTqArOztaksHNA-1; Fri, 25 Aug 2023 03:40:47 -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 BB6E78015A8; Fri, 25 Aug 2023 07:40:31 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3A55840C6F4C; Fri, 25 Aug 2023 07:40:28 +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 A76A119465A8; Fri, 25 Aug 2023 07:40:27 +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 83A391946589 for ; Fri, 25 Aug 2023 07:40:26 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 735E82026D76; Fri, 25 Aug 2023 07:40:26 +0000 (UTC) Received: from localhost.localdomain (unknown [10.43.2.56]) by smtp.corp.redhat.com (Postfix) with ESMTP id 19D082026D68 for ; Fri, 25 Aug 2023 07:40:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1692949389; 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=mT8lRPiSrxsJE6iX1ROGpr5aBkNdTjEPi0LsI3mflvI=; b=L9zWqKGPTAiUnHjwFMMINGPeovVP04+7kP0lLuxg40qHC35vSr3AdaL5y7nUD9+SAAbLrn AvXJotfTOeH9onLDdl04yjn4JeR/0BBPv6Sg/xZS5+RottK6aYde5DP4sWO9b1/zPpoVO1 lC2O9xNeMXvxoMjsCmtUGuc29vWX+Kw= X-MC-Unique: lpqNZEfCMTqArOztaksHNA-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH 01/27] bhyve: Move error messages onto a single line Date: Fri, 25 Aug 2023 09:39:58 +0200 Message-ID: <20ec170f27ebbc816f0ecb359cc895fe8172ff02.1692949012.git.mprivozn@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 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: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 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: 1692949391456100001 Content-Type: text/plain; charset="utf-8"; x-default="true" Error messages are exempt from the 80 columns rule. Move them onto one line. Signed-off-by: Michal Privoznik Reviewed-by: Pavel Hrdina --- src/bhyve/bhyve_command.c | 31 ++++++++++--------------------- src/bhyve/bhyve_domain.c | 3 +-- src/bhyve/bhyve_driver.c | 3 +-- 3 files changed, 12 insertions(+), 25 deletions(-) diff --git a/src/bhyve/bhyve_command.c b/src/bhyve/bhyve_command.c index 563651336e..82e7e96816 100644 --- a/src/bhyve/bhyve_command.c +++ b/src/bhyve/bhyve_command.c @@ -60,8 +60,7 @@ bhyveBuildNetArgStr(const virDomainDef *def, nic_model =3D g_strdup("e1000"); } else { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("NIC model 'e1000' is not supported " - "by given bhyve binary")); + _("NIC model 'e1000' is not supported by given = bhyve binary")); return -1; } } else { @@ -190,8 +189,7 @@ bhyveBuildAHCIControllerArgStr(const virDomainDef *def, if ((disk->device =3D=3D VIR_DOMAIN_DISK_DEVICE_CDROM) && (disk_source =3D=3D NULL)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("cdrom device without source path " - "not supported")); + _("cdrom device without source path not support= ed")); return -1; } =20 @@ -341,8 +339,7 @@ bhyveBuildControllerArgStr(const virDomainDef *def, case VIR_DOMAIN_CONTROLLER_TYPE_PCI: if (controller->model !=3D VIR_DOMAIN_CONTROLLER_MODEL_PCI_ROOT) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("unsupported PCI controller model: " - "only PCI root supported")); + _("unsupported PCI controller model: only PCI r= oot supported")); return -1; } break; @@ -391,8 +388,7 @@ bhyveBuildGraphicsArgStr(const virDomainDef *def, def->os.bootloader || !def->os.loader) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Graphics are only supported" - " when booting using UEFI")); + _("Graphics are only supported when booting using U= EFI")); return -1; } =20 @@ -465,8 +461,7 @@ bhyveBuildGraphicsArgStr(const virDomainDef *def, if (graphics->data.vnc.auth.passwd) { if (!(bhyveDriverGetBhyveCaps(driver) & BHYVE_CAP_VNC_PASSWORD)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("VNC Password authentication not supported " - "by bhyve")); + _("VNC Password authentication not supported by= bhyve")); return -1; } =20 @@ -510,8 +505,7 @@ bhyveBuildSoundArgStr(const virDomainDef *def G_GNUC_UN= USED, /* Currently, bhyve only supports "hda" sound devices, so if it's not supported, sound devices are not supported at all */ virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Sound devices emulation is not supported " - "by given bhyve binary")); + _("Sound devices emulation is not supported by give= n bhyve binary")); return -1; } =20 @@ -667,9 +661,7 @@ virBhyveProcessBuildBhyveCmd(struct _bhyveConn *driver,= virDomainDef *def, } if (nvcpus !=3D def->cpu->sockets * def->cpu->cores * def->cpu->th= reads) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Invalid CPU topology: total number of vCPUs " - "must equal the product of sockets, cores, " - "and threads")); + _("Invalid CPU topology: total number of vCPUs = must equal the product of sockets, cores, and threads")); return NULL; } =20 @@ -681,8 +673,7 @@ virBhyveProcessBuildBhyveCmd(struct _bhyveConn *driver,= virDomainDef *def, def->cpu->threads); } else { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Installed bhyve binary does not support " - "defining CPU topology")); + _("Installed bhyve binary does not support defi= ning CPU topology")); return NULL; } } else { @@ -716,8 +707,7 @@ virBhyveProcessBuildBhyveCmd(struct _bhyveConn *driver,= virDomainDef *def, virCommandAddArg(cmd, "-u"); } else { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Installed bhyve binary does not support " - "UTC clock")); + _("Installed bhyve binary does not support UTC = clock")); return NULL; } break; @@ -751,8 +741,7 @@ virBhyveProcessBuildBhyveCmd(struct _bhyveConn *driver,= virDomainDef *def, virCommandAddArgFormat(cmd, "bootrom,%s", def->os.loader->path= ); } else { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Installed bhyve binary does not support " - "UEFI loader")); + _("Installed bhyve binary does not support UEFI= loader")); return NULL; } } diff --git a/src/bhyve/bhyve_domain.c b/src/bhyve/bhyve_domain.c index a8b1f97790..c47ad392a0 100644 --- a/src/bhyve/bhyve_domain.c +++ b/src/bhyve/bhyve_domain.c @@ -174,8 +174,7 @@ bhyveDomainDeviceDefPostParse(virDomainDeviceDef *dev, cont->model =3D=3D VIR_DOMAIN_CONTROLLER_MODEL_PCIE_ROOT) && cont->idx !=3D 0) { virReportError(VIR_ERR_XML_ERROR, "%s", - _("pci-root and pcie-root controllers " - "should have index 0")); + _("pci-root and pcie-root controllers should ha= ve index 0")); return -1; } } diff --git a/src/bhyve/bhyve_driver.c b/src/bhyve/bhyve_driver.c index 10ef2f2f41..4203b13f94 100644 --- a/src/bhyve/bhyve_driver.c +++ b/src/bhyve/bhyve_driver.c @@ -694,8 +694,7 @@ bhyveConnectDomainXMLToNative(virConnectPtr conn, =20 if ((bhyveDriverGetBhyveCaps(privconn) & BHYVE_CAP_LPC_BOOTROM) = =3D=3D 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Installed bhyve binary does not support " - "bootrom")); + _("Installed bhyve binary does not support boot= rom")); return NULL; } } else { --=20 2.41.0 From nobody Sat May 18 15:38:13 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=1692949256; cv=none; d=zohomail.com; s=zohoarc; b=hqzQB98V4eRrsI7WmQ6FWhOm0mjhf0mCZvKNKpKfKO61FU6M/vlbYtVTc8IpA3G5F8LPRJ4QHvdQ1i64vLT9MyqRzoHP+ZIXgdqykAhwq31aFy58FdTuhl/BW+WrDUpzOND/TR44SRp0JuDGtMjKQn6IN+TScANn7H7HtlzwhHQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1692949256; 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=3qekuslnYeZ4IW05asCcSOBLajOA0q+PlSWdtHP6Fjc=; b=Fyvjvx36UJw3BfoiXBNZs1CZQOHWNRGOdwJ3ckSC/q7uJjd7Gz8KMtOfQKD8EEsBuxmwFI54wYrtVj3PvRDnZQ4aFiaZhGlZyraAYf44xmGRF5fwITGNrbXJwoD7ZaSsFRjqpp43YbduclR4MVi5h5x+JMi5girxV0qrq0GbRaU= 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 1692949256101624.514835582388; Fri, 25 Aug 2023 00:40:56 -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-36-F8fzzTE1NkCMUNNpuVp9Rg-1; Fri, 25 Aug 2023 03:40:49 -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 B9FF1800CAF; Fri, 25 Aug 2023 07:40:31 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2F95140D2839; Fri, 25 Aug 2023 07:40:30 +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 EE8FF19465B1; Fri, 25 Aug 2023 07:40:29 +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 2021E1946589 for ; Fri, 25 Aug 2023 07:40:27 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 0E5572026D76; Fri, 25 Aug 2023 07:40:27 +0000 (UTC) Received: from localhost.localdomain (unknown [10.43.2.56]) by smtp.corp.redhat.com (Postfix) with ESMTP id A98B92026D68 for ; Fri, 25 Aug 2023 07:40:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1692949255; 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=3qekuslnYeZ4IW05asCcSOBLajOA0q+PlSWdtHP6Fjc=; b=DPi2ikH7ye6rhY4dgjGeSKy2XVS83c4GiExp9Wf5GFlV/VhYLZtaYpE/yLg/aLSn2YLZmH yjrIk7TiI/PzqjnY4Z8+OL28ePxQIGpNYr5u3Zx6F9En/PA5Q22GcUiISDjKEwWr1bhRyK 9yJF5rvPVDDdF/Kd+hmVR21Cksp64rA= X-MC-Unique: F8fzzTE1NkCMUNNpuVp9Rg-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH 02/27] ch: Move error messages onto a single line Date: Fri, 25 Aug 2023 09:39:59 +0200 Message-ID: <4e159d0fa8ee8722f09b4fff0050a29449068120.1692949012.git.mprivozn@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 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: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 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: 1692949257158100015 Content-Type: text/plain; charset="utf-8"; x-default="true" Error messages are exempt from the 80 columns rule. Move them onto one line. Signed-off-by: Michal Privoznik Reviewed-by: Pavel Hrdina --- src/ch/ch_driver.c | 3 +-- src/ch/ch_monitor.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/ch/ch_driver.c b/src/ch/ch_driver.c index 45cdbfd37c..b62645a8c8 100644 --- a/src/ch/ch_driver.c +++ b/src/ch/ch_driver.c @@ -1379,8 +1379,7 @@ chDomainPinEmulator(virDomainPtr dom, =20 if (virDomainCgroupSetupCpusetCpus(cgroup_emulator, pcpumap) <= 0) { virReportError(VIR_ERR_OPERATION_INVALID, "%s", - _("failed to set cpuset.cpus in cgroup" - " for emulator threads")); + _("failed to set cpuset.cpus in cgroup for = emulator threads")); goto endjob; } } diff --git a/src/ch/ch_monitor.c b/src/ch/ch_monitor.c index a4b921931b..4f32b1ee4c 100644 --- a/src/ch/ch_monitor.c +++ b/src/ch/ch_monitor.c @@ -637,8 +637,7 @@ virCHMonitorCurlPerform(CURL *handle) =20 if (responseCode < 0) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("curl_easy_getinfo(CURLINFO_RESPONSE_CODE) return= ed a " - "negative response code")); + _("curl_easy_getinfo(CURLINFO_RESPONSE_CODE) return= ed a negative response code")); return -1; } =20 --=20 2.41.0 From nobody Sat May 18 15:38:13 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; 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=1692949253; cv=none; d=zohomail.com; s=zohoarc; b=a/PldhFoRTyTjkV9GcFGszcipZLsRfo8Ws0jf5HkMb605eKw0To0RVfzJ7gaTwm3rdnNnYtBky/7tqMzJNZiYiOiqGhrFc17uqpuQeyJdkwVKlyAvt0nEBf9pS9MoIXaWmwgt9P5vfEhXXCMPybDVHLy3mhe1O+bQSlDeUKYwX8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1692949253; 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=q11GFaR7QQtC9Ln2+YO16YFtGOsBsRokmzCdAylj19Q=; b=ho6ewHnExhp/Mc8lj7wk2jzTqC+BaWEyw72oXeoydjX5nWVB2BNNT0dwGkbSA0fZCDImmllRX2sywpEXEYQcaaQsl4LvnP3rI7SjYwoim/6/LpK9qNULp1I1fESTvmOyuSed878wmxrwLKInehBygQxp77Q2darTmQ8Fxb0hC9o= 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 1692949252993653.534390619761; Fri, 25 Aug 2023 00:40:52 -0700 (PDT) Received: from mimecast-mx02.redhat.com (66.187.233.73 [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-339-xRs9C-e7OSSs14OxJc9LBw-1; Fri, 25 Aug 2023 03:40:44 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 2DC5F1C0755E; Fri, 25 Aug 2023 07:40:32 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id D244DC1602B; Fri, 25 Aug 2023 07:40:30 +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 350111946A4E; Fri, 25 Aug 2023 07:40:30 +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 E359B1946A4D for ; Fri, 25 Aug 2023 07:40:27 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id D44C32026D68; Fri, 25 Aug 2023 07:40:27 +0000 (UTC) Received: from localhost.localdomain (unknown [10.43.2.56]) by smtp.corp.redhat.com (Postfix) with ESMTP id 44C102026D76 for ; Fri, 25 Aug 2023 07:40:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1692949251; 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=q11GFaR7QQtC9Ln2+YO16YFtGOsBsRokmzCdAylj19Q=; b=Zl48yIUjWNsEJpBBNKTEAVly8cNKPAmSuaPZwDOdYuvoUvW/khv5dn7Rq+PnW5kjn89khy jmsj5spTonE0KnOgv2kVQCqFDU6gXy7bChi0yOX2PHIRPJZYXHsW8yCohD7kQJWULefiJS CJLqimZuZ/7XKcpGU4STqq+W+ubQXc0= X-MC-Unique: xRs9C-e7OSSs14OxJc9LBw-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH 03/27] conf: Move error messages onto a single line Date: Fri, 25 Aug 2023 09:40:00 +0200 Message-ID: <9c5886c524de57e00296d906a1f8ea73bddc345b.1692949012.git.mprivozn@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 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: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 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: 1692949253377100001 Content-Type: text/plain; charset="utf-8"; x-default="true" Error messages are exempt from the 80 columns rule. Move them onto one line. Signed-off-by: Michal Privoznik Reviewed-by: Pavel Hrdina --- src/conf/cpu_conf.c | 9 +- src/conf/domain_addr.c | 3 +- src/conf/domain_conf.c | 138 +++++++++++-------------------- src/conf/domain_validate.c | 54 ++++-------- src/conf/netdev_bandwidth_conf.c | 3 +- src/conf/netdev_vlan_conf.c | 6 +- src/conf/network_conf.c | 27 ++---- src/conf/node_device_conf.c | 3 +- src/conf/node_device_util.c | 3 +- src/conf/numa_conf.c | 25 ++---- src/conf/nwfilter_params.c | 6 +- src/conf/snapshot_conf.c | 3 +- src/conf/storage_adapter_conf.c | 18 ++-- src/conf/virdomainjob.c | 3 +- src/conf/virnetworkobj.c | 3 +- 15 files changed, 101 insertions(+), 203 deletions(-) diff --git a/src/conf/cpu_conf.c b/src/conf/cpu_conf.c index 98adb0e5d5..7abe489733 100644 --- a/src/conf/cpu_conf.c +++ b/src/conf/cpu_conf.c @@ -394,8 +394,7 @@ virCPUDefParseXML(xmlXPathContextPtr ctxt, if (virXPathBoolean("boolean(./arch)", ctxt)) { if (virXPathBoolean("boolean(./@match)", ctxt)) { virReportError(VIR_ERR_XML_ERROR, "%s", - _("'arch' element cannot be used inside 'cp= u'" - " element with 'match' attribute'")); + _("'arch' element cannot be used inside 'cp= u' element with 'match' attribute'")); return -1; } def->type =3D VIR_CPU_TYPE_HOST; @@ -436,8 +435,7 @@ virCPUDefParseXML(xmlXPathContextPtr ctxt, def->mode !=3D VIR_CPU_MODE_HOST_PASSTHROUGH && def->mode !=3D VIR_CPU_MODE_MAXIMUM) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Attribute migratable is only allowed for " - "'host-passthrough' / 'maximum' CPU mode")); + _("Attribute migratable is only allowed for 'host-p= assthrough' / 'maximum' CPU mode")); return -1; } =20 @@ -593,8 +591,7 @@ virCPUDefParseXML(xmlXPathContextPtr ctxt, if (n > 0) { if (!def->model && def->mode =3D=3D VIR_CPU_MODE_CUSTOM) { virReportError(VIR_ERR_XML_ERROR, "%s", - _("Non-empty feature list specified without " - "CPU model")); + _("Non-empty feature list specified without CPU= model")); return -1; } =20 diff --git a/src/conf/domain_addr.c b/src/conf/domain_addr.c index 23c06ff6a4..a53ff6df6c 100644 --- a/src/conf/domain_addr.c +++ b/src/conf/domain_addr.c @@ -905,8 +905,7 @@ virDomainPCIAddressEnsureAddr(virDomainPCIAddressSet *a= ddrs, */ if (dev->addr.pci.function !=3D 0) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("Only PCI device addresses with function=3D0" - " are supported")); + _("Only PCI device addresses with function=3D0 = are supported")); return -1; } =20 diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 69934026ef..2d585e7470 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -2152,8 +2152,7 @@ virDomainDefSetVcpus(virDomainDef *def, =20 if (vcpus > def->maxvcpus) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("maximum vCPU count must not be less than current= " - "vCPU count")); + _("maximum vCPU count must not be less than current= vCPU count")); return -1; } =20 @@ -4348,8 +4347,7 @@ virDomainObjUpdateModificationImpact(virDomainObj *vm, =20 if (!vm->persistent && (*flags & VIR_DOMAIN_AFFECT_CONFIG)) { virReportError(VIR_ERR_OPERATION_INVALID, "%s", - _("transient domains do not have any " - "persistent config")); + _("transient domains do not have any persistent con= fig")); return -1; } =20 @@ -4429,9 +4427,7 @@ virDomainObjGetOneDefState(virDomainObj *vm, if (flags & VIR_DOMAIN_AFFECT_LIVE && flags & VIR_DOMAIN_AFFECT_CONFIG) { virReportInvalidArg(flags, "%s", - _("Flags 'VIR_DOMAIN_AFFECT_LIVE' and " - "'VIR_DOMAIN_AFFECT_CONFIG' are mutually " - "exclusive")); + _("Flags 'VIR_DOMAIN_AFFECT_LIVE' and 'VIR_DOM= AIN_AFFECT_CONFIG' are mutually exclusive")); return NULL; } =20 @@ -6027,8 +6023,7 @@ virDomainHostdevSubsysSCSIiSCSIDefParseXML(xmlNodePtr= sourcenode, } if (iscsisrc->src->nhosts > 1) { virReportError(VIR_ERR_XML_ERROR, "%s", - _("only one source host address may be specified " - "for the iSCSI hostdev")); + _("only one source host address may be specified fo= r the iSCSI hostdev")); return -1; } =20 @@ -6239,8 +6234,7 @@ virDomainHostdevDefParseXMLSubsys(xmlNodePtr node, if (def->source.subsys.type !=3D VIR_DOMAIN_HOSTDEV_SUBSYS_TYPE_USB && virXPathBoolean("boolean(./source/@startupPolicy)", ctxt)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Setting startupPolicy is only allowed for USB" - " devices")); + _("Setting startupPolicy is only allowed for USB de= vices")); return -1; } =20 @@ -6885,8 +6879,7 @@ virSecurityLabelDefsParseXML(virDomainDef *def, for (; n; n--) { if (def->seclabels[n - 1]->model =3D=3D NULL) { virReportError(VIR_ERR_XML_ERROR, "%s", - _("missing security model " - "when using multiple labels")); + _("missing security model when using multip= le labels")); goto error; } } @@ -7075,8 +7068,7 @@ virDomainDiskSourcePoolDefParse(xmlNodePtr node, =20 if (!source->pool || !source->volume) { virReportError(VIR_ERR_XML_ERROR, "%s", - _("'pool' and 'volume' must be specified together " - "for 'pool' type source")); + _("'pool' and 'volume' must be specified together f= or 'pool' type source")); goto cleanup; } =20 @@ -7709,8 +7701,7 @@ virDomainDiskDefMirrorParse(virDomainDiskDef *def, } else { if (def->mirrorJob !=3D VIR_DOMAIN_BLOCK_JOB_TYPE_COPY) { virReportError(VIR_ERR_XML_ERROR, "%s", - _("mirror without type only supported " - "by copy job")); + _("mirror without type only supported by copy j= ob")); return -1; } mirrorFormat =3D virXMLPropString(cur, "format"); @@ -8925,8 +8916,7 @@ virDomainActualNetDefParseXML(xmlNodePtr node, =20 if (!brname && actual->type =3D=3D VIR_DOMAIN_NET_TYPE_BRIDGE)= { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("Missing element with bridge nam= e in " - "interface's element")); + _("Missing element with bridge nam= e in interface's element")); goto error; } actual->data.bridge.brname =3D brname; @@ -9878,8 +9868,7 @@ virDomainChrDefParseTargetXML(virDomainChrDef *def, =20 if (addrStr =3D=3D NULL) { virReportError(VIR_ERR_XML_ERROR, "%s", - _("guestfwd channel does not " - "define a target address")); + _("guestfwd channel does not define a targe= t address")); return -1; } =20 @@ -9887,9 +9876,8 @@ virDomainChrDefParseTargetXML(virDomainChrDef *def, return -1; =20 if (def->target.addr->data.stor.ss_family !=3D AF_INET) { - virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - "%s", _("guestfwd channel only supports " - "IPv4 addresses")); + virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", + _("guestfwd channel only supports IPv4 addr= esses")); return -1; } =20 @@ -10133,14 +10121,12 @@ virDomainChrSourceDefParseXML(virDomainChrSourceD= ef *def, * user can specify two source elements. */ if (nsources > 1 && def->type !=3D VIR_DOMAIN_CHR_TYPE_UDP) { virReportError(VIR_ERR_XML_ERROR, "%s", - _("only one source element is allowed for " - "character device")); + _("only one source element is allowed for chara= cter device")); goto error; } if (nsources > 2) { virReportError(VIR_ERR_XML_ERROR, "%s", - _("only two source elements are allowed for " - "character device")); + _("only two source elements are allowed for cha= racter device")); goto error; } =20 @@ -10225,8 +10211,7 @@ virDomainChrSourceDefParseXML(virDomainChrSourceDef= *def, goto error; } else if (nlogs > 1) { virReportError(VIR_ERR_XML_ERROR, "%s", - _("only one log element is allowed for " - "character device")); + _("only one log element is allowed for character de= vice")); goto error; } =20 @@ -10238,8 +10223,7 @@ virDomainChrSourceDefParseXML(virDomainChrSourceDef= *def, goto error; } else if (nprotocols > 1) { virReportError(VIR_ERR_XML_ERROR, "%s", - _("only one protocol element is allowed for " - "character device")); + _("only one protocol element is allowed for charact= er device")); goto error; } =20 @@ -10393,8 +10377,7 @@ virDomainChrDefParseXML(virDomainXMLOption *xmlopt, if (def->source->type =3D=3D VIR_DOMAIN_CHR_TYPE_SPICEVMC) { if (def->targetType !=3D VIR_DOMAIN_CHR_CHANNEL_TARGET_TYPE_VIRTIO= ) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("spicevmc device type only supports " - "virtio")); + _("spicevmc device type only supports virtio")); goto error; } else { def->source->data.spicevmc =3D VIR_DOMAIN_CHR_SPICEVMC_VDAGENT; @@ -10447,8 +10430,7 @@ virDomainSmartcardDefParseXML(virDomainXMLOption *x= mlopt, n =3D virXPathNodeSet("./certificate", ctxt, &certificates); if (n !=3D VIR_DOMAIN_SMARTCARD_NUM_CERTIFICATES) { virReportError(VIR_ERR_XML_ERROR, "%s", - _("host-certificates mode needs " - "exactly three certificates")); + _("host-certificates mode needs exactly three c= ertificates")); return NULL; } =20 @@ -10476,8 +10458,7 @@ virDomainSmartcardDefParseXML(virDomainXMLOption *x= mlopt, type =3D virXMLPropString(node, "type"); if (type =3D=3D NULL) { virReportError(VIR_ERR_XML_ERROR, "%s", - _("passthrough mode requires a character " - "device type attribute")); + _("passthrough mode requires a character device= type attribute")); return NULL; } =20 @@ -11065,8 +11046,7 @@ virDomainGraphicsListenDefParseXML(virDomainGraphic= sListenDef *def, if (network && network[0]) { if (def->type !=3D VIR_DOMAIN_GRAPHICS_LISTEN_TYPE_NETWORK) { virReportError(VIR_ERR_XML_ERROR, "%s", - _("'network' attribute is valid only for listen= " - "type 'network'")); + _("'network' attribute is valid only for listen= type 'network'")); goto error; } def->network =3D g_steal_pointer(&network); @@ -11075,8 +11055,7 @@ virDomainGraphicsListenDefParseXML(virDomainGraphic= sListenDef *def, if (socketPath && socketPath[0]) { if (def->type !=3D VIR_DOMAIN_GRAPHICS_LISTEN_TYPE_SOCKET) { virReportError(VIR_ERR_XML_ERROR, "%s", - _("'socket' attribute is valid only for listen " - "type 'socket'")); + _("'socket' attribute is valid only for listen = type 'socket'")); goto error; } def->socket =3D g_steal_pointer(&socketPath); @@ -12681,8 +12660,7 @@ virSysinfoParseFWCfgDef(virSysinfoDef *def, =20 if (!value && !file) { virReportError(VIR_ERR_XML_ERROR, "%s", - _("Firmware entry must have either value or " - "'file' attribute")); + _("Firmware entry must have either value or 'fi= le' attribute")); return -1; } =20 @@ -13472,8 +13450,7 @@ virDomainSEVDefParseXML(virDomainSEVDef *def, def->haveReducedPhysBits =3D true; } else if (rc =3D=3D -2) { virReportError(VIR_ERR_XML_ERROR, "%s", - _("Invalid format for launch security " - "reduced-phys-bits")); + _("Invalid format for launch security reduced-phys-= bits")); return -1; } =20 @@ -15440,8 +15417,7 @@ virDomainMemoryInsert(virDomainDef *def, if (mem->info.type !=3D VIR_DOMAIN_DEVICE_ADDRESS_TYPE_NONE && virDomainDefHasDeviceAddress(def, &mem->info)) { virReportError(VIR_ERR_OPERATION_INVALID, "%s", - _("Domain already contains a device with the same " - "address")); + _("Domain already contains a device with the same a= ddress")); return -1; } =20 @@ -18636,16 +18612,14 @@ virDomainDefControllersParse(virDomainDef *def, if (controller->model =3D=3D VIR_DOMAIN_CONTROLLER_MODEL_USB_N= ONE) { if (usb_other || *usb_none) { virReportError(VIR_ERR_XML_DETAIL, "%s", - _("Can't add another USB controller: " - "USB is disabled for this domain")); + _("Can't add another USB controller: US= B is disabled for this domain")); return -1; } *usb_none =3D true; } else { if (*usb_none) { virReportError(VIR_ERR_XML_DETAIL, "%s", - _("Can't add another USB controller: " - "USB is disabled for this domain")); + _("Can't add another USB controller: US= B is disabled for this domain")); return -1; } usb_other =3D true; @@ -18723,8 +18697,7 @@ virDomainDefParseXML(xmlXPathContextPtr ctxt, =20 if (virDomainNumaGetCPUCountTotal(def->numa) > virDomainDefGetVcpusMax= (def)) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("Number of CPUs in exceeds the" - " count")); + _("Number of CPUs in exceeds the coun= t")); return NULL; } =20 @@ -18978,8 +18951,7 @@ virDomainDefParseXML(xmlXPathContextPtr ctxt, if (input->bus =3D=3D VIR_DOMAIN_INPUT_BUS_USB && usb_none) { virDomainInputDefFree(input); virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Can't add USB input device. " - "USB bus is disabled")); + _("Can't add USB input device. USB bus is disab= led")); return NULL; } =20 @@ -19081,8 +19053,7 @@ virDomainDefParseXML(xmlXPathContextPtr ctxt, if (hostdev->source.subsys.type =3D=3D VIR_DOMAIN_HOSTDEV_SUBSYS_T= YPE_USB && usb_none) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Can't add host USB device: " - "USB is disabled in this host")); + _("Can't add host USB device: USB is disabled i= n this host")); virDomainHostdevDefFree(hostdev); return NULL; } @@ -19173,8 +19144,7 @@ virDomainDefParseXML(xmlXPathContextPtr ctxt, =20 if (n > 2) { virReportError(VIR_ERR_XML_ERROR, "%s", - _("a maximum of two TPM devices is supported, one o= f " - "them being a TPM Proxy device")); + _("a maximum of two TPM devices is supported, one o= f them being a TPM Proxy device")); return NULL; } =20 @@ -19222,8 +19192,7 @@ virDomainDefParseXML(xmlXPathContextPtr ctxt, if (hub->type =3D=3D VIR_DOMAIN_HUB_TYPE_USB && usb_none) { virDomainHubDefFree(hub); virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Can't add USB hub: " - "USB is disabled for this domain")); + _("Can't add USB hub: USB is disabled for this = domain")); return NULL; } =20 @@ -20347,8 +20316,7 @@ virDomainChannelDefCheckABIStability(virDomainChrDe= f *src, dst->source->type =3D=3D VIR_DOMAIN_CHR_TYPE_SPICEVMC) && !src->target.name) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Changing device type to/from spicevmc would" - " change default target channel name")); + _("Changing device type to/from spicevmc would = change default target channel name")); return false; } break; @@ -20926,8 +20894,7 @@ virDomainShmemDefCheckABIStability(virDomainShmemDe= f *src, =20 if (src->server.enabled !=3D dst->server.enabled) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Target shared memory server usage doesn't match " - "source")); + _("Target shared memory server usage doesn't match = source")); return false; } =20 @@ -20935,8 +20902,7 @@ virDomainShmemDefCheckABIStability(virDomainShmemDe= f *src, src->msi.enabled !=3D dst->msi.enabled || src->msi.ioeventfd !=3D dst->msi.ioeventfd) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Target shared memory MSI configuration doesn't m= atch " - "source")); + _("Target shared memory MSI configuration doesn't m= atch source")); return false; } =20 @@ -21074,15 +21040,13 @@ virDomainMemoryDefCheckABIStability(virDomainMemo= ryDef *src, =20 if (src->source.nvdimm.pmem !=3D dst->source.nvdimm.pmem) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Target NVDIMM pmem flag doesn't match " - "source NVDIMM pmem flag")); + _("Target NVDIMM pmem flag doesn't match source= NVDIMM pmem flag")); return false; } =20 if (src->target.nvdimm.readonly !=3D dst->target.nvdimm.readonly) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Target NVDIMM readonly flag doesn't match " - "source NVDIMM readonly flag")); + _("Target NVDIMM readonly flag doesn't match so= urce NVDIMM readonly flag")); return false; } =20 @@ -21655,8 +21619,7 @@ virDomainDefCheckABIStabilityFlags(virDomainDef *sr= c, =20 if (!!src->iommu !=3D !!dst->iommu) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Target domain IOMMU device count " - "does not match source")); + _("Target domain IOMMU device count does not match = source")); goto error; } =20 @@ -21666,8 +21629,7 @@ virDomainDefCheckABIStabilityFlags(virDomainDef *sr= c, =20 if (!!src->vsock !=3D !!dst->vsock) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Target domain vsock device count " - "does not match source")); + _("Target domain vsock device count does not match = source")); goto error; } =20 @@ -28155,16 +28117,14 @@ virDomainDefCompatibleDevice(virDomainDef *def, def->os.type !=3D VIR_DOMAIN_OSTYPE_EXE && virDomainDeviceIsUSB(dev)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Device configuration is not compatible: " - "Domain has no USB bus support")); + _("Device configuration is not compatible: Domain h= as no USB bus support")); return -1; } =20 if (data.newInfo && data.newInfo->bootIndex > 0) { if (def->os.nBootDevs > 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("per-device boot elements cannot be used" - " together with os/boot elements")); + _("per-device boot elements cannot be used toge= ther with os/boot elements")); return -1; } if (virDomainDeviceInfoIterate(def, @@ -28178,8 +28138,7 @@ virDomainDefCompatibleDevice(virDomainDef *def, =20 if (!virDomainDefHasMemoryHotplug(def)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("cannot use/hotplug a memory device when doma= in " - "'maxMemory' is not defined")); + _("cannot use/hotplug a memory device when doma= in 'maxMemory' is not defined")); return -1; } =20 @@ -29586,23 +29545,20 @@ virDomainDefGetShortName(const virDomainDef *def) =20 if (len =3D=3D (size_t) -1) { virReportSystemError(errno, "%s", - _("Cannot convert domain name to " - "wide character string")); + _("Cannot convert domain name to wide charact= er string")); return NULL; } =20 if (mbstowcs(wshortname, def->name, VIR_DOMAIN_SHORT_NAME_MAX) =3D=3D = (size_t) -1) { virReportSystemError(errno, "%s", - _("Cannot convert domain name to " - "wide character string")); + _("Cannot convert domain name to wide charact= er string")); return NULL; } =20 len =3D wcstombs(NULL, wshortname, 0); if (len =3D=3D (size_t) -1) { virReportSystemError(errno, "%s", - _("Cannot convert wide character string " - "back to multi-byte domain name")); + _("Cannot convert wide character string back = to multi-byte domain name")); return NULL; } =20 @@ -29610,8 +29566,7 @@ virDomainDefGetShortName(const virDomainDef *def) =20 if (wcstombs(shortname, wshortname, len) =3D=3D (size_t) -1) { virReportSystemError(errno, "%s", - _("Cannot convert wide character string " - "back to multi-byte domain name")); + _("Cannot convert wide character string back = to multi-byte domain name")); return NULL; } =20 @@ -30462,8 +30417,7 @@ virDomainStorageSourceTranslateSourcePool(virStorag= eSource *src, =20 if (src->srcpool->mode && pooldef->type !=3D VIR_STORAGE_POOL_ISCSI) { virReportError(VIR_ERR_XML_ERROR, "%s", - _("disk source mode is only valid when " - "storage pool is of iscsi type")); + _("disk source mode is only valid when storage pool= is of iscsi type")); return -1; } =20 diff --git a/src/conf/domain_validate.c b/src/conf/domain_validate.c index b286990b19..08dc8f7578 100644 --- a/src/conf/domain_validate.c +++ b/src/conf/domain_validate.c @@ -38,16 +38,14 @@ virDomainDefBootValidate(const virDomainDef *def) { if (def->os.bm_timeout_set && def->os.bm_timeout > 65535) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("invalid value for boot menu timeout, " - "must be in range [0,65535]")); + _("invalid value for boot menu timeout, must be in = range [0,65535]")); return -1; } =20 if (def->os.bios.rt_set && (def->os.bios.rt_delay < -1 || def->os.bios.rt_delay > 65535)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("invalid value for rebootTimeout, " - "must be in range [-1,65535]")); + _("invalid value for rebootTimeout, must be in rang= e [-1,65535]")); return -1; } =20 @@ -118,20 +116,17 @@ virDomainCheckVirtioOptionsAreAbsent(virDomainVirtioO= ptions *virtio) =20 if (virtio->iommu !=3D VIR_TRISTATE_SWITCH_ABSENT) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("iommu driver option is only supported " - "for virtio devices")); + _("iommu driver option is only supported for virtio= devices")); return -1; } if (virtio->ats !=3D VIR_TRISTATE_SWITCH_ABSENT) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("ats driver option is only supported " - "for virtio devices")); + _("ats driver option is only supported for virtio d= evices")); return -1; } if (virtio->packed !=3D VIR_TRISTATE_SWITCH_ABSENT) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("packed driver option is only supported " - "for virtio devices")); + _("packed driver option is only supported for virti= o devices")); return -1; } =20 @@ -163,8 +158,7 @@ virDomainVideoDefValidate(const virDomainVideoDef *vide= o, if (def->videos[i]->type =3D=3D VIR_DOMAIN_VIDEO_TYPE_NONE && def->nvideos > 1) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("a 'none' video type must be the only video d= evice " - "defined for the domain")); + _("a 'none' video type must be the only video d= evice defined for the domain")); return -1; } } @@ -303,8 +297,7 @@ virSecurityDeviceLabelDefValidate(virSecurityDeviceLabe= lDef **seclabels, =20 if (!vmSeclabels[j]->relabel) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("label overrides require relabeling to be= " - "enabled at the domain level")); + _("label overrides require relabeling to be= enabled at the domain level")); return -1; } } @@ -542,8 +535,7 @@ virDomainDiskDefValidateSourceChainOne(const virStorage= Source *src) encryption->encinfo.cipher_name) { =20 virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("supplying for domain disk definitio= n " - "is unnecessary")); + _("supplying for domain disk definitio= n is unnecessary")); return -1; } } @@ -553,15 +545,13 @@ virDomainDiskDefValidateSourceChainOne(const virStora= geSource *src) src->protocol !=3D VIR_STORAGE_NET_PROTOCOL_RBD) { if (src->snapshot) { virReportError(VIR_ERR_XML_ERROR, "%s", - _(" element is currently supported " - "only with 'rbd' disks")); + _(" element is currently supported on= ly with 'rbd' disks")); return -1; } =20 if (src->configFile) { virReportError(VIR_ERR_XML_ERROR, "%s", - _(" element is currently supported " - "only with 'rbd' disks")); + _(" element is currently supported only= with 'rbd' disks")); return -1; } } @@ -997,8 +987,7 @@ virDomainChrSourceDefValidate(const virDomainChrSourceD= ef *src_def, if ((src_def->data.nmdm.master && !src_def->data.nmdm.slave) || (!src_def->data.nmdm.master && src_def->data.nmdm.slave)) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("Should define both master and slave " - "path attributes for nmdm device")); + _("Should define both master and slave path= attributes for nmdm device")); return -1; } =20 @@ -1081,8 +1070,7 @@ virDomainRedirdevDefValidate(const virDomainDef *def, if (redirdev->bus =3D=3D VIR_DOMAIN_REDIRDEV_BUS_USB && !virDomainDefHasUSB(def)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("cannot add redirected USB device: " - "USB is disabled for this domain")); + _("cannot add redirected USB device: USB is disable= d for this domain")); return -1; } =20 @@ -1640,8 +1628,7 @@ virDomainDefOSValidate(const virDomainDef *def, } else { if (def->os.firmwareFeatures) { virReportError(VIR_ERR_XML_DETAIL, "%s", - _("cannot use feature-based firmware autoselect= ion " - "when firmware autoselection is disabled")); + _("cannot use feature-based firmware autoselect= ion when firmware autoselection is disabled")); return -1; } =20 @@ -1741,8 +1728,7 @@ virDomainDefIOMMUValidate(const virDomainDef *def) if (def->iommu->intremap =3D=3D VIR_TRISTATE_SWITCH_ON && def->features[VIR_DOMAIN_FEATURE_IOAPIC] !=3D VIR_DOMAIN_IOAPIC_QE= MU) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("IOMMU interrupt remapping requires split I/O API= C " - "(ioapic driver=3D'qemu')")); + _("IOMMU interrupt remapping requires split I/O API= C (ioapic driver=3D'qemu')")); return -1; } =20 @@ -2041,8 +2027,7 @@ virDomainNetDefValidate(const virDomainNetDef *net) if ((net->hostIP.nroutes || net->hostIP.nips) && net->type !=3D VIR_DOMAIN_NET_TYPE_ETHERNET) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Invalid attempt to set network interface host-si= de IP route and/or address info on interface of type '%1$s'. " - "This is only supported on interfaces of type 'et= hernet'"), + _("Invalid attempt to set network interface host-si= de IP route and/or address info on interface of type '%1$s'. This is only s= upported on interfaces of type 'ethernet'"), virDomainNetTypeToString(net->type)); return -1; } @@ -2168,8 +2153,7 @@ virDomainHostdevDefValidate(const virDomainHostdevDef= *hostdev) hostdev->info->type !=3D VIR_DOMAIN_DEVICE_ADDRESS_TYPE_UN= ASSIGNED && hostdev->info->type !=3D VIR_DOMAIN_DEVICE_ADDRESS_TYPE_PC= I) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("PCI host devices must use 'pci' or " - "'unassigned' address type")); + _("PCI host devices must use 'pci' or 'unas= signed' address type")); return -1; } break; @@ -2177,8 +2161,7 @@ virDomainHostdevDefValidate(const virDomainHostdevDef= *hostdev) if (hostdev->info->type !=3D VIR_DOMAIN_DEVICE_ADDRESS_TYPE_NO= NE && hostdev->info->type !=3D VIR_DOMAIN_DEVICE_ADDRESS_TYPE_DR= IVE) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("SCSI host device must use 'drive' " - "address type")); + _("SCSI host device must use 'drive' addres= s type")); return -1; } if (hostdev->source.subsys.u.scsi.sgio =3D=3D VIR_DOMAIN_DEVIC= E_SGIO_UNFILTERED) { @@ -2192,8 +2175,7 @@ virDomainHostdevDefValidate(const virDomainHostdevDef= *hostdev) hostdev->info->type !=3D VIR_DOMAIN_DEVICE_ADDRESS_TYPE_PC= I && hostdev->info->type !=3D VIR_DOMAIN_DEVICE_ADDRESS_TYPE_CC= W) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("SCSI_host host device must use 'pci' " - "or 'ccw' address type")); + _("SCSI_host host device must use 'pci' or = 'ccw' address type")); return -1; } break; diff --git a/src/conf/netdev_bandwidth_conf.c b/src/conf/netdev_bandwidth_c= onf.c index 38b7cc10fd..cdf289270a 100644 --- a/src/conf/netdev_bandwidth_conf.c +++ b/src/conf/netdev_bandwidth_conf.c @@ -105,8 +105,7 @@ virNetDevBandwidthParse(virNetDevBandwidth **bandwidth, if (rc =3D=3D 1) { if (!class_id) { virReportError(VIR_ERR_XML_DETAIL, "%s", - _("classID attribute not supported on " - "in this usage context")); + _("classID attribute not supported on in this usage context")); return -1; } =20 diff --git a/src/conf/netdev_vlan_conf.c b/src/conf/netdev_vlan_conf.c index 96ac7f3428..1ac66aec54 100644 --- a/src/conf/netdev_vlan_conf.c +++ b/src/conf/netdev_vlan_conf.c @@ -47,8 +47,7 @@ virNetDevVlanParse(xmlNodePtr node, xmlXPathContextPtr ct= xt, virNetDevVlan *def) =20 if (nTags =3D=3D 0) { virReportError(VIR_ERR_XML_ERROR, "%s", - _("missing tag id - each must have " - "at least one subelement")); + _("missing tag id - each must have at least = one subelement")); goto cleanup; } =20 @@ -106,8 +105,7 @@ virNetDevVlanParse(xmlNodePtr node, xmlXPathContextPtr = ctxt, virNetDevVlan *def) } if (def->nativeMode !=3D 0) { virReportError(VIR_ERR_XML_ERROR, "%s", - _("invalid configuration in - \"trun= k=3D'no'\" is " - "not allowed with a native vlan id")); + _("invalid configuration in - \"trun= k=3D'no'\" is not allowed with a native vlan id")); goto cleanup; } /* allow (but discard) "trunk=3D'no' if there is a single tag = */ diff --git a/src/conf/network_conf.c b/src/conf/network_conf.c index 3e137cb562..83214e2087 100644 --- a/src/conf/network_conf.c +++ b/src/conf/network_conf.c @@ -430,8 +430,7 @@ virNetworkDHCPLeaseTimeDefParseXML(virNetworkDHCPLeaseT= imeDef **lease, if ((unit =3D=3D VIR_NETWORK_DHCP_LEASETIME_UNIT_SECONDS && expiry= < 120) || (unit =3D=3D VIR_NETWORK_DHCP_LEASETIME_UNIT_MINUTES && expiry= < 2)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("The minimum lease time should be greater " - "than 2 minutes")); + _("The minimum lease time should be greater tha= n 2 minutes")); return -1; } } @@ -920,8 +919,7 @@ virNetworkDNSDefParseXML(const char *networkName, def->forwarders[i].domain =3D virXMLPropString(fwdNodes[i], "d= omain"); if (!(addr || def->forwarders[i].domain)) { virReportError(VIR_ERR_XML_ERROR, "%s", - _("Invalid forwarder element, must contain " - "at least one of addr or domain")); + _("Invalid forwarder element, must contain = at least one of addr or domain")); return -1; } def->nfwds++; @@ -2766,8 +2764,7 @@ virNetworkDefUpdateIPDHCPHost(virNetworkDef *def, VIR_SOCKET_ADDR_FAMILY(&ipdef->address) !=3D VIR_SOCKET_ADDR_FAMILY(&host.ip)) { virReportError(VIR_ERR_OPERATION_INVALID, "%s", - _("the address family of a host entry IP must match= " - "the address family of the dhcp element's parent"= )); + _("the address family of a host entry IP must match= the address family of the dhcp element's parent")); goto cleanup; } =20 @@ -2892,8 +2889,7 @@ virNetworkDefUpdateIPDHCPRange(virNetworkDef *def, if (command =3D=3D VIR_NETWORK_UPDATE_COMMAND_MODIFY) { =20 virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s", - _("dhcp ranges cannot be modified, " - "only added or deleted")); + _("dhcp ranges cannot be modified, only added or de= leted")); return -1; } =20 @@ -2903,8 +2899,7 @@ virNetworkDefUpdateIPDHCPRange(virNetworkDef *def, if (VIR_SOCKET_ADDR_FAMILY(&ipdef->address) !=3D VIR_SOCKET_ADDR_FAMILY(&range.addr.start)) { virReportError(VIR_ERR_OPERATION_INVALID, "%s", - _("the address family of a dhcp range must match " - "the address family of the dhcp element's parent"= )); + _("the address family of a dhcp range must match th= e address family of the dhcp element's parent")); return -1; } =20 @@ -2993,8 +2988,7 @@ virNetworkDefUpdateForwardInterface(virNetworkDef *de= f, =20 if (command =3D=3D VIR_NETWORK_UPDATE_COMMAND_MODIFY) { virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s", - _("forward interface entries cannot be modified, " - "only added or deleted")); + _("forward interface entries cannot be modified, on= ly added or deleted")); goto cleanup; } =20 @@ -3183,8 +3177,7 @@ virNetworkDefUpdateDNSHost(virNetworkDef *def, =20 if (command =3D=3D VIR_NETWORK_UPDATE_COMMAND_MODIFY) { virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s", - _("DNS HOST records cannot be modified, " - "only added or deleted")); + _("DNS HOST records cannot be modified, only added = or deleted")); goto cleanup; } =20 @@ -3280,8 +3273,7 @@ virNetworkDefUpdateDNSSrv(virNetworkDef *def, =20 if (command =3D=3D VIR_NETWORK_UPDATE_COMMAND_MODIFY) { virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s", - _("DNS SRV records cannot be modified, " - "only added or deleted")); + _("DNS SRV records cannot be modified, only added o= r deleted")); goto cleanup; } =20 @@ -3362,8 +3354,7 @@ virNetworkDefUpdateDNSTxt(virNetworkDef *def, =20 if (command =3D=3D VIR_NETWORK_UPDATE_COMMAND_MODIFY) { virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s", - _("DNS TXT records cannot be modified, " - "only added or deleted")); + _("DNS TXT records cannot be modified, only added o= r deleted")); goto cleanup; } =20 diff --git a/src/conf/node_device_conf.c b/src/conf/node_device_conf.c index 81c9f2a9c8..f722ab37c6 100644 --- a/src/conf/node_device_conf.c +++ b/src/conf/node_device_conf.c @@ -930,8 +930,7 @@ virNodeDevCapMdevTypesParseXML(xmlXPathContextPtr ctxt, =20 if (!(type->id =3D virXPathString("string(./@id[1])", ctxt))) { virReportError(VIR_ERR_XML_ERROR, "%s", - _("missing 'id' attribute for mediated device's= " - " element")); + _("missing 'id' attribute for mediated device's= element")); goto cleanup; } =20 diff --git a/src/conf/node_device_util.c b/src/conf/node_device_util.c index cfe1b1077e..8f2ffd799f 100644 --- a/src/conf/node_device_util.c +++ b/src/conf/node_device_util.c @@ -103,8 +103,7 @@ virNodeDeviceCreateVport(virStorageAdapterFCHost *fchos= t) } else { if (!(parent_hoststr =3D virVHBAFindVportHost(NULL))) { virReportError(VIR_ERR_XML_ERROR, "%s", - _("'parent' for vHBA not specified, and " - "cannot find one on this host")); + _("'parent' for vHBA not specified, and cannot = find one on this host")); return NULL; } skip_capable_check =3D true; diff --git a/src/conf/numa_conf.c b/src/conf/numa_conf.c index 31b5ea58f6..bcd7838e00 100644 --- a/src/conf/numa_conf.c +++ b/src/conf/numa_conf.c @@ -147,15 +147,13 @@ virDomainNumatuneNodeParseXML(virDomainNuma *numa, if (numa->memory.specified && numa->memory.placement =3D=3D VIR_DOMAIN_NUMATUNE_PLACEMENT_AUTO) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Per-node binding is not compatible with " - "automatic NUMA placement.")); + _("Per-node binding is not compatible with automati= c NUMA placement.")); return -1; } =20 if (!numa->nmem_nodes) { virReportError(VIR_ERR_XML_ERROR, "%s", - _("Element 'memnode' is invalid without " - "any guest NUMA cells")); + _("Element 'memnode' is invalid without any guest N= UMA cells")); return -1; } =20 @@ -171,8 +169,7 @@ virDomainNumatuneNodeParseXML(virDomainNuma *numa, =20 if (cellid >=3D numa->nmem_nodes) { virReportError(VIR_ERR_XML_ERROR, "%s", - _("Argument 'cellid' in memnode element must " - "correspond to existing guest's NUMA cell")); + _("Argument 'cellid' in memnode element must co= rrespond to existing guest's NUMA cell")); return -1; } =20 @@ -194,8 +191,7 @@ virDomainNumatuneNodeParseXML(virDomainNuma *numa, tmp =3D virXMLPropString(cur_node, "nodeset"); if (!tmp) { virReportError(VIR_ERR_XML_ERROR, "%s", - _("Missing required nodeset attribute " - "in memnode element")); + _("Missing required nodeset attribute in memnod= e element")); return -1; } if (virBitmapParse(tmp, &mem_node->nodeset, VIR_DOMAIN_CPUMASK_LEN= ) < 0) @@ -447,8 +443,7 @@ virDomainNumatuneMaybeGetNodeset(virDomainNuma *numatun= e, numatune->memory.placement =3D=3D VIR_DOMAIN_NUMATUNE_PLACEMENT_AU= TO && !auto_nodeset) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("Advice from numad is needed in case of " - "automatic numa placement")); + _("Advice from numad is needed in case of automatic= numa placement")); return -1; } =20 @@ -533,8 +528,7 @@ virDomainNumatuneSet(virDomainNuma *numa, if (placement =3D=3D VIR_DOMAIN_NUMATUNE_PLACEMENT_STATIC && !numa->memory.nodeset) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("nodeset for NUMA memory tuning must be set " - "if 'placement' is 'static'")); + _("nodeset for NUMA memory tuning must be set if 'p= lacement' is 'static'")); return -1; } =20 @@ -878,9 +872,7 @@ virDomainNumaDefParseXML(virDomainNuma *def, /* cells are in order of parsing or explicitly numbered */ if (cur_cell >=3D n) { virReportError(VIR_ERR_XML_ERROR, "%s", - _("Exactly one 'cell' element per guest " - "NUMA cell allowed, non-contiguous ranges or " - "ranges not starting from 0 are not allowed")= ); + _("Exactly one 'cell' element per guest NUMA ce= ll allowed, non-contiguous ranges or ranges not starting from 0 are not all= owed")); return -1; } =20 @@ -1385,8 +1377,7 @@ virDomainNumaSetNodeDistance(virDomainNuma *numa, if (!distances || cellid >=3D numa->mem_nodes[node].ndistances) { virReportError(VIR_ERR_XML_ERROR, "%s", - _("Arguments under memnode element do not " - "correspond with existing guest's NUMA cell")); + _("Arguments under memnode element do not correspon= d with existing guest's NUMA cell")); return -1; } =20 diff --git a/src/conf/nwfilter_params.c b/src/conf/nwfilter_params.c index 868baf7192..49d23936a3 100644 --- a/src/conf/nwfilter_params.c +++ b/src/conf/nwfilter_params.c @@ -362,10 +362,8 @@ virNWFilterVarCombIterAddVariable(virNWFilterVarCombIt= erEntry *cie, cie->curValue =3D minValue; } else { if (cie->maxValue !=3D maxValue) { - virReportError(VIR_ERR_INTERNAL_ERROR, - _("Cardinality of list items must be " - "the same for processing them in " - "parallel")); + virReportError(VIR_ERR_INTERNAL_ERROR, "%s", + _("Cardinality of list items must be the same f= or processing them in parallel")); return -1; } } diff --git a/src/conf/snapshot_conf.c b/src/conf/snapshot_conf.c index 67cec34920..4b0555eb8c 100644 --- a/src/conf/snapshot_conf.c +++ b/src/conf/snapshot_conf.c @@ -355,8 +355,7 @@ virDomainSnapshotDefParse(xmlXPathContextPtr ctxt, def->memory !=3D VIR_DOMAIN_SNAPSHOT_LOCATION_DEFAULT && def->memory !=3D VIR_DOMAIN_SNAPSHOT_LOCATION_NO) { virReportError(VIR_ERR_XML_ERROR, "%s", - _("memory state cannot be saved with offline or " - "disk-only snapshot")); + _("memory state cannot be saved with offline or dis= k-only snapshot")); return NULL; } =20 diff --git a/src/conf/storage_adapter_conf.c b/src/conf/storage_adapter_con= f.c index 2a8a1a3eb5..330f436597 100644 --- a/src/conf/storage_adapter_conf.c +++ b/src/conf/storage_adapter_conf.c @@ -100,8 +100,7 @@ virStorageAdapterParseXMLSCSIHost(xmlNodePtr node, &scsi_host->unique_id) < 0) || (scsi_host->unique_id < 0)) { virReportError(VIR_ERR_XML_ERROR, "%s", - _("Missing or invalid scsi adapter " - "'unique_id' value")); + _("Missing or invalid scsi adapter 'unique_id' = value")); return -1; } } @@ -140,15 +139,13 @@ virStorageAdapterParseXMLLegacy(xmlNodePtr node, VIR_FREE(wwpn); VIR_FREE(parent); virReportError(VIR_ERR_XML_ERROR, "%s", - _("Use of 'wwnn', 'wwpn', and 'parent' attributes " - "requires use of the adapter 'type'")); + _("Use of 'wwnn', 'wwpn', and 'parent' attributes r= equires use of the adapter 'type'")); return -1; } =20 if (virXPathNode("./parentaddr", ctxt)) { virReportError(VIR_ERR_XML_ERROR, "%s", - _("Use of 'parentaddr' element requires use " - "of the adapter 'type'")); + _("Use of 'parentaddr' element requires use of the = adapter 'type'")); return -1; } =20 @@ -198,8 +195,7 @@ virStorageAdapterValidateFCHost(virStorageAdapterFCHost= *fchost) { if (!fchost->wwnn || !fchost->wwpn) { virReportError(VIR_ERR_XML_ERROR, "%s", - _("'wwnn' and 'wwpn' must be specified for adapter " - "type 'fchost'")); + _("'wwnn' and 'wwpn' must be specified for adapter = type 'fchost'")); return -1; } =20 @@ -238,15 +234,13 @@ virStorageAdapterValidateSCSIHost(virStorageAdapterSC= SIHost *scsi_host) { if (!scsi_host->name && !scsi_host->has_parent) { virReportError(VIR_ERR_XML_ERROR, "%s", - _("Either 'name' or 'parent' must be specified " - "for the 'scsi_host' adapter")); + _("Either 'name' or 'parent' must be specified for = the 'scsi_host' adapter")); return -1; } =20 if (scsi_host->name && scsi_host->has_parent) { virReportError(VIR_ERR_XML_ERROR, "%s", - _("Both 'name' and 'parent' cannot be specified " - "for the 'scsi_host' adapter")); + _("Both 'name' and 'parent' cannot be specified for= the 'scsi_host' adapter")); return -1; } =20 diff --git a/src/conf/virdomainjob.c b/src/conf/virdomainjob.c index 2644a793f8..38f08f1d18 100644 --- a/src/conf/virdomainjob.c +++ b/src/conf/virdomainjob.c @@ -492,8 +492,7 @@ virDomainObjBeginJobInternal(virDomainObj *obj, agentBlocker); } else { virReportError(VIR_ERR_OPERATION_FAILED, "%s", - _("cannot acquire state change lock " - "due to max_queued limit")); + _("cannot acquire state change lock due to max_= queued limit")); } ret =3D -2; } else { diff --git a/src/conf/virnetworkobj.c b/src/conf/virnetworkobj.c index b8b86da06f..5d108a8fca 100644 --- a/src/conf/virnetworkobj.c +++ b/src/conf/virnetworkobj.c @@ -741,8 +741,7 @@ virNetworkObjConfigChangeSetup(virNetworkObj *obj, if (flags & VIR_NETWORK_UPDATE_AFFECT_CONFIG) { if (!obj->persistent) { virReportError(VIR_ERR_OPERATION_INVALID, "%s", - _("cannot change persistent config of a " - "transient network")); + _("cannot change persistent config of a transie= nt network")); return -1; } /* this should already have been done by the driver, but do it --=20 2.41.0 From nobody Sat May 18 15:38:13 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=1692949325; cv=none; d=zohomail.com; s=zohoarc; b=SQWDM6tLIzzmzwWOhqjyMnFJk/CeLtPOyl7+f+kO8ocy8RevJ99Jz2YMDjH+r8irW0mCS5G+CyX3DUhV1zga8CCjHAzSx+UNh6wQ3HoflqLfs3SjgeIrUhxYVghQsSuhjAhRYnhyfu2lkD3zB5l4J/+oE8+K4hdc/FxvSJ1m87w= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1692949325; 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=bwD7uR0xa1DPFJF4pHUP2CCPos44GjKIU242xKzbj4w=; b=AW8CVQvWOnhHx44ER4d2s3JAOMpcRHn/DVqdrqm7mW/3iGQAvF8z/gKKanq6qGbTuurnkZC9EGL7WCx6Yzrhi9gl2vGH9SajQEx6eiXibqVue5wHl0vw1TSO5kDy84oHqucPmM5PbR0v0QllBehI/JZJqGmeXscgAGrae+75a1g= 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 1692949325296289.6824970564895; Fri, 25 Aug 2023 00:42:05 -0700 (PDT) Received: from mimecast-mx02.redhat.com (66.187.233.73 [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-149-S2G1y_uHPXmdBMtLvSa44w-1; Fri, 25 Aug 2023 03:40:46 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id D07303827E05; Fri, 25 Aug 2023 07:40:32 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id AE9FD40C2079; Fri, 25 Aug 2023 07:40:31 +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 2CD8119465B5; Fri, 25 Aug 2023 07:40:31 +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 81B591946589 for ; Fri, 25 Aug 2023 07:40:28 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 6EC892026D2B; Fri, 25 Aug 2023 07:40:28 +0000 (UTC) Received: from localhost.localdomain (unknown [10.43.2.56]) by smtp.corp.redhat.com (Postfix) with ESMTP id 163A12026D68 for ; Fri, 25 Aug 2023 07:40:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1692949324; 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=bwD7uR0xa1DPFJF4pHUP2CCPos44GjKIU242xKzbj4w=; b=RHLoQMoMj/FauINzmw5F6IcoUDLRLitQyFWCpGGcVAriu5zPELwCWbofi/be5yolF9zDJr o1LegLRnmN0JLJARk7kTVztjSWyNTMWJrQeiLoMECbMhbSA1iqtMl/GUB30jeu0ZTbpCHc TD0RqXd+BJiilYwXnfEM5fE531/Mbrk= X-MC-Unique: S2G1y_uHPXmdBMtLvSa44w-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH 04/27] cpu: Move error messages onto a single line Date: Fri, 25 Aug 2023 09:40:01 +0200 Message-ID: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 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: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 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: 1692949327188100002 Content-Type: text/plain; charset="utf-8"; x-default="true" Error messages are exempt from the 80 columns rule. Move them onto one line. Signed-off-by: Michal Privoznik Reviewed-by: Pavel Hrdina --- src/cpu/cpu_x86.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/cpu/cpu_x86.c b/src/cpu/cpu_x86.c index b9513e24d5..7a7f3b409d 100644 --- a/src/cpu/cpu_x86.c +++ b/src/cpu/cpu_x86.c @@ -1899,8 +1899,7 @@ x86Compute(virCPUDef *host, result =3D x86ModelCompare(host_model, cpu_require); if (result =3D=3D SUBSET || result =3D=3D UNRELATED) { x86DataSubtract(&cpu_require->data, &host_model->data); - virX86CpuIncompatible(N_("Host CPU does not provide required " - "features"), + virX86CpuIncompatible(N_("Host CPU does not provide required featu= res"), &cpu_require->data); return VIR_CPU_COMPARE_INCOMPATIBLE; } @@ -1919,8 +1918,7 @@ x86Compute(virCPUDef *host, if (ret =3D=3D VIR_CPU_COMPARE_SUPERSET && cpu->type =3D=3D VIR_CPU_TYPE_GUEST && cpu->match =3D=3D VIR_CPU_MATCH_STRICT) { - virX86CpuIncompatible(N_("Host CPU does not strictly match guest C= PU: " - "Extra features"), + virX86CpuIncompatible(N_("Host CPU does not strictly match guest C= PU: Extra features"), &diff->data); return VIR_CPU_COMPARE_INCOMPATIBLE; } --=20 2.41.0 From nobody Sat May 18 15:38:13 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; 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=1692949509; cv=none; d=zohomail.com; s=zohoarc; b=Hpb6coB/cWryYfK29EfIm7B2FaUYR+BS7uO6bsdQjCbpgjRmPhMejTZOi2jSegYpxc4pUj0fPdJ1PANgEYROIs3OeY1hz4yrFODi3QN3OF7oYCNLSBpoxVCyRinKZ8n716pda+xVlk9R46JpNHb6yQD6pnr+xg8MbLpbmJhxRgM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1692949509; 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=/+a2sg0dnWohM5AZhRfdVIvZ1/qjE9Si//RgbPe7Y00=; b=fNClkyiugekS1IZt/Da1rHizBbh5z75BoWpabCzXMAe703O7X73wEY5Ytg2X+jLawZZNe2iyXraDiarHhzncy5FxgK8k4h599XcuCv/xriXBrF/ZfyAYz/uqfXjZXejDdbPNx5tMFm7JDnRa7sEizjev27/C0di9VF5OTpr4dco= 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 16929495093811021.3470855451923; Fri, 25 Aug 2023 00:45:09 -0700 (PDT) Received: from mimecast-mx02.redhat.com (66.187.233.73 [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-323-cqW2eXV2Nku2LxKXxrwplg-1; Fri, 25 Aug 2023 03:40:50 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 501441C07597; Fri, 25 Aug 2023 07:40:33 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3624E2166B27; Fri, 25 Aug 2023 07:40:33 +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 E3A5719465BD; Fri, 25 Aug 2023 07:40:31 +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 199F71946589 for ; Fri, 25 Aug 2023 07:40:29 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 09EB92026D2B; Fri, 25 Aug 2023 07:40:29 +0000 (UTC) Received: from localhost.localdomain (unknown [10.43.2.56]) by smtp.corp.redhat.com (Postfix) with ESMTP id A550D2026D76 for ; Fri, 25 Aug 2023 07:40:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1692949508; 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=/+a2sg0dnWohM5AZhRfdVIvZ1/qjE9Si//RgbPe7Y00=; b=KRKn11W9Tl6kEPXdLfjrhw6JX7cxPKChLyajw3pRz1t0feadVCbbroOcLQsvF8YK9aNCyv PCFBaukqiFucEmbVnNyoV3ioLqb09TB5/c+aRtoVpFWXuFM6uHnxhcc7D1kZaahXWOb636 APKG0yvDpSeawoSAZBNgflK08iADlGw= X-MC-Unique: cqW2eXV2Nku2LxKXxrwplg-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH 05/27] esx: Move error messages onto a single line Date: Fri, 25 Aug 2023 09:40:02 +0200 Message-ID: <6c63e8239d5781b004201542027ff83a598f7dda.1692949012.git.mprivozn@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 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: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 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: 1692949510913100001 Content-Type: text/plain; charset="utf-8"; x-default="true" Error messages are exempt from the 80 columns rule. Move them onto one line. Signed-off-by: Michal Privoznik Reviewed-by: Pavel Hrdina --- src/esx/esx_driver.c | 21 +++++++-------------- src/esx/esx_network_driver.c | 3 +-- src/esx/esx_storage_backend_vmfs.c | 3 +-- src/esx/esx_util.c | 3 +-- src/esx/esx_vi.c | 19 ++++++------------- src/esx/esx_vi_types.c | 3 +-- 6 files changed, 17 insertions(+), 35 deletions(-) diff --git a/src/esx/esx_driver.c b/src/esx/esx_driver.c index b243bbf411..554fb3e18f 100644 --- a/src/esx/esx_driver.c +++ b/src/esx/esx_driver.c @@ -2916,8 +2916,7 @@ esxDomainDefineXMLFlags(virConnectPtr conn, const cha= r *xml, unsigned int flags) if (virtualMachine) { /* FIXME */ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("Domain already exists, editing existing domains = is not " - "supported yet")); + _("Domain already exists, editing existing domains = is not supported yet")); goto cleanup; } =20 @@ -2952,8 +2951,7 @@ esxDomainDefineXMLFlags(virConnectPtr conn, const cha= r *xml, unsigned int flags) */ if (def->ndisks < 1) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("Domain XML doesn't contain any disks, cannot ded= uce " - "datastore and path for VMX file")); + _("Domain XML doesn't contain any disks, cannot ded= uce datastore and path for VMX file")); goto cleanup; } =20 @@ -2967,16 +2965,14 @@ esxDomainDefineXMLFlags(virConnectPtr conn, const c= har *xml, unsigned int flags) =20 if (!disk) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("Domain XML doesn't contain any file-based harddi= sks, " - "cannot deduce datastore and path for VMX file")); + _("Domain XML doesn't contain any file-based harddi= sks, cannot deduce datastore and path for VMX file")); goto cleanup; } =20 src =3D virDomainDiskGetSource(disk); if (!src) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("First file-based harddisk has no source, cannot = deduce " - "datastore and path for VMX file")); + _("First file-based harddisk has no source, cannot = deduce datastore and path for VMX file")); goto cleanup; } =20 @@ -3241,8 +3237,7 @@ esxDomainSetAutostart(virDomainPtr domain, int autost= art) powerInfo =3D powerInfo->_next) { if (STRNEQ(powerInfo->key->value, virtualMachine->obj->val= ue)) { virReportError(VIR_ERR_OPERATION_INVALID, "%s", - _("Cannot enable general autostart opti= on " - "without affecting other domains")); + _("Cannot enable general autostart opti= on without affecting other domains")); goto cleanup; } } @@ -3685,8 +3680,7 @@ esxDomainMigratePerform(virDomainPtr domain, =20 if (STRCASENEQ(priv->vCenter->ipAddress, parsedUri->server)) { virReportError(VIR_ERR_INVALID_ARG, "%s", - _("Migration source and destination have to refer t= o " - "the same vCenter")); + _("Migration source and destination have to refer t= o the same vCenter")); goto cleanup; } =20 @@ -3734,8 +3728,7 @@ esxDomainMigratePerform(virDomainPtr domain, eventList->fullFormattedMessage); } else { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("Could not migrate domain, validation reporte= d a " - "problem")); + _("Could not migrate domain, validation reporte= d a problem")); } =20 goto cleanup; diff --git a/src/esx/esx_network_driver.c b/src/esx/esx_network_driver.c index 273147af40..1ee4d6c34f 100644 --- a/src/esx/esx_network_driver.c +++ b/src/esx/esx_network_driver.c @@ -311,8 +311,7 @@ esxNetworkDefineXMLFlags(virConnectPtr conn, const char= *xml, if (hostVirtualSwitch) { /* FIXME */ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("HostVirtualSwitch already exists, editing existi= ng " - "ones is not supported yet")); + _("HostVirtualSwitch already exists, editing existi= ng ones is not supported yet")); goto cleanup; } =20 diff --git a/src/esx/esx_storage_backend_vmfs.c b/src/esx/esx_storage_backe= nd_vmfs.c index 7c5df1c9cd..145aff0c9c 100644 --- a/src/esx/esx_storage_backend_vmfs.c +++ b/src/esx/esx_storage_backend_vmfs.c @@ -726,8 +726,7 @@ esxStorageVolLookupByKey(virConnectPtr conn, const char= *key) =20 if (!priv->primary->hasQueryVirtualDiskUuid) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("QueryVirtualDiskUuid not available, " - "cannot lookup storage volume by UUID")); + _("QueryVirtualDiskUuid not available, cannot looku= p storage volume by UUID")); return NULL; } =20 diff --git a/src/esx/esx_util.c b/src/esx/esx_util.c index 785701a518..cb9638f360 100644 --- a/src/esx/esx_util.c +++ b/src/esx/esx_util.c @@ -119,8 +119,7 @@ esxUtil_ParseUri(esxUtil_ParsedUri **parsedUri, virURI = *uri) if ((tmp =3D strchr((*parsedUri)->proxy_hostname, ':'))) { if (tmp =3D=3D (*parsedUri)->proxy_hostname) { virReportError(VIR_ERR_INVALID_ARG, "%s", - _("Query parameter 'proxy' doesn't cont= ain a " - "hostname")); + _("Query parameter 'proxy' doesn't cont= ain a hostname")); goto cleanup; } =20 diff --git a/src/esx/esx_vi.c b/src/esx/esx_vi.c index 122e5bed2e..3ecd406e1d 100644 --- a/src/esx/esx_vi.c +++ b/src/esx/esx_vi.c @@ -253,8 +253,7 @@ esxVI_CURL_Perform(esxVI_CURL *curl, const char *url) =20 if (responseCode < 0) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("curl_easy_getinfo(CURLINFO_RESPONSE_CODE) return= ed a " - "negative response code")); + _("curl_easy_getinfo(CURLINFO_RESPONSE_CODE) return= ed a negative response code")); return -1; } =20 @@ -674,15 +673,13 @@ esxVI_MultiCURL_Remove(esxVI_MultiCURL *multi, esxVI_= CURL *curl) { if (!curl->handle) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("Cannot remove uninitialized CURL handle from a " - "multi handle")); + _("Cannot remove uninitialized CURL handle from a m= ulti handle")); return -1; } =20 if (!curl->multi) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("Cannot remove CURL handle from a multi handle wh= en it " - "wasn't added before")); + _("Cannot remove CURL handle from a multi handle wh= en it wasn't added before")); return -1; } =20 @@ -1909,8 +1906,7 @@ esxVI_EnsureSession(esxVI_Context *ctx) } } else if (STRNEQ(ctx->session->key, currentSession->key)) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("Key of the current session differs from the key = at " - "last login")); + _("Key of the current session differs from the key = at last login")); goto cleanup; } =20 @@ -4220,13 +4216,10 @@ esxVI_WaitForTaskCompletion(esxVI_Context *ctx, =20 if (taskInfo->cancelable =3D=3D esxVI_Boolean_True) { if (esxVI_CancelTask(ctx, task) < 0 && blocked) { - VIR_ERROR(_("Cancelable task is blocked by an " - "unanswered question but cancellation= " - "failed")); + VIR_ERROR(_("Cancelable task is blocked by an unan= swered question but cancellation failed")); } } else if (blocked) { - VIR_ERROR(_("Non-cancelable task is blocked by an " - "unanswered question")); + VIR_ERROR(_("Non-cancelable task is blocked by an unan= swered question")); } =20 /* FIXME: Enable error reporting here again */ diff --git a/src/esx/esx_vi_types.c b/src/esx/esx_vi_types.c index 96c131f618..9386727fcf 100644 --- a/src/esx/esx_vi_types.c +++ b/src/esx/esx_vi_types.c @@ -1444,8 +1444,7 @@ esxVI_DateTime_Deserialize(xmlNodePtr node, esxVI_Dat= eTime **dateTime) =20 if (!(*dateTime)->value) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("XML node doesn't contain text, expecting an " - "xsd:dateTime value")); + _("XML node doesn't contain text, expecting an xsd:= dateTime value")); goto failure; } =20 --=20 2.41.0 From nobody Sat May 18 15:38:13 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; 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=1692949249; cv=none; d=zohomail.com; s=zohoarc; b=f1FOTtNTs05yKsen2Lbil3lqTlbsbsmnGcKekfHbq8u9W30t9MYRcKO+I4UQHnXS6N26xM+nXlJBYxbwuPINnhTyORA64JkICYBGP8aCbCRXMNoCMNn85sifnY7h6CROzqKigbe8kEUfq6YFLhAQ/Su2SxyH9TcBl+pX8LMrxyg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1692949249; 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=77tAZkcOEErmTmxmxF58ttLBFpIuHrv0e+vFtXwxokA=; b=RCkNDVKGdgwf4bYyFDlfDkzBjAJ3LciSPb0LUEdbAaux9LzZ0tFIc+zhs866DGqojtC3RTGQtwS5iv80XqIuCXkzRDe7n+zVcdP9j6JA4F6kVkZOnjF0+8xMdWftaAwhYiwxWgc6zKscsS9zhMJX8zQO9w7RbGh/nLzjwC+sfuQ= 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 1692949249327521.8191654315197; Fri, 25 Aug 2023 00:40:49 -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-119-1blfalm-OCy4eHPFXzBgXw-1; Fri, 25 Aug 2023 03:40: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 2B69A805588; Fri, 25 Aug 2023 07:40:33 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1C68E40D283C; Fri, 25 Aug 2023 07:40:32 +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 78F691946A5A; Fri, 25 Aug 2023 07:40:31 +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 2F3FC1946A47 for ; Fri, 25 Aug 2023 07:40:30 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 0F47F2026D76; Fri, 25 Aug 2023 07:40:30 +0000 (UTC) Received: from localhost.localdomain (unknown [10.43.2.56]) by smtp.corp.redhat.com (Postfix) with ESMTP id AA9502026D2B for ; Fri, 25 Aug 2023 07:40:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1692949248; 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=77tAZkcOEErmTmxmxF58ttLBFpIuHrv0e+vFtXwxokA=; b=WfknYJW9JnDOFRXk67FdrlHDDyuY2Jdfk1Lq1xjLNfcb+4O30Vr0EQAuYW/dZ/8Pt+CQ0f LfyfLMkhKL/XlM7FO2rjJep1FIeyQJMgMd1/ihEBKT7cv4ljEuK+UUBMxgCryAKAQCWhDe Az4+rHnDqdMrm35MJCcDlvgzp+11xaE= X-MC-Unique: 1blfalm-OCy4eHPFXzBgXw-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH 06/27] hypervisor: Move error messages onto a single line Date: Fri, 25 Aug 2023 09:40:03 +0200 Message-ID: <93f83ba4e54abb2882ff8b87a03d55354ec8a271.1692949012.git.mprivozn@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 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: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 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: 1692949250854100001 Content-Type: text/plain; charset="utf-8"; x-default="true" Error messages are exempt from the 80 columns rule. Move them onto one line. Signed-off-by: Michal Privoznik Reviewed-by: Pavel Hrdina --- src/hypervisor/domain_cgroup.c | 3 +-- src/hypervisor/virhostdev.c | 9 +++------ 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/hypervisor/domain_cgroup.c b/src/hypervisor/domain_cgroup.c index 20ad96b11c..2b9a1cc9b1 100644 --- a/src/hypervisor/domain_cgroup.c +++ b/src/hypervisor/domain_cgroup.c @@ -233,8 +233,7 @@ virDomainCgroupSetMemoryLimitParameters(virCgroup *cgro= up, =20 if (mem_limit > swap_limit) { virReportError(VIR_ERR_INVALID_ARG, "%s", - _("memory hard_limit tunable value must be lowe= r " - "than or equal to swap_hard_limit")); + _("memory hard_limit tunable value must be lowe= r than or equal to swap_hard_limit")); return -1; } } diff --git a/src/hypervisor/virhostdev.c b/src/hypervisor/virhostdev.c index b95d6bf3d6..4672bd8785 100644 --- a/src/hypervisor/virhostdev.c +++ b/src/hypervisor/virhostdev.c @@ -423,8 +423,7 @@ virHostdevSaveNetConfig(virDomainHostdevDef *hostdev, =20 if (virHostdevIsVirtualFunction(hostdev) !=3D 1) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Interface type hostdev is currently supported on" - " SR-IOV Virtual Functions only")); + _("Interface type hostdev is currently supported on= SR-IOV Virtual Functions only")); return -1; } =20 @@ -511,8 +510,7 @@ virHostdevRestoreNetConfig(virDomainHostdevDef *hostdev, =20 if (virHostdevIsVirtualFunction(hostdev) !=3D 1) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Interface type hostdev is currently supported on" - " SR-IOV Virtual Functions only")); + _("Interface type hostdev is currently supported on= SR-IOV Virtual Functions only")); return -1; } =20 @@ -688,8 +686,7 @@ virHostdevPreparePCIDevicesImpl(virHostdevManager *mgr, =20 if (hdrType !=3D VIR_PCI_HEADER_ENDPOINT) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("Non-endpoint PCI devices cannot be assigned " - "to guests")); + _("Non-endpoint PCI devices cannot be assigned = to guests")); goto cleanup; } =20 --=20 2.41.0 From nobody Sat May 18 15:38:13 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; 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=1692949254; cv=none; d=zohomail.com; s=zohoarc; b=R8j/cfDs5xACEomvwifmvo/VK5qkd45VHRV9YXUaKPNSYMthOGpHGdRoaf8Xfej3Mqa/u3cFX+VM+64lhiC9YPJJRKE2b5mYZOSqObrZ+4jUeEmMM30xqmvBlanqgSOjYrorzU4IdPnNc8kpF+SAQ5VJ5bcEFxCLTH3CKvF8/bI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1692949254; 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=qcKhv318tYUJF9Ejl9R+00BwbSxp+L9rEXXdomJIl3E=; b=X2c1gy6OINEQU9GrdXtBa8ZLGbjLli1PfDelWGeSe/O9sPsUEDv2wupk8kdkI7ASnErDYOV4LRLVUnBx59mYYVaqgYFQacVYSxGl58+K2xtK5T0H9FikBH+D7KhdUzw7URqNx3AkKhg3TA3qnIdy9hkWR3dOqzdd8R4t7V1yT88= 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 1692949254944608.0114087095025; Fri, 25 Aug 2023 00:40:54 -0700 (PDT) Received: from mimecast-mx02.redhat.com (66.187.233.73 [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-119-EugS3LFtP0uSdHPrQdreig-1; Fri, 25 Aug 2023 03:40:45 -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 2B6ED3827E0C; Fri, 25 Aug 2023 07:40:33 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id AD27F40D283A; Fri, 25 Aug 2023 07:40:32 +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 A9BB31946A67; Fri, 25 Aug 2023 07:40:31 +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 BE6501946589 for ; Fri, 25 Aug 2023 07:40:30 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id A0A542026D2B; Fri, 25 Aug 2023 07:40:30 +0000 (UTC) Received: from localhost.localdomain (unknown [10.43.2.56]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4774A2026D76 for ; Fri, 25 Aug 2023 07:40:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1692949254; 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=qcKhv318tYUJF9Ejl9R+00BwbSxp+L9rEXXdomJIl3E=; b=BEs2FliYfrMBP5WVVksHTol6SKNFqWJHoBPSDS0nF0949nwEZ0Yu1zuNmUK49ATzxDJs/n 4zsYNhTgBm6aQ1KgMPhkjn0gc1nA0+HCyu3o8QqMfa1RgmIhDYPwAG873yOKMQ+f/vWt7T cIGwpYKyTnVmgn1ww4ZhyVyORFjyqTo= X-MC-Unique: EugS3LFtP0uSdHPrQdreig-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH 07/27] libxl: Move error messages onto a single line Date: Fri, 25 Aug 2023 09:40:04 +0200 Message-ID: <8c380f4794f40af7c2edaa930475110b562d7363.1692949012.git.mprivozn@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 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: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 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: 1692949255159100009 Content-Type: text/plain; charset="utf-8"; x-default="true" Error messages are exempt from the 80 columns rule. Move them onto one line. Signed-off-by: Michal Privoznik Reviewed-by: Pavel Hrdina --- src/libxl/libxl_conf.c | 12 ++++-------- src/libxl/libxl_driver.c | 6 ++---- src/libxl/libxl_migration.c | 11 ++++------- 3 files changed, 10 insertions(+), 19 deletions(-) diff --git a/src/libxl/libxl_conf.c b/src/libxl/libxl_conf.c index 14ad320023..3ffb46fddd 100644 --- a/src/libxl/libxl_conf.c +++ b/src/libxl/libxl_conf.c @@ -1284,8 +1284,7 @@ libxlMakeNic(virDomainDef *def, if (l_nic->script && !(actual_type =3D=3D VIR_DOMAIN_NET_TYPE_BRIDGE || actual_type =3D=3D VIR_DOMAIN_NET_TYPE_ETHERNET= )) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("specifying a script is only supported with " - "interface types bridge and ethernet")); + _("specifying a script is only supported with inter= face types bridge and ethernet")); return -1; } =20 @@ -1310,8 +1309,7 @@ libxlMakeNic(virDomainDef *def, def->os.type =3D=3D VIR_DOMAIN_OSTYPE_XENPVH) && l_nic->model !=3D VIR_DOMAIN_NET_MODEL_NETFRONT) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("only model 'netfront' is supported for " - "Xen PV(H) domains")); + _("only model 'netfront' is supported for Xen P= V(H) domains")); return -1; } x_nic->model =3D g_strdup(virDomainNetGetModelString(l_nic)); @@ -1802,14 +1800,12 @@ libxlDriverConfigInit(libxlDriverConfig *cfg) } =20 if (libxl_ctx_alloc(&cfg->ctx, LIBXL_VERSION, 0, (xentoollog_logger *)= cfg->logger)) { - VIR_ERROR(_("cannot initialize libxenlight context, probably not " - "running in a Xen Dom0, disabling driver")); + VIR_ERROR(_("cannot initialize libxenlight context, probably not r= unning in a Xen Dom0, disabling driver")); return -1; } =20 if ((cfg->verInfo =3D libxl_get_version_info(cfg->ctx)) =3D=3D NULL) { - VIR_ERROR(_("cannot version information from libxenlight, " - "disabling driver")); + VIR_ERROR(_("cannot version information from libxenlight, disablin= g driver")); return -1; } cfg->version =3D (cfg->verInfo->xen_version_major * 1000000) + diff --git a/src/libxl/libxl_driver.c b/src/libxl/libxl_driver.c index 079922dd32..c8ca903050 100644 --- a/src/libxl/libxl_driver.c +++ b/src/libxl/libxl_driver.c @@ -2904,8 +2904,7 @@ libxlDomainUndefineFlags(virDomainPtr dom, } } else { virReportError(VIR_ERR_OPERATION_INVALID, "%s", - _("Refusing to undefine while domain managed " - "save image exists")); + _("Refusing to undefine while domain managed sa= ve image exists")); goto cleanup; } } @@ -3212,8 +3211,7 @@ libxlDomainAttachHostUSBDevice(libxlDriverPrivate *dr= iver, =20 if (libxlDomainAttachControllerDevice(driver, vm, controller) < 0)= { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("No available USB controller and port, and " - "failed to attach a new one")); + _("No available USB controller and port, and fa= iled to attach a new one")); virDomainControllerDefFree(controller); goto cleanup; } diff --git a/src/libxl/libxl_migration.c b/src/libxl/libxl_migration.c index a91091f5e8..f5dee7627b 100644 --- a/src/libxl/libxl_migration.c +++ b/src/libxl/libxl_migration.c @@ -679,8 +679,7 @@ libxlDomainMigrationDstPrepare(virConnectPtr dconn, =20 if (STRPREFIX(hostname, "localhost")) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("hostname on destination resolved to localhos= t," - " but migration requires an FQDN")); + _("hostname on destination resolved to localhos= t, but migration requires an FQDN")); goto endjob; } =20 @@ -1142,8 +1141,7 @@ libxlDomainMigrationSrcPerformP2P(libxlDriverPrivate = *driver, if (useParams <=3D 0) { if (useParams =3D=3D 0) virReportError(VIR_ERR_OPERATION_FAILED, "%s", - _("Destination libvirt does not support migrati= on" - " with extensible parameters")); + _("Destination libvirt does not support migrati= on with extensible parameters")); goto cleanup; } =20 @@ -1260,9 +1258,8 @@ libxlDomainMigrationDstFinish(virConnectPtr dconn, /* Check if domain is alive */ if (!virDomainObjIsActive(vm)) { /* Migration failed if domain is inactive */ - virReportError(VIR_ERR_OPERATION_FAILED, - "%s", _("Migration failed. Domain is not running " - "on destination host")); + virReportError(VIR_ERR_OPERATION_FAILED, "%s", + _("Migration failed. Domain is not running on desti= nation host")); goto cleanup; } =20 --=20 2.41.0 From nobody Sat May 18 15:38:13 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; 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=1692949272; cv=none; d=zohomail.com; s=zohoarc; b=AuPLHU47IXyIlaN/u+Zm9VnK/taG8+b4oxhHYnHqtqGwLch0otyxag9TZvD2CqZhhjvvWFcj0pE3IGjFdm98kr15XBL6+H6BofB41eMEQ32U+JQs7k/W4NXcmcH89+R2QFHAO9mNfQp1lNWy2KcDSpJxgYclacaSuohUi4kIpdA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1692949272; 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=9hgDqeyDC3XnSs5jj3qd+9rgVXlOcXCPVrh9wzgAWG4=; b=bG9io/86DbZmBun9fGxXlfb0vDv/a5hbX6Mwmfpu4JPPYt8da01SbGRXOimPetGVQBewdJHlbWEYH1Cg3oOY/b22hVk0I7/G4lLiE7MQh2YJYjxE2Sn2eenu9sJlQYsDv/mRlaUYHl7L+ZI4kXyu8kYvjLp09RQuX6WdwqeK/LU= 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 1692949272750367.086675841565; Fri, 25 Aug 2023 00:41:12 -0700 (PDT) Received: from mimecast-mx02.redhat.com (66.187.233.73 [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-73-DzlVUJGuOyS33TLrzCY44A-1; Fri, 25 Aug 2023 03:40:48 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id DFCBB3C10155; Fri, 25 Aug 2023 07:40:36 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id CB2956B595; Fri, 25 Aug 2023 07:40: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 AC0D919465A8; Fri, 25 Aug 2023 07:40:36 +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 6C1BB1946A47 for ; Fri, 25 Aug 2023 07:40:31 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 3C8C62026D2B; Fri, 25 Aug 2023 07:40:31 +0000 (UTC) Received: from localhost.localdomain (unknown [10.43.2.56]) by smtp.corp.redhat.com (Postfix) with ESMTP id D74BE2026D2C for ; Fri, 25 Aug 2023 07:40:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1692949271; 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=9hgDqeyDC3XnSs5jj3qd+9rgVXlOcXCPVrh9wzgAWG4=; b=B+OBUn8/LUL2EX3rho4AP6Xq+jBUpaJ5xKXXjhG58SOHIrPXh9jDXs7gJEgGmd80eyebDO CvaW1jUKcMkqggqYafGYOGGcZsbkfoPx6RaiX+aaULu6kaULFmxxnB4Lv/mtwq/V+UMQOC /wt8KcjRv20xAoPtjFSpWnj2xNfo3Fs= X-MC-Unique: DzlVUJGuOyS33TLrzCY44A-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH 08/27] locking: Move error messages onto a single line Date: Fri, 25 Aug 2023 09:40:05 +0200 Message-ID: <1e80bc897f31e1c96b2c3654c017dc9e6eedbb54.1692949012.git.mprivozn@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 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: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.5 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: 1692949273200100001 Content-Type: text/plain; charset="utf-8"; x-default="true" Error messages are exempt from the 80 columns rule. Move them onto one line. Signed-off-by: Michal Privoznik Reviewed-by: Pavel Hrdina --- src/locking/lock_driver_sanlock.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/locking/lock_driver_sanlock.c b/src/locking/lock_driver_sa= nlock.c index dc24862a6f..a07f3652c1 100644 --- a/src/locking/lock_driver_sanlock.c +++ b/src/locking/lock_driver_sanlock.c @@ -831,8 +831,7 @@ virLockManagerSanlockRegisterKillscript(int sock, VIR_FREE(err); } else { virReportSystemError(-rv, "%s", - _("Failed to register lock failure" - " action")); + _("Failed to register lock failure action= ")); } return -1; } --=20 2.41.0 From nobody Sat May 18 15:38:13 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; 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=1692949328; cv=none; d=zohomail.com; s=zohoarc; b=Uu6DJep+W9CM87FTQZXDJ9huF/HF0beko4GFmOyikItfq8JzaPvqpM4p02IBZRw3Ff1ijCKGaiYy4iOPUbjv6nZA8j7BkTzG1YcNCnH+7tX+Yh01D6rgwC1Yh1dz8Q5VhrpKOy5fAp4DFhRFBFNqPvziUejz+QDjyP7ylxY+x+I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1692949328; 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=plwS6VAP19y6XHfUl4/xE8Yo0WLgqYI5/kCZWaWAeuQ=; b=RNtj9mluIejs4z0+Kb5a7QbCTmBpXSsr9AXhyM1fNGGtPdt1Yar3um3mjSFNmj6MIHzcK8FA2gphzzRNWAQb8X5d0RuxxayLzUu9hrbkqABGtUeksw+e9dK2hU1V2js1ChoY9PgqS4URx3UDdeEN010ym+DQ/pax9wfeD7pKT88= 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 1692949328013485.6225836557378; Fri, 25 Aug 2023 00:42:08 -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-518-ChFbetmEOFCbm7RkeBDkHw-1; Fri, 25 Aug 2023 03:40:54 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 9DBE9183B3CC; Fri, 25 Aug 2023 07:40:33 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 86AC5C16032; Fri, 25 Aug 2023 07:40:33 +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 243EA19465B1; Fri, 25 Aug 2023 07:40:33 +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 066E21946A78 for ; Fri, 25 Aug 2023 07:40:32 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id CBFF32026D76; Fri, 25 Aug 2023 07:40:31 +0000 (UTC) Received: from localhost.localdomain (unknown [10.43.2.56]) by smtp.corp.redhat.com (Postfix) with ESMTP id 726F32026D2B for ; Fri, 25 Aug 2023 07:40:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1692949327; 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=plwS6VAP19y6XHfUl4/xE8Yo0WLgqYI5/kCZWaWAeuQ=; b=A+y9yf8roZmWML84K+OdOri+uf5PUpTNVoUluU/3gIy12UFTFQxRhdHr0pGM7HnSxgWdiI gZ/O3kzTjCimG3JG1KdNJMspzDR2Vqv9NIi7runZdXWgvIwk1Y7lwv0NM1SxwPOzWYOpGO PBws14V0APOg8LFdLEoNAKWsdiOttDc= X-MC-Unique: ChFbetmEOFCbm7RkeBDkHw-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH 09/27] lxc: Move error messages onto a single line Date: Fri, 25 Aug 2023 09:40:06 +0200 Message-ID: <9bdefe1a6cf59553c8166e8b07e85e9bb4a9ad1c.1692949012.git.mprivozn@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 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: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 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: 1692949329223100007 Content-Type: text/plain; charset="utf-8"; x-default="true" Error messages are exempt from the 80 columns rule. Move them onto one line. Signed-off-by: Michal Privoznik Reviewed-by: Pavel Hrdina --- src/lxc/lxc_container.c | 3 +-- src/lxc/lxc_driver.c | 3 +-- src/lxc/lxc_native.c | 3 +-- src/lxc/lxc_process.c | 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/lxc/lxc_container.c b/src/lxc/lxc_container.c index 19d4f92728..21220661f7 100644 --- a/src/lxc/lxc_container.c +++ b/src/lxc/lxc_container.c @@ -2182,8 +2182,7 @@ int lxcContainerStart(virDomainDef *def, } else { if (lxcNeedNetworkNamespace(def)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Config asks for inherit net namespace " - "as well as private network interfaces")); + _("Config asks for inherit net namespace as wel= l as private network interfaces")); goto cleanup; } VIR_DEBUG("Inheriting a net namespace"); diff --git a/src/lxc/lxc_driver.c b/src/lxc/lxc_driver.c index f284798f1c..f3d3e4eb50 100644 --- a/src/lxc/lxc_driver.c +++ b/src/lxc/lxc_driver.c @@ -654,8 +654,7 @@ static int lxcDomainSetMemoryFlags(virDomainPtr dom, un= signed long newmem, if (flags & VIR_DOMAIN_MEM_MAXIMUM) { if (def) { virReportError(VIR_ERR_OPERATION_INVALID, "%s", - _("Cannot resize the max memory " - "on an active domain")); + _("Cannot resize the max memory on an active do= main")); goto endjob; } =20 diff --git a/src/lxc/lxc_native.c b/src/lxc/lxc_native.c index 0ae208ef11..5a63efc35f 100644 --- a/src/lxc/lxc_native.c +++ b/src/lxc/lxc_native.c @@ -1126,8 +1126,7 @@ lxcParseConfigString(const char *config, if (virConfGetValue(properties, "lxc.mount.fstab") || virConfGetValue(properties, "lxc.mount")) { virReportError(VIR_ERR_ARGUMENT_UNSUPPORTED, "%s", - _("lxc.mount.fstab or lxc.mount found, use " - "lxc.mount.entry lines instead")); + _("lxc.mount.fstab or lxc.mount found, use lxc.moun= t.entry lines instead")); return NULL; } =20 diff --git a/src/lxc/lxc_process.c b/src/lxc/lxc_process.c index 04642b56dd..20cd3a3d57 100644 --- a/src/lxc/lxc_process.c +++ b/src/lxc/lxc_process.c @@ -452,8 +452,7 @@ static int virLXCProcessSetupNamespaceNet(int ns_type, = const char *name) int fd; if (ns_type !=3D VIR_LXC_DOMAIN_NAMESPACE_SHARENET) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("'netns' namespace source can only be " - "used with sharenet")); + _("'netns' namespace source can only be used with s= harenet")); return -1; } =20 --=20 2.41.0 From nobody Sat May 18 15:38:13 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; 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=1692949255; cv=none; d=zohomail.com; s=zohoarc; b=Te0swKL8yJ4tjR7PVJgegADxBhEqd49/3kBvBAKFFFWoWYvKZK/usra6Yt5wLWxQLFFJwp4JgwUaCKIk9t+WARP5lqb5QfQ/PaqM22qGBrEmskmiFxzWH2S2LVKn9BIC1J9Vj501ddEHlET13kbbzE5rXKya8FYVBBcNYYtnxV4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1692949255; 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=DJ5GOuQV89itjO7FTaDL5uWnOZqMVPEgkPqFPAEejGM=; b=frcUIFp/nSALOMCww0BcoGkX3nGWjO7CR3/aPSeGUZGcCpp7l5hb7M7sbHDCU4MgTorQ3vH6Z8FsbaIzIu9ESnnvg3Y40qup4plrGSkbib95jJRJH9zxOU3whFxjZ72qs9Zx3AE3COwrdwUnOlJ9IuJkuXgZE/lK6LOYoGOxdIA= 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 1692949255141895.6333962040983; Fri, 25 Aug 2023 00:40:55 -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-287-NdkEaxa7OdKuLrHvC71NFQ-1; Fri, 25 Aug 2023 03:40:44 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 25BB4823D76; Fri, 25 Aug 2023 07:40:34 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0DE692166B26; Fri, 25 Aug 2023 07:40:34 +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 617F51946A43; Fri, 25 Aug 2023 07:40:33 +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 77C1E19465BB for ; Fri, 25 Aug 2023 07:40:32 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 6AF682027003; Fri, 25 Aug 2023 07:40:32 +0000 (UTC) Received: from localhost.localdomain (unknown [10.43.2.56]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0ECEB2026D76 for ; Fri, 25 Aug 2023 07:40:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1692949254; 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=DJ5GOuQV89itjO7FTaDL5uWnOZqMVPEgkPqFPAEejGM=; b=K8nFzWE4xzRBZ5RggKY+TLkRT/qkPPAqNz2qizGI5ZpYexPeQhYl/vgixk5r0tH5SAFCfe m2h+/R433KDdCZetlk3abd7jQyzZVTH7r0sG6LBmVKvEjZS8fckmZig7hv3Z5FhZCtrhR0 X4x4yZgXl3o0gaFCspBhXfuhKwFMbok= X-MC-Unique: NdkEaxa7OdKuLrHvC71NFQ-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH 10/27] network: Move error messages onto a single line Date: Fri, 25 Aug 2023 09:40:07 +0200 Message-ID: <51d6badf0bad58cb59affc71d852b78d743033cc.1692949012.git.mprivozn@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 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: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 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: 1692949256819100013 Content-Type: text/plain; charset="utf-8"; x-default="true" Error messages are exempt from the 80 columns rule. Move them onto one line. Signed-off-by: Michal Privoznik Reviewed-by: Pavel Hrdina --- src/network/bridge_driver.c | 14 ++++---------- src/network/bridge_driver_linux.c | 10 +--------- 2 files changed, 5 insertions(+), 19 deletions(-) diff --git a/src/network/bridge_driver.c b/src/network/bridge_driver.c index 9eb543a0a3..e1cdc83025 100644 --- a/src/network/bridge_driver.c +++ b/src/network/bridge_driver.c @@ -1302,8 +1302,7 @@ networkDnsmasqConfContents(virNetworkObj *obj, if (ipdef->nranges || ipdef->nhosts) { if (ipv4def) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("For IPv4, multiple DHCP definitions " - "cannot be specified.")); + _("For IPv4, multiple DHCP definitions = cannot be specified.")); return -1; } else { ipv4def =3D ipdef; @@ -1316,8 +1315,7 @@ networkDnsmasqConfContents(virNetworkObj *obj, if (ipdef->nranges || ipdef->nhosts) { if (ipv6def) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("For IPv6, multiple DHCP definitions " - "cannot be specified.")); + _("For IPv6, multiple DHCP definitions = cannot be specified.")); return -1; } else { ipv6def =3D ipdef; @@ -2869,9 +2867,7 @@ networkValidate(virNetworkDriverState *driver, if (ipdef->nranges || ipdef->nhosts) { if (ipv4def) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Multiple IPv4 dhcp sections found -- " - "dhcp is supported only for a " - "single IPv4 address on each network")); + _("Multiple IPv4 dhcp sections found -- dhc= p is supported only for a single IPv4 address on each network")); return -1; } else { ipv4def =3D true; @@ -2882,9 +2878,7 @@ networkValidate(virNetworkDriverState *driver, if (ipdef->nranges || ipdef->nhosts) { if (ipv6def) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Multiple IPv6 dhcp sections found -- " - "dhcp is supported only for a " - "single IPv6 address on each network")); + _("Multiple IPv6 dhcp sections found -- dhc= p is supported only for a single IPv6 address on each network")); return -1; } else { ipv6def =3D true; diff --git a/src/network/bridge_driver_linux.c b/src/network/bridge_driver_= linux.c index 1ef5b9d917..b8893bfed2 100644 --- a/src/network/bridge_driver_linux.c +++ b/src/network/bridge_driver_linux.c @@ -884,15 +884,7 @@ int networkAddFirewallRules(virNetworkDef *def) if (version >=3D 6000 && virFirewallDGetBackend() =3D=3D VIR_FIREWALLD_BACKEND_= NFTABLES) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("firewalld is set to use the nftables= " - "backend, but the required firewalld " - "'libvirt' zone is missing. Either se= t " - "the firewalld backend to 'iptables',= or " - "ensure that firewalld has a 'libvirt= ' " - "zone by upgrading firewalld to a " - "version supporting rule priorities " - "(0.7.0+) and/or rebuilding " - "libvirt with --with-firewalld-zone")= ); + _("firewalld is set to use the nftables= backend, but the required firewalld 'libvirt' zone is missing. Either set = the firewalld backend to 'iptables', or ensure that firewalld has a 'libvir= t' zone by upgrading firewalld to a version supporting rule priorities (0.7= .0+) and/or rebuilding libvirt with --with-firewalld-zone")); return -1; } } --=20 2.41.0 From nobody Sat May 18 15:38:13 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; 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=1692949335; cv=none; d=zohomail.com; s=zohoarc; b=K6U1t5mGSiiM2KmMdOOHVbX0riTsLxKZ8jkwkbLoTX+vsTAZx5K08eD/Gn+fSBwoSK78qXoRyGGPCvcGkxgO9237oOMUgdRp1LIVusTKDI96mSuM1YNMandnQubagxtrpw3QvEYyYCRVVW+Je1fFgI+RAxJVXjYDh8ODiQEHXqM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1692949335; 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=FAKGQmuwIG5xJ9lpvhgNjU2yzbCjG4xZKA/FY/5SQhc=; b=nWfVqbOQsGwoMxXoNBnLUoelNkLLOj2B1INvLpunLE2uFKlC8hGSIR/tPUWy0yygzX+Z/adqj7wkUebSviN8ox2vboylE+dLTDCAfmnDEfFuuCp9esvq+eX0rrZt4A17PocKjpW0O9IXcQBqX6XXm2CTToJxnhHtpUR5oZYZBv0= 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 1692949335251842.6144730726804; Fri, 25 Aug 2023 00:42:15 -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-66-rA7fNb4HOCCbeKrfSefWKw-1; Fri, 25 Aug 2023 03:40:50 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 989EF80558D; Fri, 25 Aug 2023 07:40:34 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 81601C16034; Fri, 25 Aug 2023 07:40:34 +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 5A70119465B1; Fri, 25 Aug 2023 07:40:34 +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 217D31946589 for ; Fri, 25 Aug 2023 07:40:33 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 03F282026DEF; Fri, 25 Aug 2023 07:40:33 +0000 (UTC) Received: from localhost.localdomain (unknown [10.43.2.56]) by smtp.corp.redhat.com (Postfix) with ESMTP id A091D2026D35 for ; Fri, 25 Aug 2023 07:40:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1692949334; 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=FAKGQmuwIG5xJ9lpvhgNjU2yzbCjG4xZKA/FY/5SQhc=; b=PLoylRVRwnkVhlPucvmh5KmQBo1UZDN3Ig/2ryZJzcpznxR9iYoY6R6+xXNq4wrnIK4GYc /p2+DOLG7oj8OYp8hya2jtRDiJEvoGagDnFJlLhyjneVlM2Z3NYWERkefPpihO188mH8+7 NEKpKcgxF29sNL17o7vG6IXlUnV8ESs= X-MC-Unique: rA7fNb4HOCCbeKrfSefWKw-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH 11/27] node_device: Move error messages onto a single line Date: Fri, 25 Aug 2023 09:40:08 +0200 Message-ID: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 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: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 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: 1692949335901100001 Content-Type: text/plain; charset="utf-8"; x-default="true" Error messages are exempt from the 80 columns rule. Move them onto one line. Signed-off-by: Michal Privoznik Reviewed-by: Pavel Hrdina --- src/node_device/node_device_udev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/node_device/node_device_udev.c b/src/node_device/node_devi= ce_udev.c index dfdef483cb..911325600e 100644 --- a/src/node_device/node_device_udev.c +++ b/src/node_device/node_device_udev.c @@ -1889,8 +1889,7 @@ udevEventHandleThread(void *opaque G_GNUC_UNUSED) if (errno !=3D EAGAIN && errno !=3D EWOULDBLOCK && errno !=3D = EINVAL) { VIR_WARNINGS_RESET virReportSystemError(errno, "%s", - _("failed to receive device from udev= " - "monitor")); + _("failed to receive device from udev= monitor")); return; } =20 --=20 2.41.0 From nobody Sat May 18 15:38:13 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=1692949261; cv=none; d=zohomail.com; s=zohoarc; b=gmNiYvJ+3V9/lBukafPul0Vhjt0zuBVCwC7VQFu+zyz/CzU3KSLwhN4QZGQWtvLKoxg5MiK5tF9K1WAFBhScQmQtxx9713UNgZsjOnbyLmOe21oOrI6dQJpG6FuuKIwB+5llgBmkOzhv9iIPTk846mjwyvyO1hOssYB24ZjvOy0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1692949261; 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=pD0p9SEP+ZjGI/Nd758ea3NIz72cFF7W5BIw5fB46H8=; b=iHMpNmurfRnFsHDTtKAm5HuwYMTIJm09x2L/O5rPvwCZri4aVEmB0qY0tvqZpCqvzhJsh7fJ7dp8fOnl4Cb0piG2LmDaHL2f+SzR47TKtQ8cnqge1NFmtq9rC4GZ3/Ro88d5uNlVGI8GcAm0hKIu9Nilvhi01qavA4NdXicY3HU= 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 1692949261292162.52509763307773; Fri, 25 Aug 2023 00:41:01 -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-588-UtN5fS-JONGjrYXSwEYXJw-1; Fri, 25 Aug 2023 03:40:48 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id B1BF9183B3C1; Fri, 25 Aug 2023 07:40:35 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9CEAF112131B; Fri, 25 Aug 2023 07:40:35 +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 9047819465A8; Fri, 25 Aug 2023 07:40: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 B2AC119465A8 for ; Fri, 25 Aug 2023 07:40:33 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 93F2D2026D68; Fri, 25 Aug 2023 07:40:33 +0000 (UTC) Received: from localhost.localdomain (unknown [10.43.2.56]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3AD8D2026D76 for ; Fri, 25 Aug 2023 07:40:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1692949260; 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=pD0p9SEP+ZjGI/Nd758ea3NIz72cFF7W5BIw5fB46H8=; b=Rae2KUZj0eu/H3in8Bn3zAFJy/mKjESfpQjox/rxwpmZ9WglEkAa/wIuV5excB6PRUFygq cVPz4SDDX67oprTxqFuRnnuPyIgVqYMmhvMpeZWLr2GL2jB56VxIK7xXbqyh9MLJac7i4V LF9MgueX+5TnqeZNgCZFNKPvZxftIpk= X-MC-Unique: UtN5fS-JONGjrYXSwEYXJw-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH 12/27] nwfilter: Move error messages onto a single line Date: Fri, 25 Aug 2023 09:40:09 +0200 Message-ID: <376c636fa9ffee4d5206e6225149f94cd4df8ebf.1692949012.git.mprivozn@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 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: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 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: 1692949263193100001 Content-Type: text/plain; charset="utf-8"; x-default="true" Error messages are exempt from the 80 columns rule. Move them onto one line. Signed-off-by: Michal Privoznik Reviewed-by: Pavel Hrdina --- src/nwfilter/nwfilter_dhcpsnoop.c | 12 ++++-------- src/nwfilter/nwfilter_learnipaddr.c | 8 ++------ 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/src/nwfilter/nwfilter_dhcpsnoop.c b/src/nwfilter/nwfilter_dhcp= snoop.c index 2f89923856..26072ec26e 100644 --- a/src/nwfilter/nwfilter_dhcpsnoop.c +++ b/src/nwfilter/nwfilter_dhcpsnoop.c @@ -1441,9 +1441,7 @@ virNWFilterDHCPSnoopReq(virNWFilterTechDriver *techdr= iver, /* check that all tools are available for applying the filters (late) = */ if (!techdriver->canApplyBasicRules()) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("IP parameter must be provided since " - "snooping the IP address does not work " - "possibly due to missing tools")); + _("IP parameter must be provided since snooping the= IP address does not work possibly due to missing tools")); goto exit_snoopreqput; } =20 @@ -1454,8 +1452,7 @@ virNWFilterDHCPSnoopReq(virNWFilterTechDriver *techdr= iver, &req->binding->mac, dhcpsrvrs, false) < 0) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("applyDHCPOnlyRules " - "failed - spoofing not protected!")); + _("applyDHCPOnlyRules failed - spoofing not protect= ed!")); goto exit_snoopreqput; } =20 @@ -1990,9 +1987,8 @@ virNWFilterDHCPSnoopReq(virNWFilterTechDriver *techdr= iver G_GNUC_UNUSED, virNWFilterDriverState *driver G_GNUC_UNUSED) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("libvirt was not compiled with libpcap and \"" - NWFILTER_VARNAME_CTRL_IP_LEARNING - "=3D'dhcp'\" requires it.")); + _("libvirt was not compiled with libpcap and \"%1$s\" r= equires it"), + NWFILTER_VARNAME_CTRL_IP_LEARNING "=3D'dhcp'"); return -1; } #endif /* WITH_LIBPCAP */ diff --git a/src/nwfilter/nwfilter_learnipaddr.c b/src/nwfilter/nwfilter_le= arnipaddr.c index 90e9a21a4e..73d8302c13 100644 --- a/src/nwfilter/nwfilter_learnipaddr.c +++ b/src/nwfilter/nwfilter_learnipaddr.c @@ -669,9 +669,7 @@ virNWFilterLearnIPAddress(virNWFilterTechDriver *techdr= iver, =20 if (!techdriver->canApplyBasicRules()) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("IP parameter must be provided since " - "snooping the IP address does not work " - "possibly due to missing tools")); + _("IP parameter must be provided since snooping the= IP address does not work possibly due to missing tools")); return -1; } =20 @@ -717,9 +715,7 @@ virNWFilterLearnIPAddress(virNWFilterTechDriver *techdr= iver G_GNUC_UNUSED, int howDetect G_GNUC_UNUSED) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("IP parameter must be given since libvirt " - "was not compiled with IP address learning " - "support")); + _("IP parameter must be given since libvirt was not com= piled with IP address learning support")); return -1; } #endif /* WITH_LIBPCAP */ --=20 2.41.0 From nobody Sat May 18 15:38:13 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; 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=1692949254; cv=none; d=zohomail.com; s=zohoarc; b=Jx1mL9qUVup2oTN05Jj8MnC0neoFFw6+Tqfjd8QBU09r0n6ch0XCKTtxHTvPS+pmLTnPynJTwAA8VJnW2aW9C0vSkSJc1PRCqA0xJkvJaVzd9SiLQOkmbSPTa0U2lIRFpAGubEOLPoZs/xO0kgj+E3JmbwL/RZ3brpohbGK2ivc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1692949254; 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=JiD1uOZjlKt/MKpwHKx6vO2zzsVHD5L7qIdNfIzPdEU=; b=SkD4aeZH3sx5q8XsJ0a/rcIo4K6XEQxfwkUGtXMKb7D4gLpbeCQ5DktBcR7DFbrmJAM7NdsfUiGRV3yHhsRXlexVF47tru17HfsX6EZ2cImqCyCRF9mBMRKKAwRXzm36wfIwUIDvAW2u47dUIhhtJCGQ6/2T+xF6Fr53IyjhkuA= 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 1692949254227770.5083895398643; Fri, 25 Aug 2023 00:40:54 -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-91-O815nv6mOEyRhts-3Hg1yA-1; Fri, 25 Aug 2023 03:40:51 -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 4C1E780559A; Fri, 25 Aug 2023 07:40:37 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3526D40D283C; Fri, 25 Aug 2023 07:40:37 +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 EA28819465B8; Fri, 25 Aug 2023 07:40:36 +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 48E2E1946589 for ; Fri, 25 Aug 2023 07:40:34 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 2E08D2026D76; Fri, 25 Aug 2023 07:40:34 +0000 (UTC) Received: from localhost.localdomain (unknown [10.43.2.56]) by smtp.corp.redhat.com (Postfix) with ESMTP id C9F312026D68 for ; Fri, 25 Aug 2023 07:40:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1692949253; 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=JiD1uOZjlKt/MKpwHKx6vO2zzsVHD5L7qIdNfIzPdEU=; b=VdtWMIc5+Sd5jcpEwfzPrdr4jHrCKqRzX/3NRgYokpmxX6+lwShpKRl8+d1TAUz312I8aK /NNV9Ui4DsIZLb1ECgI6V7ckQxJ9nGpPUWOHvuZoGDubsqnap1VqhodvRU2WQH+C9oPBnG AFT93LhfHEl+Ankfy4jPnt7YzFPGLhU= X-MC-Unique: O815nv6mOEyRhts-3Hg1yA-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH 13/27] openvz: Move error messages onto a single line Date: Fri, 25 Aug 2023 09:40:10 +0200 Message-ID: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 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: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 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: 1692949254875100005 Content-Type: text/plain; charset="utf-8"; x-default="true" Error messages are exempt from the 80 columns rule. Move them onto one line. Signed-off-by: Michal Privoznik Reviewed-by: Pavel Hrdina --- src/openvz/openvz_driver.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/openvz/openvz_driver.c b/src/openvz/openvz_driver.c index 69e4c9899b..1bd96dfb56 100644 --- a/src/openvz/openvz_driver.c +++ b/src/openvz/openvz_driver.c @@ -2033,8 +2033,7 @@ openvzDomainMigratePrepare3Params(virConnectPtr dconn, =20 if (STRPREFIX(my_hostname, "localhost")) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("hostname on destination resolved to localhos= t," - " but migration requires an FQDN")); + _("hostname on destination resolved to localhos= t, but migration requires an FQDN")); goto error; } =20 --=20 2.41.0 From nobody Sat May 18 15:38:13 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; 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=1692949253; cv=none; d=zohomail.com; s=zohoarc; b=TQUYjhQ+dpfAcit3g4p6+nIpQDt8/CB95xP8gIHp6lkpP+rykh35HLGHRBRjyiEGK7veDB2pX+VdiUsVtWcDeUuHMPhl4pqVA8F8ubA5j5cfrUtqarL3bdNWVl/yesj5iyeBrWVoWq0wzerU9v5O+aaKbW9kxF/RM1ipumPzbzQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1692949253; 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=mNdexJ4om+q7cEzhAbBZFY+FHzxUaiOJgfs2NMPHeOM=; b=mnzt/T0aPf3on4qm52NcdHH1g8Ts5lfwMFgPD7fseJo6tkXbkFaMHC5fFJFGUVJd3dlTVyr2vl9eEPEiUO4XLCFpBVouWVcpuVJqssnYFPuI/LDA314buTCZ7vaNf4q2imJwcopksZivZOru3n0RGvYgJzQHS6xFTGj98xaZE50= 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 1692949253608428.8103521160847; Fri, 25 Aug 2023 00:40:53 -0700 (PDT) Received: from mimecast-mx02.redhat.com (66.187.233.73 [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-475-dct8JyJ-PZmDBMJw_0LYSg-1; Fri, 25 Aug 2023 03:40:48 -0400 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 00EDF382C97B; Fri, 25 Aug 2023 07:40:36 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id D00D4492B0E; Fri, 25 Aug 2023 07:40:35 +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 C622C19465BC; Fri, 25 Aug 2023 07:40: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 11A0D1946589 for ; Fri, 25 Aug 2023 07:40:35 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 034BE2026D2B; Fri, 25 Aug 2023 07:40:35 +0000 (UTC) Received: from localhost.localdomain (unknown [10.43.2.56]) by smtp.corp.redhat.com (Postfix) with ESMTP id 66EC92026D76 for ; Fri, 25 Aug 2023 07:40:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1692949252; 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=mNdexJ4om+q7cEzhAbBZFY+FHzxUaiOJgfs2NMPHeOM=; b=YpG6Wg8VkH+KI6k8ZprbrFBDyjLq9C3Y1usfugK+uksVQDewhoefHh/KK6Ct2hWQU2NYqv lBEFJhuR+TaxYb4m5IOZIr3aYy6sH9gCeeGl0RqJkqCd1s0Yk3w+fdjn5QIej53X9By5xc 9FKJTJ42Y+CvLFrcUSqkSOJOJzAtuoY= X-MC-Unique: dct8JyJ-PZmDBMJw_0LYSg-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH 14/27] qemu: Move error messages onto a single line Date: Fri, 25 Aug 2023 09:40:11 +0200 Message-ID: <531a087db3776e7d0b51e34e806c6820130b68b0.1692949012.git.mprivozn@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 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: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 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: 1692949254972100007 Content-Type: text/plain; charset="utf-8"; x-default="true" Error messages are exempt from the 80 columns rule. Move them onto one line. Signed-off-by: Michal Privoznik Reviewed-by: Pavel Hrdina --- src/qemu/qemu_agent.c | 18 +-- src/qemu/qemu_capabilities.c | 45 +++---- src/qemu/qemu_command.c | 42 ++----- src/qemu/qemu_conf.c | 5 +- src/qemu/qemu_domain.c | 51 +++----- src/qemu/qemu_domain_address.c | 15 +-- src/qemu/qemu_driver.c | 120 ++++++------------ src/qemu/qemu_hostdev.c | 3 +- src/qemu/qemu_hotplug.c | 18 +-- src/qemu/qemu_migration.c | 48 +++---- src/qemu/qemu_migration_params.c | 6 +- src/qemu/qemu_monitor.c | 3 +- src/qemu/qemu_monitor_json.c | 102 +++++---------- src/qemu/qemu_process.c | 20 +-- src/qemu/qemu_snapshot.c | 27 ++-- src/qemu/qemu_tpm.c | 4 +- src/qemu/qemu_validate.c | 209 ++++++++++--------------------- 17 files changed, 243 insertions(+), 493 deletions(-) diff --git a/src/qemu/qemu_agent.c b/src/qemu/qemu_agent.c index 7fc412c17e..f9bcf38dfb 100644 --- a/src/qemu/qemu_agent.c +++ b/src/qemu/qemu_agent.c @@ -160,8 +160,7 @@ qemuAgentOpenUnix(const char *socketpath) =20 if (virSetCloseExec(agentfd) < 0) { virReportSystemError(errno, "%s", - _("Unable to set agent " - "close-on-exec flag")); + _("Unable to set agent close-on-exec flag")); goto error; } =20 @@ -757,8 +756,7 @@ static int qemuAgentSend(qemuAgent *agent, ret =3D -2; } else { virReportSystemError(errno, "%s", - _("Unable to wait on agent socket " - "condition")); + _("Unable to wait on agent socket con= dition")); } agent->inSync =3D false; goto cleanup; @@ -1344,8 +1342,7 @@ qemuAgentGetVCPUs(qemuAgent *agent, =20 if (!entry) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("array element missing in guest-get-vcpus ret= urn " - "value")); + _("array element missing in guest-get-vcpus ret= urn value")); return -1; } =20 @@ -1862,8 +1859,7 @@ qemuAgentGetFSInfo(qemuAgent *agent, =20 if (!(result =3D virJSONValueObjectGetString(entry, "mountpoint"))= ) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("'mountpoint' missing in reply of " - "guest-get-fsinfo")); + _("'mountpoint' missing in reply of guest-get-f= sinfo")); goto cleanup; } =20 @@ -2207,8 +2203,7 @@ qemuAgentGetUsers(qemuAgent *agent, =20 if (!entry) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("array element missing in guest-get-users ret= urn " - "value")); + _("array element missing in guest-get-users ret= urn value")); return -1; } =20 @@ -2522,8 +2517,7 @@ int qemuAgentGetDisks(qemuAgent *agent, =20 if (!entry) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("array element missing in guest-get-disks ret= urn " - "value")); + _("array element missing in guest-get-disks ret= urn value")); goto error; } =20 diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c index 05cc11218a..bdb20b47ba 100644 --- a/src/qemu/qemu_capabilities.c +++ b/src/qemu/qemu_capabilities.c @@ -3957,8 +3957,7 @@ virQEMUCapsLoadHostCPUModelInfo(virQEMUCapsAccel *cap= s, =20 if (!(hostCPU->name =3D virXMLPropString(hostCPUNode, "model"))) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("missing host CPU model name in QEMU " - "capabilities cache")); + _("missing host CPU model name in QEMU capabilities= cache")); return -1; } =20 @@ -3983,16 +3982,14 @@ virQEMUCapsLoadHostCPUModelInfo(virQEMUCapsAccel *c= aps, =20 if (!(prop->name =3D virXMLPropString(ctxt->node, "name"))) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("missing 'name' attribute for a host CPU" - " model property in QEMU capabilities cac= he")); + _("missing 'name' attribute for a host CPU = model property in QEMU capabilities cache")); return -1; } =20 if (!(type =3D virXMLPropString(ctxt->node, "type")) || (val =3D qemuMonitorCPUPropertyTypeFromString(type)) < 0) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("missing or invalid CPU model property ty= pe " - "in QEMU capabilities cache")); + _("missing or invalid CPU model property ty= pe in QEMU capabilities cache")); return -1; } =20 @@ -4109,8 +4106,7 @@ virQEMUCapsLoadCPUModels(virArch arch, for (j =3D 0; j < nblockers; j++) { if (!(cpu->blockers[j] =3D virXMLPropString(blockerNodes[j= ], "name"))) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("missing blocker name in QEMU " - "capabilities cache")); + _("missing blocker name in QEMU capabil= ities cache")); return -1; } =20 @@ -4254,8 +4250,7 @@ virQEMUCapsParseSEVInfo(virQEMUCaps *qemuCaps, xmlXPa= thContextPtr ctxt) =20 if (virXPathBoolean("boolean(./sev)", ctxt) =3D=3D 0) { virReportError(VIR_ERR_XML_ERROR, "%s", - _("missing SEV platform data in QEMU " - "capabilities cache")); + _("missing SEV platform data in QEMU capabilities c= ache")); return -1; } =20 @@ -4263,30 +4258,26 @@ virQEMUCapsParseSEVInfo(virQEMUCaps *qemuCaps, xmlX= PathContextPtr ctxt) =20 if (virXPathUInt("string(./sev/cbitpos)", ctxt, &sev->cbitpos) < 0) { virReportError(VIR_ERR_XML_ERROR, "%s", - _("missing or malformed SEV cbitpos information " - "in QEMU capabilities cache")); + _("missing or malformed SEV cbitpos information in = QEMU capabilities cache")); return -1; } =20 if (virXPathUInt("string(./sev/reducedPhysBits)", ctxt, &sev->reduced_phys_bits) < 0) { virReportError(VIR_ERR_XML_ERROR, "%s", - _("missing or malformed SEV reducedPhysBits informa= tion " - "in QEMU capabilities cache")); + _("missing or malformed SEV reducedPhysBits informa= tion in QEMU capabilities cache")); return -1; } =20 if (!(sev->pdh =3D virXPathString("string(./sev/pdh)", ctxt))) { virReportError(VIR_ERR_XML_ERROR, "%s", - _("missing SEV pdh information " - "in QEMU capabilities cache")); + _("missing SEV pdh information in QEMU capabilities= cache")); return -1; } =20 if (!(sev->cert_chain =3D virXPathString("string(./sev/certChain)", ct= xt))) { virReportError(VIR_ERR_XML_ERROR, "%s", - _("missing SEV certChain information " - "in QEMU capabilities cache")); + _("missing SEV certChain information in QEMU capabi= lities cache")); return -1; } =20 @@ -4507,28 +4498,24 @@ virQEMUCapsParseGIC(virQEMUCaps *qemuCaps, xmlXPath= ContextPtr ctxt) =20 if (!(version =3D virXMLPropString(nodes[i], "version"))) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("missing GIC version " - "in QEMU capabilities cache")); + _("missing GIC version in QEMU capabilities= cache")); return -1; } if (virStrToLong_ui(version, NULL, 10, &uintValue) < 0) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("malformed GIC version " - "in QEMU capabilities cache")); + _("malformed GIC version in QEMU capabiliti= es cache")); return -1; } cap->version =3D uintValue; =20 if (!(kernel =3D virXMLPropString(nodes[i], "kernel"))) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("missing in-kernel GIC information " - "in QEMU capabilities cache")); + _("missing in-kernel GIC information in QEM= U capabilities cache")); return -1; } if (!(boolValue =3D STREQ(kernel, "yes")) && STRNEQ(kernel, "n= o")) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("malformed in-kernel GIC information " - "in QEMU capabilities cache")); + _("malformed in-kernel GIC information in Q= EMU capabilities cache")); return -1; } if (boolValue) @@ -4536,14 +4523,12 @@ virQEMUCapsParseGIC(virQEMUCaps *qemuCaps, xmlXPath= ContextPtr ctxt) =20 if (!(emulated =3D virXMLPropString(nodes[i], "emulated"))) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("missing emulated GIC information " - "in QEMU capabilities cache")); + _("missing emulated GIC information in QEMU= capabilities cache")); return -1; } if (!(boolValue =3D STREQ(emulated, "yes")) && STRNEQ(emulated= , "no")) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("malformed emulated GIC information " - "in QEMU capabilities cache")); + _("malformed emulated GIC information in QE= MU capabilities cache")); return -1; } if (boolValue) diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index 6bcf2fdadd..4aa686bfd5 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -2910,8 +2910,7 @@ qemuBuildLegacyUSBControllerCommandLine(virCommand *c= md, =20 if (nlegacy > 1) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Multiple legacy USB controllers are " - "not supported")); + _("Multiple legacy USB controllers are not supporte= d")); return -1; } =20 @@ -3122,9 +3121,8 @@ qemuBuildMemoryGetDefaultPagesize(virQEMUDriverConfig= *cfg, virHugeTLBFS *p; =20 if (!cfg->nhugetlbfs) { - virReportError(VIR_ERR_INTERNAL_ERROR, - "%s", _("hugetlbfs filesystem is not mounted " - "or disabled by administrator config")); + virReportError(VIR_ERR_INTERNAL_ERROR, "%s", + _("hugetlbfs filesystem is not mounted or disabled = by administrator config")); return -1; } =20 @@ -3482,8 +3480,7 @@ qemuBuildMemoryBackendProps(virJSONValue **backendPro= ps, mem->source.nvdimm.pmem) { if (!virQEMUCapsGet(priv->qemuCaps, QEMU_CAPS_OBJECT_MEMORY_FILE_P= MEM)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("nvdimm pmem property is not available " - "with this QEMU binary")); + _("nvdimm pmem property is not available with t= his QEMU binary")); return -1; } if (virJSONValueObjectAdd(&props, "b:pmem", true, NULL) < 0) @@ -5747,8 +5744,7 @@ qemuBuildSmbiosCommandLine(virCommand *cmd, =20 if (source->nbaseBoard > 1) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("qemu does not support more than " - "one entry to Type 2 in SMBIOS table")); + _("qemu does not support more than one entry to= Type 2 in SMBIOS table")); return -1; } =20 @@ -6242,8 +6238,7 @@ qemuBuildGlobalControllerCommandLine(virCommand *cmd, =20 default: virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("64-bit PCI hole setting is only for root" - " PCI controllers")); + _("64-bit PCI hole setting is only for root= PCI controllers")); return -1; } =20 @@ -6782,8 +6777,7 @@ qemuAppendDomainFeaturesMachineParam(virBuffer *buf, case VIR_GIC_VERSION_HOST: if (!hasGICVersionOption) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("gic-version option is not available " - "with this QEMU binary")); + _("gic-version option is not available with= this QEMU binary")); return -1; } =20 @@ -8252,9 +8246,7 @@ qemuBuildGraphicsSPICECommandLine(virQEMUDriverConfig= *cfg, case VIR_DOMAIN_GRAPHICS_SPICE_CHANNEL_MODE_SECURE: if (!hasSecure) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("spice defaultMode secure requested in XML " - "configuration, but TLS connection is not " - "available")); + _("spice defaultMode secure requested in XML co= nfiguration, but TLS connection is not available")); return -1; } virBufferAddLit(&opt, "tls-channel=3Ddefault,"); @@ -8262,9 +8254,7 @@ qemuBuildGraphicsSPICECommandLine(virQEMUDriverConfig= *cfg, case VIR_DOMAIN_GRAPHICS_SPICE_CHANNEL_MODE_INSECURE: if (!hasInsecure) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("spice defaultMode insecure requested in XML " - "configuration, but plaintext connection is n= ot " - "available")); + _("spice defaultMode insecure requested in XML = configuration, but plaintext connection is not available")); return -1; } virBufferAddLit(&opt, "plaintext-channel=3Ddefault,"); @@ -8280,9 +8270,7 @@ qemuBuildGraphicsSPICECommandLine(virQEMUDriverConfig= *cfg, case VIR_DOMAIN_GRAPHICS_SPICE_CHANNEL_MODE_SECURE: if (!hasSecure) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("spice secure channels set in XML " - "configuration, but TLS connection is not= " - "available")); + _("spice secure channels set in XML configu= ration, but TLS connection is not available")); return -1; } virBufferAsprintf(&opt, "tls-channel=3D%s,", @@ -8292,9 +8280,7 @@ qemuBuildGraphicsSPICECommandLine(virQEMUDriverConfig= *cfg, case VIR_DOMAIN_GRAPHICS_SPICE_CHANNEL_MODE_INSECURE: if (!hasInsecure) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("spice insecure channels set in XML " - "configuration, but plaintext connection " - "is not available")); + _("spice insecure channels set in XML confi= guration, but plaintext connection is not available")); return -1; } virBufferAsprintf(&opt, "plaintext-channel=3D%s,", @@ -9030,8 +9016,7 @@ qemuBuildShmemCommandLine(virCommand *cmd, =20 if (shmem->info.type !=3D VIR_DOMAIN_DEVICE_ADDRESS_TYPE_PCI) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("only 'pci' addresses are supported for the " - "shared memory device")); + _("only 'pci' addresses are supported for the share= d memory device")); return -1; } =20 @@ -10027,8 +10012,7 @@ qemuBuildCommandLineValidate(virQEMUDriver *driver, =20 if (sdl > 1 || vnc > 1 || spice > 1 || egl_headless > 1 || dbus > 1) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("only 1 graphics device of each type " - "(sdl, vnc, spice, headless, dbus) is supported")= ); + _("only 1 graphics device of each type (sdl, vnc, s= pice, headless, dbus) is supported")); return -1; } =20 diff --git a/src/qemu/qemu_conf.c b/src/qemu/qemu_conf.c index 3f811d064f..94648026fb 100644 --- a/src/qemu/qemu_conf.c +++ b/src/qemu/qemu_conf.c @@ -1548,9 +1548,8 @@ qemuGetDomainHupageMemPath(virQEMUDriver *driver, size_t i =3D 0; =20 if (!cfg->nhugetlbfs) { - virReportError(VIR_ERR_INTERNAL_ERROR, - "%s", _("hugetlbfs filesystem is not mounted " - "or disabled by administrator config")); + virReportError(VIR_ERR_INTERNAL_ERROR, "%s", + _("hugetlbfs filesystem is not mounted or disabled = by administrator config")); return -1; } =20 diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c index 0b2b22a219..03c2aa1002 100644 --- a/src/qemu/qemu_domain.c +++ b/src/qemu/qemu_domain.c @@ -4591,8 +4591,7 @@ qemuDomainDefVcpusPostParse(virDomainDef *def) /* they can be ordered only at the beginning */ if (prevvcpu->hotpluggable =3D=3D VIR_TRISTATE_BOOL_YES) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("online non-hotpluggable vcpus need to be= " - "ordered prior to hotplugable vcpus")); + _("online non-hotpluggable vcpus need to be= ordered prior to hotplugable vcpus")); return -1; } =20 @@ -4600,8 +4599,7 @@ qemuDomainDefVcpusPostParse(virDomainDef *def) * Also note that multiple vcpus may share order on some platf= orms */ if (prevvcpu->order > vcpu->order) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("online non-hotpluggable vcpus must be or= dered " - "in ascending order")); + _("online non-hotpluggable vcpus must be or= dered in ascending order")); return -1; } } @@ -4644,8 +4642,7 @@ qemuDomainDefSetDefaultCPU(virDomainDef *def, =20 if (STREQ(model, "host") && def->virtType !=3D VIR_DOMAIN_VIRT_KVM) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("QEMU reports invalid default CPU model \"host\" " - "for non-kvm domain virt type")); + _("QEMU reports invalid default CPU model \"host\" = for non-kvm domain virt type")); return -1; } =20 @@ -5080,15 +5077,13 @@ qemuDomainValidateStorageSource(virStorageSource *s= rc, =20 if (src->format =3D=3D VIR_STORAGE_FILE_DIR) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("'directory' storage format is not directly suppo= rted by QEMU, " - "use 'dir' disk type instead")); + _("'directory' storage format is not directly suppo= rted by QEMU, use 'dir' disk type instead")); return -1; } =20 if (src->format =3D=3D VIR_STORAGE_FILE_ISO) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("storage format 'iso' is not directly supported b= y QEMU, " - "use 'raw' instead")); + _("storage format 'iso' is not directly supported b= y QEMU, use 'raw' instead")); return -1; } =20 @@ -5096,8 +5091,7 @@ qemuDomainValidateStorageSource(virStorageSource *src, actualType !=3D VIR_STORAGE_TYPE_VOLUME && actualType !=3D VIR_STORAGE_TYPE_DIR) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("storage format 'fat' is supported only with 'dir= ' " - "storage type")); + _("storage format 'fat' is supported only with 'dir= ' storage type")); return -1; } =20 @@ -5628,23 +5622,20 @@ qemuDomainControllerDefPostParse(virDomainControlle= rDef *cont, cont->model =3D=3D VIR_DOMAIN_CONTROLLER_MODEL_PCIE_ROOT) && cont->idx !=3D 0) { virReportError(VIR_ERR_XML_ERROR, "%s", - _("pci-root and pcie-root controllers " - "should have index 0")); + _("pci-root and pcie-root controllers should ha= ve index 0")); return -1; } =20 if (cont->model =3D=3D VIR_DOMAIN_CONTROLLER_MODEL_PCI_EXPANDER_BU= S && !qemuDomainIsI440FX(def)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("pci-expander-bus controllers are only suppor= ted " - "on 440fx-based machinetypes")); + _("pci-expander-bus controllers are only suppor= ted on 440fx-based machinetypes")); return -1; } if (cont->model =3D=3D VIR_DOMAIN_CONTROLLER_MODEL_PCIE_EXPANDER_B= US && !(qemuDomainIsQ35(def) || qemuDomainIsARMVirt(def))) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("pcie-expander-bus controllers are not suppor= ted " - "with this machine type")); + _("pcie-expander-bus controllers are not suppor= ted with this machine type")); return -1; } =20 @@ -6129,8 +6120,7 @@ qemuDomainNVDimmAlignSizePseries(virDomainMemoryDef *= mem) * smaller than the 256MiB alignment. */ if (guestArea < ppc64AlignSize) { virReportError(VIR_ERR_XML_ERROR, "%s", - _("minimum target size for the NVDIMM " - "must be 256MB plus the label size")); + _("minimum target size for the NVDIMM must be 256MB= plus the label size")); return -1; } =20 @@ -7868,8 +7858,7 @@ qemuDomainStorageSourceValidateDepth(virStorageSource= *src, diskdst); else virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s", - _("backing chains more than 200 layers deep are= not " - "supported")); + _("backing chains more than 200 layers deep are= not supported")); =20 return -1; } @@ -8785,8 +8774,7 @@ qemuDomainAgentAvailable(virDomainObj *vm, if (priv->agentError) { if (reportError) { virReportError(VIR_ERR_AGENT_UNRESPONSIVE, "%s", - _("QEMU guest agent is not " - "available due to an error")); + _("QEMU guest agent is not available due to an = error")); } return false; } @@ -9284,8 +9272,7 @@ qemuDomainDefValidateMemoryHotplugDevice(const virDom= ainMemoryDef *mem, if (mem->info.type !=3D VIR_DOMAIN_DEVICE_ADDRESS_TYPE_DIMM && mem->info.type !=3D VIR_DOMAIN_DEVICE_ADDRESS_TYPE_NONE) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("only 'dimm' addresses are supported for the " - "pc-dimm device")); + _("only 'dimm' addresses are supported for the = pc-dimm device")); return -1; } =20 @@ -9307,8 +9294,7 @@ qemuDomainDefValidateMemoryHotplugDevice(const virDom= ainMemoryDef *mem, if (mem->info.type !=3D VIR_DOMAIN_DEVICE_ADDRESS_TYPE_PCI && mem->info.type !=3D VIR_DOMAIN_DEVICE_ADDRESS_TYPE_NONE) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("only 'pci' addresses are supported for the " - "virtio-pmem device")); + _("only 'pci' addresses are supported for the v= irtio-pmem device")); return -1; } =20 @@ -9341,8 +9327,7 @@ qemuDomainDefValidateMemoryHotplugDevice(const virDom= ainMemoryDef *mem, virDomainNumaGetNodeCount(def->numa) !=3D 0) { if (mem->targetNode =3D=3D -1) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("target NUMA node needs to be specified for " - "memory device")); + _("target NUMA node needs to be specified for m= emory device")); return -1; } } @@ -9400,8 +9385,7 @@ qemuDomainDefValidateMemoryHotplug(const virDomainDef= *def, if (!virDomainDefHasMemoryHotplug(def)) { if (nmems) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("cannot use/hotplug a memory device when doma= in " - "'maxMemory' is not defined")); + _("cannot use/hotplug a memory device when doma= in 'maxMemory' is not defined")); return -1; } =20 @@ -9415,8 +9399,7 @@ qemuDomainDefValidateMemoryHotplug(const virDomainDef= *def, * with memory hotplug. */ if (virDomainNumaGetNodeCount(def->numa) =3D=3D 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("At least one numa node has to be configured = when " - "enabling memory hotplug")); + _("At least one numa node has to be configured = when enabling memory hotplug")); return -1; } } diff --git a/src/qemu/qemu_domain_address.c b/src/qemu/qemu_domain_address.c index 49c5e199fa..e26dc38f76 100644 --- a/src/qemu/qemu_domain_address.c +++ b/src/qemu/qemu_domain_address.c @@ -1633,8 +1633,7 @@ qemuDomainCollectPCIAddress(virDomainDef *def G_GNUC_= UNUSED, if (addrs->nbuses > 0 && !(addrs->buses[0].flags & VIR_PCI_CONNECT_TYPE_PCI_DEVICE)= ) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("Bus 0 must be PCI for integrated PIIX3 " - "USB or IDE controllers")); + _("Bus 0 must be PCI for integrated PIIX3 U= SB or IDE controllers")); return -1; } return 0; @@ -1809,8 +1808,7 @@ qemuDomainValidateDevicePCISlotsPIIX3(virDomainDef *d= ef, if (!virPCIDeviceAddressEqual(&cont->info.addr.pci, &primaryIDEAddr)) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("Primary IDE controller must have PCI= " - "address 0:0:1.1")); + _("Primary IDE controller must have PCI= address 0:0:1.1")); return -1; } } else { @@ -1825,8 +1823,7 @@ qemuDomainValidateDevicePCISlotsPIIX3(virDomainDef *d= ef, if (!virPCIDeviceAddressEqual(&cont->info.addr.pci, &piix3USBAddr)) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("PIIX3 USB controller at index 0 must= " - "have PCI address 0:0:1.2")); + _("PIIX3 USB controller at index 0 must= have PCI address 0:0:1.2")); return -1; } } else { @@ -1919,8 +1916,7 @@ qemuDomainValidateDevicePCISlotsQ35(virDomainDef *def, if (!virPCIDeviceAddressEqual(&cont->info.addr.pci, &primarySATAAddr)) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("Primary SATA controller must hav= e " - "PCI address 0:0:1f.2")); + _("Primary SATA controller must hav= e PCI address 0:0:1f.2")); return -1; } } else { @@ -3053,8 +3049,7 @@ qemuDomainUSBAddressAddHubs(virDomainDef *def) =20 if (data.count > 0 && !virDomainDefHasUSB(def)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("USB is disabled for this domain, but USB devices= " - "are present in the domain XML")); + _("USB is disabled for this domain, but USB devices= are present in the domain XML")); return -1; } =20 diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 5db42f0753..0d4da937b0 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -2198,8 +2198,7 @@ static int qemuDomainSetMemoryFlags(virDomainPtr dom,= unsigned long newmem, =20 if (def) { virReportError(VIR_ERR_OPERATION_INVALID, "%s", - _("cannot resize the maximum memory on an " - "active domain")); + _("cannot resize the maximum memory on an activ= e domain")); goto endjob; } =20 @@ -2208,16 +2207,14 @@ static int qemuDomainSetMemoryFlags(virDomainPtr do= m, unsigned long newmem, * is no way to change the individual node sizes with this API= */ if (virDomainNumaGetNodeCount(persistentDef->numa) > 0) { virReportError(VIR_ERR_OPERATION_INVALID, "%s", - _("initial memory size of a domain with NUM= A " - "nodes cannot be modified with this API")= ); + _("initial memory size of a domain with NUM= A nodes cannot be modified with this API")); goto endjob; } =20 if (persistentDef->mem.max_memory && persistentDef->mem.max_memory < newmem) { virReportError(VIR_ERR_OPERATION_INVALID, "%s", - _("cannot set initial memory size greater t= han " - "the maximum memory size")); + _("cannot set initial memory size greater t= han the maximum memory size")); goto endjob; } =20 @@ -2274,8 +2271,7 @@ static int qemuDomainSetMemoryFlags(virDomainPtr dom,= unsigned long newmem, /* Lack of balloon support is a fatal error */ if (r =3D=3D 0) { virReportError(VIR_ERR_OPERATION_INVALID, "%s", - _("Unable to change memory of active domain= without " - "the balloon device and guest OS balloon = driver")); + _("Unable to change memory of active domain= without the balloon device and guest OS balloon driver")); goto endjob; } } @@ -2341,8 +2337,7 @@ static int qemuDomainSetMemoryStatsPeriod(virDomainPt= r dom, int period, if (def) { if (!virDomainDefHasMemballoon(def)) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("No memory balloon device configured, " - "can not set the collection period")); + _("No memory balloon device configured, can not= set the collection period")); goto endjob; } =20 @@ -2362,8 +2357,7 @@ static int qemuDomainSetMemoryStatsPeriod(virDomainPt= r dom, int period, if (persistentDef) { if (!virDomainDefHasMemballoon(persistentDef)) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("No memory balloon device configured, " - "can not set the collection period")); + _("No memory balloon device configured, can not= set the collection period")); goto endjob; } persistentDef->memballoon->period =3D period; @@ -3141,8 +3135,7 @@ doCoreDump(virQEMUDriver *driver, } else { if (dumpformat !=3D VIR_DOMAIN_CORE_DUMP_FORMAT_RAW) { virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s", - _("kdump-compressed format is only supported wi= th " - "memory-only dump")); + _("kdump-compressed format is only supported wi= th memory-only dump")); goto cleanup; } =20 @@ -4166,8 +4159,7 @@ qemuDomainSetVcpusMax(virQEMUDriver *driver, =20 if (virDomainNumaGetCPUCountTotal(persistentDef->numa) > nvcpus) { virReportError(VIR_ERR_INVALID_ARG, "%s", - _("Number of CPUs in exceeds the desired " - "maximum vcpu count")); + _("Number of CPUs in exceeds the desired max= imum vcpu count")); return -1; } =20 @@ -4514,8 +4506,7 @@ qemuDomainPinEmulator(virDomainPtr dom, =20 if (virDomainCgroupSetupCpusetCpus(cgroup_emulator, pcpumap) <= 0) { virReportError(VIR_ERR_OPERATION_INVALID, "%s", - _("failed to set cpuset.cpus in cgroup" - " for emulator threads")); + _("failed to set cpuset.cpus in cgroup for = emulator threads")); goto endjob; } } @@ -4665,8 +4656,7 @@ qemuDomainGetVcpusFlags(virDomainPtr dom, unsigned in= t flags) =20 if (!virDomainObjIsActive(vm)) { virReportError(VIR_ERR_INVALID_ARG, "%s", - _("vCPU count provided by the guest agent can o= nly be " - "requested for live domains")); + _("vCPU count provided by the guest agent can o= nly be requested for live domains")); goto endjob; } =20 @@ -6539,14 +6529,12 @@ qemuDomainUndefineFlags(virDomainPtr dom, if (flags & VIR_DOMAIN_UNDEFINE_MANAGED_SAVE) { if (unlink(name) < 0) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("Failed to remove domain managed " - "save image")); + _("Failed to remove domain managed save ima= ge")); goto endjob; } } else { virReportError(VIR_ERR_OPERATION_INVALID, "%s", - _("Refusing to undefine while domain managed " - "save image exists")); + _("Refusing to undefine while domain managed sa= ve image exists")); goto endjob; } } @@ -10635,8 +10623,7 @@ qemuDomainMigratePrepare2(virConnectPtr dconn, * VIR_MIGRATE_TUNNELLED set */ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("Tunnelled migration requested but invalid " - "RPC method called")); + _("Tunnelled migration requested but invalid RPC me= thod called")); return -1; } =20 @@ -10865,8 +10852,7 @@ qemuDomainMigratePrepare3(virConnectPtr dconn, * VIR_MIGRATE_TUNNELLED set */ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("Tunnelled migration requested but invalid " - "RPC method called")); + _("Tunnelled migration requested but invalid RPC me= thod called")); return -1; } =20 @@ -10952,24 +10938,21 @@ qemuDomainMigratePrepare3Params(virConnectPtr dco= nn, nmigrate_disks > 0) { if (uri_in && STRPREFIX(uri_in, "unix:") && !nbdURI) { virReportError(VIR_ERR_INVALID_ARG, "%s", - _("NBD URI must be supplied when " - "migration URI uses UNIX transport method")); + _("NBD URI must be supplied when migration URI = uses UNIX transport method")); return -1; } } =20 if (nbdURI && nbdPort) { virReportError(VIR_ERR_INVALID_ARG, "%s", - _("Both port and URI requested for disk migration " - "while being mutually exclusive")); + _("Both port and URI requested for disk migration w= hile being mutually exclusive")); return -1; } =20 if (listenAddress) { if (uri_in && STRPREFIX(uri_in, "unix:")) { virReportError(VIR_ERR_INVALID_ARG, "%s", - _("Usage of listen-address is forbidden when " - "migration URI uses UNIX transport method")); + _("Usage of listen-address is forbidden when mi= gration URI uses UNIX transport method")); return -1; } } else { @@ -10981,8 +10964,7 @@ qemuDomainMigratePrepare3Params(virConnectPtr dconn, * VIR_MIGRATE_TUNNELLED set */ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("Tunnelled migration requested but invalid " - "RPC method called")); + _("Tunnelled migration requested but invalid RPC me= thod called")); return -1; } =20 @@ -11201,16 +11183,14 @@ qemuDomainMigratePerform3Params(virDomainPtr dom, =20 if (nbdURI && nbdPort) { virReportError(VIR_ERR_INVALID_ARG, "%s", - _("Both port and URI requested for disk migration " - "while being mutually exclusive")); + _("Both port and URI requested for disk migration w= hile being mutually exclusive")); goto cleanup; } =20 if (listenAddress) { if (uri && STRPREFIX(uri, "unix:")) { virReportError(VIR_ERR_INVALID_ARG, "%s", - _("Usage of listen-address is forbidden when " - "migration URI uses UNIX transport method")); + _("Usage of listen-address is forbidden when mi= gration URI uses UNIX transport method")); return -1; } } @@ -11226,8 +11206,7 @@ qemuDomainMigratePerform3Params(virDomainPtr dom, nmigrate_disks > 0) { if (uri && STRPREFIX(uri, "unix:") && !nbdURI) { virReportError(VIR_ERR_INVALID_ARG, "%s", - _("NBD URI must be supplied when " - "migration URI uses UNIX transport method")); + _("NBD URI must be supplied when migration URI = uses UNIX transport method")); return -1; } } @@ -11991,8 +11970,7 @@ qemuDomainGetJobStatsInternal(virDomainObj *vm, =20 if (vm->job->asyncJob =3D=3D VIR_ASYNC_JOB_MIGRATION_IN) { virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s", - _("migration statistics are available only on " - "the source host")); + _("migration statistics are available only on the source ho= st")); return -1; } =20 @@ -12192,14 +12170,12 @@ qemuDomainAbortJobFlags(virDomainPtr dom, =20 case VIR_ASYNC_JOB_MIGRATION_IN: virReportError(VIR_ERR_OPERATION_INVALID, "%s", - _("cannot abort incoming migration;" - " use virDomainDestroy instead")); + _("cannot abort incoming migration; use virDomainDe= stroy instead")); break; =20 case VIR_ASYNC_JOB_START: virReportError(VIR_ERR_OPERATION_INVALID, "%s", - _("cannot abort VM start;" - " use virDomainDestroy instead")); + _("cannot abort VM start; use virDomainDestroy inst= ead")); break; =20 case VIR_ASYNC_JOB_MIGRATION_OUT: @@ -12337,8 +12313,7 @@ qemuDomainMigrateGetMaxDowntime(virDomainPtr dom, =20 if (rc =3D=3D 1) { virReportError(VIR_ERR_OPERATION_INVALID, "%s", - _("Querying migration downtime is not supported by " - "QEMU binary")); + _("Querying migration downtime is not supported by = QEMU binary")); goto endjob; } =20 @@ -12378,8 +12353,7 @@ qemuDomainMigrateGetCompressionCache(virDomainPtr d= om, =20 if (!qemuMigrationCapsGet(vm, QEMU_MIGRATION_CAP_XBZRLE)) { virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s", - _("Compressed migration is not supported by " - "QEMU binary")); + _("Compressed migration is not supported by QEMU bi= nary")); goto endjob; } =20 @@ -12427,8 +12401,7 @@ qemuDomainMigrateSetCompressionCache(virDomainPtr d= om, =20 if (!qemuMigrationCapsGet(vm, QEMU_MIGRATION_CAP_XBZRLE)) { virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s", - _("Compressed migration is not supported by " - "QEMU binary")); + _("Compressed migration is not supported by QEMU bi= nary")); goto endjob; } =20 @@ -12559,8 +12532,7 @@ qemuDomainMigrationGetPostcopyBandwidth(virDomainOb= j *vm, =20 if (rc =3D=3D 1) { virReportError(VIR_ERR_OPERATION_INVALID, "%s", - _("querying maximum post-copy migration speed is " - "not supported by QEMU binary")); + _("querying maximum post-copy migration speed is no= t supported by QEMU binary")); goto cleanup; } =20 @@ -12644,15 +12616,13 @@ qemuDomainMigrateStartPostCopy(virDomainPtr dom, =20 if (vm->job->asyncJob !=3D VIR_ASYNC_JOB_MIGRATION_OUT) { virReportError(VIR_ERR_OPERATION_INVALID, "%s", - _("post-copy can only be started while " - "outgoing migration is in progress")); + _("post-copy can only be started while outgoing mig= ration is in progress")); goto endjob; } =20 if (!(vm->job->apiFlags & VIR_MIGRATE_POSTCOPY)) { virReportError(VIR_ERR_OPERATION_INVALID, "%s", - _("switching to post-copy requires migration to be " - "started with VIR_MIGRATE_POSTCOPY flag")); + _("switching to post-copy requires migration to be = started with VIR_MIGRATE_POSTCOPY flag")); goto endjob; } =20 @@ -13584,8 +13554,7 @@ qemuDomainBlockPullCommon(virDomainObj *vm, =20 if (flags & VIR_DOMAIN_BLOCK_REBASE_RELATIVE && !base) { virReportError(VIR_ERR_INVALID_ARG, "%s", - _("flag VIR_DOMAIN_BLOCK_REBASE_RELATIVE is valid o= nly " - "with non-null base")); + _("flag VIR_DOMAIN_BLOCK_REBASE_RELATIVE is valid o= nly with non-null base")); goto cleanup; } =20 @@ -13972,8 +13941,7 @@ qemuDomainBlockCopyValidateMirror(virStorageSource = *mirror, if (virStorageSourceAccess(mirror, F_OK) < 0) { if (errno !=3D ENOENT) { virReportSystemError(errno, "%s", - _("unable to verify existence of " - "block copy target")); + _("unable to verify existence of block co= py target")); return -1; } =20 @@ -14211,8 +14179,7 @@ qemuDomainBlockCopyCommon(virDomainObj *vm, if (disk->src->shared && !disk->src->readonly && !qemuBlockStorageSourceSupportsConcurrentAccess(mirror)) { virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s", - _("can't pivot a shared disk to a storage volume no= t " - "supporting sharing")); + _("can't pivot a shared disk to a storage volume no= t supporting sharing")); goto endjob; } =20 @@ -14919,8 +14886,7 @@ qemuDomainCheckBlockIoTuneReset(virDomainDiskDef *d= isk, if (newiotune->group_name && STRNEQ_NULLABLE(newiotune->group_name, disk->blkdeviotune.group_na= me)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("creating a new group/updating existing with all" - " tune parameters zero is not supported")); + _("creating a new group/updating existing with all = tune parameters zero is not supported")); return -1; } =20 @@ -15099,32 +15065,28 @@ qemuDomainSetBlockIoTune(virDomainPtr dom, if ((info.total_bytes_sec && info.read_bytes_sec) || (info.total_bytes_sec && info.write_bytes_sec)) { virReportError(VIR_ERR_INVALID_ARG, "%s", - _("total and read/write of bytes_sec " - "cannot be set at the same time")); + _("total and read/write of bytes_sec cannot be set = at the same time")); goto endjob; } =20 if ((info.total_iops_sec && info.read_iops_sec) || (info.total_iops_sec && info.write_iops_sec)) { virReportError(VIR_ERR_INVALID_ARG, "%s", - _("total and read/write of iops_sec " - "cannot be set at the same time")); + _("total and read/write of iops_sec cannot be set a= t the same time")); goto endjob; } =20 if ((info.total_bytes_sec_max && info.read_bytes_sec_max) || (info.total_bytes_sec_max && info.write_bytes_sec_max)) { virReportError(VIR_ERR_INVALID_ARG, "%s", - _("total and read/write of bytes_sec_max " - "cannot be set at the same time")); + _("total and read/write of bytes_sec_max cannot be = set at the same time")); goto endjob; } =20 if ((info.total_iops_sec_max && info.read_iops_sec_max) || (info.total_iops_sec_max && info.write_iops_sec_max)) { virReportError(VIR_ERR_INVALID_ARG, "%s", - _("total and read/write of iops_sec_max " - "cannot be set at the same time")); + _("total and read/write of iops_sec_max cannot be s= et at the same time")); goto endjob; } =20 @@ -15916,8 +15878,7 @@ qemuDomainFSTrim(virDomainPtr dom, =20 if (mountPoint) { virReportError(VIR_ERR_ARGUMENT_UNSUPPORTED, "%s", - _("Specifying mount point " - "is not supported for now")); + _("Specifying mount point is not supported for now"= )); return -1; } =20 @@ -16322,8 +16283,7 @@ qemuDomainSetTime(virDomainPtr dom, !virQEMUCapsGet(priv->qemuCaps, QEMU_CAPS_RTC_RESET_REINJECTION)) { virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s", - _("cannot set time: qemu doesn't support " - "rtc-reset-reinjection command")); + _("cannot set time: qemu doesn't support rtc-reset-= reinjection command")); goto cleanup; } =20 diff --git a/src/qemu/qemu_hostdev.c b/src/qemu/qemu_hostdev.c index f329442f8c..4992c23ee0 100644 --- a/src/qemu/qemu_hostdev.c +++ b/src/qemu/qemu_hostdev.c @@ -245,8 +245,7 @@ qemuHostdevPrepareMediatedDevices(virQEMUDriver *driver, if (virHostdevIsMdevDevice(hostdevs[i])) { if (!supportsVFIO) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Mediated host device assignment requires= " - "VFIO support")); + _("Mediated host device assignment requires= VFIO support")); return -1; } break; diff --git a/src/qemu/qemu_hotplug.c b/src/qemu/qemu_hotplug.c index d7d1db8ecc..5a25f81d7a 100644 --- a/src/qemu/qemu_hotplug.c +++ b/src/qemu/qemu_hotplug.c @@ -6363,8 +6363,7 @@ qemuDomainHotplugDelVcpu(virQEMUDriver *driver, if ((rc =3D qemuDomainWaitForDeviceRemoval(vm)) <=3D 0) { if (rc =3D=3D 0) virReportError(VIR_ERR_OPERATION_TIMEOUT, "%s", - _("vcpu unplug request timed out. Unplug result= " - "must be manually inspected in the domain")); + _("vcpu unplug request timed out. Unplug result= must be manually inspected in the domain")); =20 goto cleanup; } @@ -6502,8 +6501,7 @@ qemuDomainSelectHotplugVcpuEntities(virDomainDef *def, =20 if (curvcpus > nvcpus) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("target vm vcpu granularity does not allo= w the " - "desired vcpu count")); + _("target vm vcpu granularity does not allo= w the desired vcpu count")); return NULL; } =20 @@ -6529,8 +6527,7 @@ qemuDomainSelectHotplugVcpuEntities(virDomainDef *def, =20 if (curvcpus < nvcpus) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("target vm vcpu granularity does not allo= w the " - "desired vcpu count")); + _("target vm vcpu granularity does not allo= w the desired vcpu count")); return NULL; } =20 @@ -6540,8 +6537,7 @@ qemuDomainSelectHotplugVcpuEntities(virDomainDef *def, =20 if (curvcpus !=3D nvcpus) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("failed to find appropriate hotpluggable vcpus to= " - "reach the desired target vcpu count")); + _("failed to find appropriate hotpluggable vcpus to= reach the desired target vcpu count")); return NULL; } =20 @@ -6848,8 +6844,7 @@ qemuDomainSetVcpuInternal(virQEMUDriver *driver, if (def) { if (!qemuDomainSupportsNewVcpuHotplug(vm)) { virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s", - _("this qemu version does not support specific " - "vCPU hotplug")); + _("this qemu version does not support specific = vCPU hotplug")); return -1; } =20 @@ -6935,8 +6930,7 @@ qemuDomainChangeDiskLive(virDomainObj *vm, if (disk->device !=3D VIR_DOMAIN_DISK_DEVICE_CDROM && disk->device !=3D VIR_DOMAIN_DISK_DEVICE_FLOPPY) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("disk source can be changed only in removable= " - "drives")); + _("disk source can be changed only in removable= drives")); return -1; } =20 diff --git a/src/qemu/qemu_migration.c b/src/qemu/qemu_migration.c index 9b490a130d..b209e18dff 100644 --- a/src/qemu/qemu_migration.c +++ b/src/qemu/qemu_migration.c @@ -476,8 +476,7 @@ qemuMigrationDstPrecreateStorage(virDomainObj *vm, =20 if (incremental) { virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s", - _("pre-creation of storage targets for incremen= tal " - "storage migration is not supported")); + _("pre-creation of storage targets for incremen= tal storage migration is not supported")); goto cleanup; } =20 @@ -1479,8 +1478,7 @@ qemuMigrationSrcIsAllowed(virDomainObj *vm, =20 if (block) { virReportError(VIR_ERR_OPERATION_INVALID, "%s", - _("domain has 'invtsc' CPU feature but " - "TSC frequency is not specified")); + _("domain has 'invtsc' CPU feature but = TSC frequency is not specified")); return false; } } @@ -1493,8 +1491,7 @@ qemuMigrationSrcIsAllowed(virDomainObj *vm, if (mem->model =3D=3D VIR_DOMAIN_MEMORY_MODEL_DIMM && mem->info.type !=3D VIR_DOMAIN_DEVICE_ADDRESS_TYPE_DIMM) { virReportError(VIR_ERR_OPERATION_INVALID, "%s", - _("domain's dimm info lacks slot ID " - "or base address")); + _("domain's dimm info lacks slot ID or base= address")); =20 return false; } @@ -1648,8 +1645,7 @@ qemuMigrationSrcIsSafe(virDomainDef *def, } =20 virReportError(VIR_ERR_MIGRATE_UNSAFE, "%s", - _("Migration may lead to data corruption if disks" - " use cache other than none or directsync")); + _("Migration may lead to data corruption if disks u= se cache other than none or directsync")); return false; } =20 @@ -2205,8 +2201,7 @@ qemuMigrationDstCheckProtocol(virQEMUCaps *qemuCaps, if (STRPREFIX(migrateFrom, "rdma")) { if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_MIGRATE_RDMA)) { virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s", - _("incoming RDMA migration is not supported " - "with this QEMU binary")); + _("incoming RDMA migration is not supported wit= h this QEMU binary")); return -1; } } else if (!STRPREFIX(migrateFrom, "tcp") && @@ -2572,8 +2567,7 @@ qemuMigrationSrcBeginPhase(virQEMUDriver *driver, (!(flags & VIR_MIGRATE_LIVE) || flags & VIR_MIGRATE_PAUSED)) { virReportError(VIR_ERR_ARGUMENT_UNSUPPORTED, "%s", - _("post-copy migration is not supported with non-li= ve " - "or paused migration")); + _("post-copy migration is not supported with non-li= ve or paused migration")); return NULL; } =20 @@ -3733,8 +3727,7 @@ qemuMigrationDstPrepareDirect(virQEMUDriver *driver, =20 if (STRPREFIX(hostname, "localhost")) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("hostname on destination resolved to localhos= t," - " but migration requires an FQDN")); + _("hostname on destination resolved to localhos= t, but migration requires an FQDN")); goto cleanup; } =20 @@ -4600,8 +4593,7 @@ qemuMigrationSrcStart(virDomainObj *vm, if (spec->fwdType !=3D MIGRATION_FWD_DIRECT) { if (!tunnelFd) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("tunnelFD argument is required for tunnel= led " - "migration")); + _("tunnelFD argument is required for tunnel= led migration")); VIR_FORCE_CLOSE(spec->dest.fd.local); VIR_FORCE_CLOSE(spec->dest.fd.qemu); return -1; @@ -5149,14 +5141,12 @@ qemuMigrationSrcPerformNative(virQEMUDriver *driver, if (STREQ(uribits->scheme, "rdma")) { if (!virQEMUCapsGet(priv->qemuCaps, QEMU_CAPS_MIGRATE_RDMA)) { virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s", - _("outgoing RDMA migration is not supported " - "with this QEMU binary")); + _("outgoing RDMA migration is not supported wit= h this QEMU binary")); return -1; } if (!virMemoryLimitIsSet(vm->def->mem.hard_limit)) { virReportError(VIR_ERR_OPERATION_INVALID, "%s", - _("cannot start RDMA migration with no memory h= ard " - "limit set")); + _("cannot start RDMA migration with no memory h= ard limit set")); return -1; } } @@ -5166,8 +5156,7 @@ qemuMigrationSrcPerformNative(virQEMUDriver *driver, !(flags & VIR_MIGRATE_POSTCOPY_RESUME) && !qemuMigrationParamsTLSHostnameIsSet(migParams)) { virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s", - _("Explicit destination hostname is required " - "for TLS migration over UNIX socket")); + _("Explicit destination hostname is required fo= r TLS migration over UNIX socket")); return -1; } =20 @@ -5878,22 +5867,19 @@ qemuMigrationSrcPerformPeer2Peer(virQEMUDriver *dri= ver, =20 if (flags & VIR_MIGRATE_TUNNELLED && uri) { virReportError(VIR_ERR_ARGUMENT_UNSUPPORTED, "%s", - _("migration URI is not supported by tunnelled " - "migration")); + _("migration URI is not supported by tunnelled migr= ation")); goto cleanup; } =20 if (flags & VIR_MIGRATE_TUNNELLED && listenAddress) { virReportError(VIR_ERR_ARGUMENT_UNSUPPORTED, "%s", - _("listen address is not supported by tunnelled " - "migration")); + _("listen address is not supported by tunnelled mig= ration")); goto cleanup; } =20 if (flags & VIR_MIGRATE_TUNNELLED && nbdPort) { virReportError(VIR_ERR_ARGUMENT_UNSUPPORTED, "%s", - _("disk port address is not supported by tunnelled " - "migration")); + _("disk port address is not supported by tunnelled = migration")); goto cleanup; } =20 @@ -5956,15 +5942,13 @@ qemuMigrationSrcPerformPeer2Peer(virQEMUDriver *dri= ver, * old-style APIs. */ if (!useParams && (graphicsuri || listenAddress || nmigrate_disks)) { virReportError(VIR_ERR_ARGUMENT_UNSUPPORTED, "%s", - _("Migration APIs with extensible parameters are no= t " - "supported but extended parameters were passed")); + _("Migration APIs with extensible parameters are no= t supported but extended parameters were passed")); goto cleanup; } =20 if (offline && !dstOffline) { virReportError(VIR_ERR_ARGUMENT_UNSUPPORTED, "%s", - _("offline migration is not supported by " - "the destination host")); + _("offline migration is not supported by the destin= ation host")); goto cleanup; } =20 diff --git a/src/qemu/qemu_migration_params.c b/src/qemu/qemu_migration_par= ams.c index 807cccd86e..79fe6e97c8 100644 --- a/src/qemu/qemu_migration_params.c +++ b/src/qemu/qemu_migration_params.c @@ -1006,8 +1006,7 @@ qemuMigrationParamsApply(virDomainObj *vm, if (asyncJob =3D=3D VIR_ASYNC_JOB_NONE) { if (!virBitmapIsAllClear(migParams->caps)) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("Migration capabilities can only be set b= y " - "a migration job")); + _("Migration capabilities can only be set b= y a migration job")); goto cleanup; } } else if (qemuMigrationParamsApplyCaps(vm, migParams->caps) < 0) { @@ -1091,8 +1090,7 @@ qemuMigrationParamsEnableTLS(virQEMUDriver *driver, =20 if (!jobPriv->migParams->params[QEMU_MIGRATION_PARAM_TLS_CREDS].set) { virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s", - _("TLS migration is not supported with this " - "QEMU binary")); + _("TLS migration is not supported with this QEMU bi= nary")); return -1; } =20 diff --git a/src/qemu/qemu_monitor.c b/src/qemu/qemu_monitor.c index 02da1d6dfc..7053539c7d 100644 --- a/src/qemu/qemu_monitor.c +++ b/src/qemu/qemu_monitor.c @@ -976,8 +976,7 @@ qemuMonitorInitBalloonObjectPath(qemuMonitor *mon, =20 /* If we get here, we found the path, but not the property */ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("Property 'guest-stats-polling-interval' " - "not found on memory balloon driver.")); + _("Property 'guest-stats-polling-interval' not found on= memory balloon driver.")); =20 cleanup: for (i =3D 0; i < nprops; i++) diff --git a/src/qemu/qemu_monitor_json.c b/src/qemu/qemu_monitor_json.c index 34c4b543e8..5b9edadcf7 100644 --- a/src/qemu/qemu_monitor_json.c +++ b/src/qemu/qemu_monitor_json.c @@ -2253,8 +2253,7 @@ qemuMonitorJSONBlockStatsCollectData(virJSONValue *de= v, =20 if ((stats =3D virJSONValueObjectGetObject(dev, "stats")) =3D=3D NULL)= { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("blockstats stats entry was not " - "in expected format")); + _("blockstats stats entry was not in expected forma= t")); return NULL; } =20 @@ -2425,8 +2424,7 @@ qemuMonitorJSONGetAllBlockStatsInfo(qemuMonitor *mon, =20 if (!dev || virJSONValueGetType(dev) !=3D VIR_JSON_TYPE_OBJECT) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("blockstats device entry was not " - "in expected format")); + _("blockstats device entry was not in expected = format")); return -1; } =20 @@ -3025,8 +3023,7 @@ qemuMonitorJSONGetMigrationStatsReply(virJSONValue *r= eply, &stats->disk_transferred= ); if (rc < 0) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("disk migration was active, but " - "'transferred' data was missing")); + _("disk migration was active, but 'transfer= red' data was missing")); return -1; } =20 @@ -3034,8 +3031,7 @@ qemuMonitorJSONGetMigrationStatsReply(virJSONValue *r= eply, &stats->disk_remaining); if (rc < 0) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("disk migration was active, but 'remainin= g' " - "data was missing")); + _("disk migration was active, but 'remainin= g' data was missing")); return -1; } =20 @@ -3043,8 +3039,7 @@ qemuMonitorJSONGetMigrationStatsReply(virJSONValue *r= eply, &stats->disk_total); if (rc < 0) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("disk migration was active, but 'total' " - "data was missing")); + _("disk migration was active, but 'total' d= ata was missing")); return -1; } =20 @@ -3062,8 +3057,7 @@ qemuMonitorJSONGetMigrationStatsReply(virJSONValue *r= eply, &stats->xbzrle_cache_siz= e); if (rc < 0) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("XBZRLE is active, but 'cache-size' data " - "was missing")); + _("XBZRLE is active, but 'cache-size' data = was missing")); return -1; } =20 @@ -3071,8 +3065,7 @@ qemuMonitorJSONGetMigrationStatsReply(virJSONValue *r= eply, &stats->xbzrle_bytes); if (rc < 0) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("XBZRLE is active, but 'bytes' data " - "was missing")); + _("XBZRLE is active, but 'bytes' data was m= issing")); return -1; } =20 @@ -3080,8 +3073,7 @@ qemuMonitorJSONGetMigrationStatsReply(virJSONValue *r= eply, &stats->xbzrle_pages); if (rc < 0) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("XBZRLE is active, but 'pages' data " - "was missing")); + _("XBZRLE is active, but 'pages' data was m= issing")); return -1; } =20 @@ -3089,8 +3081,7 @@ qemuMonitorJSONGetMigrationStatsReply(virJSONValue *r= eply, &stats->xbzrle_cache_mis= s); if (rc < 0) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("XBZRLE is active, but 'cache-miss' data " - "was missing")); + _("XBZRLE is active, but 'cache-miss' data = was missing")); return -1; } =20 @@ -3098,8 +3089,7 @@ qemuMonitorJSONGetMigrationStatsReply(virJSONValue *r= eply, &stats->xbzrle_overflow); if (rc < 0) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("XBZRLE is active, but 'overflow' data " - "was missing")); + _("XBZRLE is active, but 'overflow' data wa= s missing")); return -1; } } @@ -3619,30 +3609,26 @@ qemuMonitorJSONQueryRxFilterParse(virJSONValue *msg, =20 if (!(tmp =3D virJSONValueObjectGetString(entry, "name"))) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("Missing or invalid name " - "in query-rx-filter response")); + _("Missing or invalid name in query-rx-filter respo= nse")); return -1; } fil->name =3D g_strdup(tmp); if ((!(tmp =3D virJSONValueObjectGetString(entry, "main-mac"))) || virMacAddrParse(tmp, &fil->mac) < 0) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("Missing or invalid 'main-mac' " - "in query-rx-filter response")); + _("Missing or invalid 'main-mac' in query-rx-filter= response")); return -1; } if (virJSONValueObjectGetBoolean(entry, "promiscuous", &fil->promiscuous) < 0) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("Missing or invalid 'promiscuous' " - "in query-rx-filter response")); + _("Missing or invalid 'promiscuous' in query-rx-fil= ter response")); return -1; } if (virJSONValueObjectGetBoolean(entry, "broadcast-allowed", &fil->broadcastAllowed) < 0) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("Missing or invalid 'broadcast-allowed' " - "in query-rx-filter response")); + _("Missing or invalid 'broadcast-allowed' in query-= rx-filter response")); return -1; } =20 @@ -3650,15 +3636,13 @@ qemuMonitorJSONQueryRxFilterParse(virJSONValue *msg, ((fil->unicast.mode =3D virNetDevRxFilterModeTypeFromString(tmp)) < 0)) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("Missing or invalid 'unicast' " - "in query-rx-filter response")); + _("Missing or invalid 'unicast' in query-rx-filter = response")); return -1; } if (virJSONValueObjectGetBoolean(entry, "unicast-overflow", &fil->unicast.overflow) < 0) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("Missing or invalid 'unicast-overflow' " - "in query-rx-filter response")); + _("Missing or invalid 'unicast-overflow' in query-r= x-filter response")); return -1; } if ((!(table =3D virJSONValueObjectGetArray(entry, "unicast-table"))))= { @@ -3689,15 +3673,13 @@ qemuMonitorJSONQueryRxFilterParse(virJSONValue *msg, ((fil->multicast.mode =3D virNetDevRxFilterModeTypeFromString(tmp)) < 0)) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("Missing or invalid 'multicast' " - "in query-rx-filter response")); + _("Missing or invalid 'multicast' in query-rx-filte= r response")); return -1; } if (virJSONValueObjectGetBoolean(entry, "multicast-overflow", &fil->multicast.overflow) < 0) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("Missing or invalid 'multicast-overflow' " - "in query-rx-filter response")); + _("Missing or invalid 'multicast-overflow' in query= -rx-filter response")); return -1; } if ((!(table =3D virJSONValueObjectGetArray(entry, "multicast-table"))= )) { @@ -3728,8 +3710,7 @@ qemuMonitorJSONQueryRxFilterParse(virJSONValue *msg, ((fil->vlan.mode =3D virNetDevRxFilterModeTypeFromString(tmp)) < 0)) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("Missing or invalid 'vlan' " - "in query-rx-filter response")); + _("Missing or invalid 'vlan' in query-rx-filter res= ponse")); return -1; } if ((!(table =3D virJSONValueObjectGetArray(entry, "vlan-table")))) { @@ -4528,8 +4509,7 @@ qemuMonitorJSONBlockIoThrottleInfo(virJSONValue *io_t= hrottle, =20 if (!temp_dev || virJSONValueGetType(temp_dev) !=3D VIR_JSON_TYPE_= OBJECT) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("block_io_throttle device entry " - "was not in expected format")); + _("block_io_throttle device entry was not in ex= pected format")); return -1; } =20 @@ -4538,8 +4518,7 @@ qemuMonitorJSONBlockIoThrottleInfo(virJSONValue *io_t= hrottle, =20 if (!current_drive && !current_qdev) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("block_io_throttle device entry " - "was not in expected format")); + _("block_io_throttle device entry was not in ex= pected format")); return -1; } =20 @@ -4550,8 +4529,7 @@ qemuMonitorJSONBlockIoThrottleInfo(virJSONValue *io_t= hrottle, found =3D true; if (!(inserted =3D virJSONValueObjectGetObject(temp_dev, "inserted= "))) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("block_io_throttle inserted entry " - "was not in expected format")); + _("block_io_throttle inserted entry was not in = expected format")); return -1; } GET_THROTTLE_STATS("bps", total_bytes_sec); @@ -4795,8 +4773,7 @@ int qemuMonitorJSONGetMachines(qemuMonitor *mon, if (virJSONValueObjectHasKey(child, "default-cpu-type")) { if (!(tmp =3D virJSONValueObjectGetString(child, "default-cpu-= type"))) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("query-machines reply has malformed " - "'default-cpu-type' data")); + _("query-machines reply has malformed 'defa= ult-cpu-type' data")); goto cleanup; } =20 @@ -4806,8 +4783,7 @@ int qemuMonitorJSONGetMachines(qemuMonitor *mon, if (virJSONValueObjectHasKey(child, "numa-mem-supported")) { if (virJSONValueObjectGetBoolean(child, "numa-mem-supported", = &info->numaMemSupported) < 0) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("query-machines reply has malformed " - "'numa-mem-supported' data")); + _("query-machines reply has malformed 'numa= -mem-supported' data")); goto cleanup; } } else { @@ -4817,8 +4793,7 @@ int qemuMonitorJSONGetMachines(qemuMonitor *mon, if (virJSONValueObjectHasKey(child, "default-ram-id")) { if (!(tmp =3D virJSONValueObjectGetString(child, "default-ram-= id"))) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("query-machines reply has malformed " - "'default-ram-id' data")); + _("query-machines reply has malformed 'defa= ult-ram-id' data")); goto cleanup; } =20 @@ -5243,8 +5218,7 @@ qemuMonitorJSONGetCPUModelComparison(qemuMonitor *mon, =20 if (!(data_result =3D virJSONValueObjectGetString(data, "result"))) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("query-cpu-model-comparison reply data was missin= g " - "'result'")); + _("query-cpu-model-comparison reply data was missin= g 'result'")); return -1; } =20 @@ -5983,30 +5957,26 @@ qemuMonitorJSONGetSEVCapabilities(qemuMonitor *mon, =20 if (virJSONValueObjectGetNumberUint(caps, "cbitpos", &cbitpos) < 0) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("query-sev-capabilities reply was missing" - " 'cbitpos' field")); + _("query-sev-capabilities reply was missing 'cbitpo= s' field")); return -1; } =20 if (virJSONValueObjectGetNumberUint(caps, "reduced-phys-bits", &reduced_phys_bits) < 0) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("query-sev-capabilities reply was missing" - " 'reduced-phys-bits' field")); + _("query-sev-capabilities reply was missing 'reduce= d-phys-bits' field")); return -1; } =20 if (!(pdh =3D virJSONValueObjectGetString(caps, "pdh"))) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("query-sev-capabilities reply was missing" - " 'pdh' field")); + _("query-sev-capabilities reply was missing 'pdh' f= ield")); return -1; } =20 if (!(cert_chain =3D virJSONValueObjectGetString(caps, "cert-chain")))= { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("query-sev-capabilities reply was missing" - " 'cert-chain' field")); + _("query-sev-capabilities reply was missing 'cert-c= hain' field")); return -1; } =20 @@ -7072,8 +7042,7 @@ qemuMonitorJSONGetIOThreads(qemuMonitor *mon, if (virJSONValueObjectGetNumberInt(child, "thread-id", &info->thread_id) < 0) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("query-iothreads reply has malformed " - "'thread-id' data")); + _("query-iothreads reply has malformed 'thread-= id' data")); goto cleanup; } =20 @@ -7194,8 +7163,7 @@ qemuMonitorJSONGetMemoryDeviceInfo(qemuMonitor *mon, =20 if (!(modelStr =3D virJSONValueObjectGetString(elem, "type"))) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("query-memory-devices reply data doesn't cont= ain " - "enum type discriminator")); + _("query-memory-devices reply data doesn't cont= ain enum type discriminator")); return -1; } =20 @@ -7206,8 +7174,7 @@ qemuMonitorJSONGetMemoryDeviceInfo(qemuMonitor *mon, =20 if (!(dimminfo =3D virJSONValueObjectGetObject(elem, "data"))) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("query-memory-devices reply data doesn't " - "contain enum data")); + _("query-memory-devices reply data doesn't cont= ain enum data")); return -1; } =20 @@ -7622,8 +7589,7 @@ qemuMonitorJSONProcessHotpluggableCpusReply(virJSONVa= lue *vcpu, if (entry->node_id =3D=3D -1 && entry->socket_id =3D=3D -1 && entry->core_id =3D=3D -1 && entry->thread_id =3D=3D -1) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("query-hotpluggable-cpus entry doesn't report " - "topology information")); + _("query-hotpluggable-cpus entry doesn't report top= ology information")); return -1; } =20 diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c index a6ed69cfe2..b0eb44e0b9 100644 --- a/src/qemu/qemu_process.c +++ b/src/qemu/qemu_process.c @@ -4237,8 +4237,7 @@ qemuProcessSPICEAllocatePorts(virQEMUDriver *driver, if (needTLSPort || graphics->data.spice.tlsPort =3D=3D -1) { if (!cfg->spiceTLS) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Auto allocation of spice TLS port requested " - "but spice TLS is disabled in qemu.conf")); + _("Auto allocation of spice TLS port requested = but spice TLS is disabled in qemu.conf")); return -1; } =20 @@ -5003,8 +5002,7 @@ qemuProcessGraphicsSetupNetworkAddress(virDomainGraph= icsListenDef *glisten, rc =3D qemuProcessGetNetworkAddress(glisten->network, &glisten->addres= s); if (rc <=3D -2) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("network-based listen isn't possible, " - "network driver isn't present")); + _("network-based listen isn't possible, network dri= ver isn't present")); return -1; } if (rc < 0) @@ -5355,8 +5353,7 @@ qemuProcessStartValidateGraphics(virDomainObj *vm) case VIR_DOMAIN_GRAPHICS_TYPE_SPICE: if (graphics->nListens > 1) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("QEMU does not support multiple listens f= or " - "one graphics device.")); + _("QEMU does not support multiple listens f= or one graphics device.")); return -1; } break; @@ -5412,8 +5409,7 @@ qemuProcessStartValidateDisks(virDomainObj *vm, src->protocol =3D=3D VIR_STORAGE_NET_PROTOCOL_VXHS && !virQEMUCapsGet(qemuCaps, QEMU_CAPS_VXHS)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("VxHS protocol is not supported with this " - "QEMU binary")); + _("VxHS protocol is not supported with this QEM= U binary")); return -1; } =20 @@ -5527,10 +5523,7 @@ qemuProcessStartValidate(virQEMUDriver *driver, VIR_DEBUG("Checking for KVM availability"); if (!virFileExists("/dev/kvm")) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Domain requires KVM, but it is not avail= able. " - "Check that virtualization is enabled in = the " - "host BIOS, and host configuration is set= up to " - "load the kvm modules.")); + _("Domain requires KVM, but it is not avail= able. Check that virtualization is enabled in the host BIOS, and host confi= guration is setup to load the kvm modules.")); return -1; } } @@ -9149,8 +9142,7 @@ qemuProcessReconnectHelper(virDomainObj *obj, if (virThreadCreateFull(&thread, false, qemuProcessReconnect, name, false, data) < 0) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("Could not create thread. QEMU initialization " - "might be incomplete")); + _("Could not create thread. QEMU initialization mig= ht be incomplete")); /* We can't spawn a thread and thus connect to monitor. Kill qemu. * It's safe to call qemuProcessStop without a job here since there * is no thread that could be doing anything else with the same do= main diff --git a/src/qemu/qemu_snapshot.c b/src/qemu/qemu_snapshot.c index d943281e35..ec853686d3 100644 --- a/src/qemu/qemu_snapshot.c +++ b/src/qemu/qemu_snapshot.c @@ -490,8 +490,7 @@ qemuSnapshotPrepareDiskExternalActive(virDomainSnapshot= DiskDef *snapdisk, =20 if (domdisk->device =3D=3D VIR_DOMAIN_DISK_DEVICE_LUN) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("external active snapshots are not supported on s= csi " - "passthrough devices")); + _("external active snapshots are not supported on s= csi passthrough devices")); return -1; } =20 @@ -766,16 +765,14 @@ qemuSnapshotPrepare(virDomainObj *vm, if ((def->memory =3D=3D VIR_DOMAIN_SNAPSHOT_LOCATION_INTERNAL && !foun= d_internal) || (found_internal && forbid_internal)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("internal and full system snapshots require all " - "disks to be selected for snapshot")); + _("internal and full system snapshots require all d= isks to be selected for snapshot")); return -1; } =20 /* disk snapshot requires at least one disk */ if (def->state =3D=3D VIR_DOMAIN_SNAPSHOT_DISK_SNAPSHOT && !external) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("disk-only snapshots require at least " - "one disk to be selected for snapshot")); + _("disk-only snapshots require at least one disk to= be selected for snapshot")); return -1; } =20 @@ -786,8 +783,7 @@ qemuSnapshotPrepare(virDomainObj *vm, (def->memory =3D=3D VIR_DOMAIN_SNAPSHOT_LOCATION_INTERNAL && exte= rnal) || (def->memory =3D=3D VIR_DOMAIN_SNAPSHOT_LOCATION_EXTERNAL && foun= d_internal)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("mixing internal and external targets for a snaps= hot " - "is not yet supported")); + _("mixing internal and external targets for a snaps= hot is not yet supported")); return -1; } =20 @@ -808,8 +804,7 @@ qemuSnapshotPrepare(virDomainObj *vm, found_internal && virDomainDefHasOldStyleUEFI(vm->def)) { virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s", - _("internal snapshots of a VM with pflash based " - "firmware are not supported")); + _("internal snapshots of a VM with pflash based fir= mware are not supported")); return -1; } =20 @@ -1534,8 +1529,7 @@ qemuSnapshotCreateXMLValidateDef(virDomainObj *vm, (!virDomainObjIsActive(vm) || def->memory !=3D VIR_DOMAIN_SNAPSHOT_LOCATION_EXTERNAL)) { virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s", - _("live snapshot creation is supported only " - "during full system snapshots")); + _("live snapshot creation is supported only during = full system snapshots")); return -1; } =20 @@ -1560,8 +1554,7 @@ qemuSnapshotCreateXMLValidateDef(virDomainObj *vm, =20 case VIR_DOMAIN_SNAPSHOT_PMSUSPENDED: virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s", - _("qemu doesn't support taking snapshots of " - "PMSUSPENDED guests")); + _("qemu doesn't support taking snapshots of PMSUSPE= NDED guests")); return -1; =20 /* invalid states */ @@ -1621,8 +1614,7 @@ qemuSnapshotCreateAlignDisks(virDomainObj *vm, if (virDomainObjIsActive(vm) && def->memory =3D=3D VIR_DOMAIN_SNAPSHOT_LOCATION_NO) { virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s", - _("internal snapshot of a running VM " - "must include the memory state")); + _("internal snapshot of a running VM must inclu= de the memory state")); return -1; } =20 @@ -2551,8 +2543,7 @@ qemuSnapshotRevert(virDomainObj *vm, =20 case VIR_DOMAIN_SNAPSHOT_PMSUSPENDED: virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s", - _("qemu doesn't support reversion of snapshot taken= in " - "PMSUSPENDED state")); + _("qemu doesn't support reversion of snapshot taken= in PMSUSPENDED state")); goto endjob; =20 case VIR_DOMAIN_SNAPSHOT_DISK_SNAPSHOT: diff --git a/src/qemu/qemu_tpm.c b/src/qemu/qemu_tpm.c index 450f96ecfd..bf0c6bcb0d 100644 --- a/src/qemu/qemu_tpm.c +++ b/src/qemu/qemu_tpm.c @@ -383,9 +383,7 @@ qemuTPMEmulatorRunSetup(const char *storagepath, if (!privileged && tpmversion =3D=3D VIR_DOMAIN_TPM_VERSION_1_2 && !virTPMSwtpmSetupCapsGet(VIR_TPM_SWTPM_SETUP_FEATURE_TPM12_NOT_NEE= D_ROOT)) { return virFileWriteStr(logfile, - _("Did not create EK and certificates since= " - "this requires privileged mode for a " - "TPM 1.2\n"), 0600); + _("Did not create EK and certificates since= this requires privileged mode for a TPM 1.2\n"), 0600); } =20 if (!privileged && qemuTPMCreateConfigFiles(swtpm_setup) < 0) diff --git a/src/qemu/qemu_validate.c b/src/qemu/qemu_validate.c index 797caf6076..8f9e8fd7f0 100644 --- a/src/qemu/qemu_validate.c +++ b/src/qemu/qemu_validate.c @@ -139,8 +139,7 @@ qemuValidateDomainDefFeatures(const virDomainDef *def, !virQEMUCapsSupportsVmport(qemuCaps, def)) { =20 virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("vmport is not available " - "with this QEMU binary")); + _("vmport is not available with this QEMU b= inary")); return -1; } break; @@ -149,8 +148,7 @@ qemuValidateDomainDefFeatures(const virDomainDef *def, if (def->features[i] =3D=3D VIR_TRISTATE_SWITCH_ON && !virQEMUCapsGet(qemuCaps, QEMU_CAPS_DEVICE_VMCOREINFO)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("vmcoreinfo is not available " - "with this QEMU binary")); + _("vmcoreinfo is not available with this QEM= U binary")); return -1; } break; @@ -828,8 +826,7 @@ qemuValidateDomainDefMemory(const virDomainDef *def, =20 if (mem->allocation =3D=3D VIR_DOMAIN_MEMORY_ALLOCATION_ONDEMAND) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("hugepages are not allowed with memory " - "allocation ondemand")); + _("hugepages are not allowed with memory allocation= ondemand")); return -1; } =20 @@ -842,8 +839,7 @@ qemuValidateDomainDefMemory(const virDomainDef *def, =20 if (mem->source =3D=3D VIR_DOMAIN_MEMORY_SOURCE_ANONYMOUS) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("hugepages are not allowed with anonymous " - "memory source")); + _("hugepages are not allowed with anonymous memory = source")); return -1; } =20 @@ -970,15 +966,13 @@ qemuValidateDomainDefPanic(const virDomainDef *def, * cannot be configured by the user */ if (!ARCH_IS_S390(def->os.arch)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("only S390 guests support " - "panic device of model 's390'")); + _("only S390 guests support panic device of= model 's390'")); return -1; } if (def->panics[i]->info.type !=3D VIR_DOMAIN_DEVICE_ADDRESS_TYPE_NONE) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("setting the panic device address is not " - "supported for model 's390'")); + _("setting the panic device address is not = supported for model 's390'")); return -1; } break; @@ -989,15 +983,13 @@ qemuValidateDomainDefPanic(const virDomainDef *def, * cannot be configured by the user */ if (!ARCH_IS_X86(def->os.arch)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("only i686 and x86_64 guests support " - "panic device of model 'hyperv'")); + _("only i686 and x86_64 guests support pani= c device of model 'hyperv'")); return -1; } if (def->panics[i]->info.type !=3D VIR_DOMAIN_DEVICE_ADDRESS_TYPE_NONE) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("setting the panic device address is not " - "supported for model 'hyperv'")); + _("setting the panic device address is not = supported for model 'hyperv'")); return -1; } break; @@ -1008,15 +1000,13 @@ qemuValidateDomainDefPanic(const virDomainDef *def, * cannot be configured by the user */ if (!qemuDomainIsPSeries(def)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("only pSeries guests support panic device= " - "of model 'pseries'")); + _("only pSeries guests support panic device= of model 'pseries'")); return -1; } if (def->panics[i]->info.type !=3D VIR_DOMAIN_DEVICE_ADDRESS_TYPE_NONE) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("setting the panic device address is not " - "supported for model 'pseries'")); + _("setting the panic device address is not = supported for model 'pseries'")); return -1; } break; @@ -1024,16 +1014,14 @@ qemuValidateDomainDefPanic(const virDomainDef *def, case VIR_DOMAIN_PANIC_MODEL_ISA: if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_DEVICE_PANIC)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("the QEMU binary does not support the " - "ISA panic device")); + _("the QEMU binary does not support the ISA= panic device")); return -1; } =20 if (def->panics[i]->info.type !=3D VIR_DOMAIN_DEVICE_ADDRESS_T= YPE_NONE && def->panics[i]->info.type !=3D VIR_DOMAIN_DEVICE_ADDRESS_T= YPE_ISA) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("panic is supported only " - "with ISA address type")); + _("panic is supported only with ISA address= type")); return -1; } break; @@ -1338,8 +1326,7 @@ qemuValidateDomainDef(const virDomainDef *def, case VIR_DOMAIN_LAUNCH_SECURITY_SEV: if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_SEV_GUEST)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("SEV launch security is not supported wit= h " - "this QEMU binary")); + _("SEV launch security is not supported wit= h this QEMU binary")); return -1; } =20 @@ -1734,8 +1721,7 @@ qemuValidateDomainDeviceDefNetwork(const virDomainNet= Def *net, } if (net->guestIP.nroutes) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Invalid attempt to set network interface " - "guest-side IP route, not supported by QEMU")= ); + _("Invalid attempt to set network interface gue= st-side IP route, not supported by QEMU")); return -1; } =20 @@ -1751,8 +1737,7 @@ qemuValidateDomainDeviceDefNetwork(const virDomainNet= Def *net, if (VIR_SOCKET_ADDR_IS_FAMILY(&ip->address, AF_INET)) { if (hasIPv4) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Only one IPv4 address per " - "interface is allowed")); + _("Only one IPv4 address per interface = is allowed")); return -1; } hasIPv4 =3D true; @@ -1768,8 +1753,7 @@ qemuValidateDomainDeviceDefNetwork(const virDomainNet= Def *net, if (VIR_SOCKET_ADDR_IS_FAMILY(&ip->address, AF_INET6)) { if (hasIPv6) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Only one IPv6 address per " - "interface is allowed")); + _("Only one IPv6 address per interface = is allowed")); return -1; } hasIPv6 =3D true; @@ -1804,9 +1788,7 @@ qemuValidateDomainDeviceDefNetwork(const virDomainNet= Def *net, } } else if (net->guestIP.nroutes || net->guestIP.nips) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Invalid attempt to set network interface " - "guest-side IP route and/or address info, " - "not supported by QEMU")); + _("Invalid attempt to set network interface guest-s= ide IP route and/or address info, not supported by QEMU")); return -1; } =20 @@ -2204,8 +2186,7 @@ qemuValidateDomainRNGDef(const virDomainRNGDef *def, case VIR_DOMAIN_RNG_BACKEND_RANDOM: if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_OBJECT_RNG_RANDOM)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("this qemu doesn't support the rng-random " - "backend")); + _("this qemu doesn't support the rng-random bac= kend")); return -1; } break; @@ -2213,8 +2194,7 @@ qemuValidateDomainRNGDef(const virDomainRNGDef *def, case VIR_DOMAIN_RNG_BACKEND_EGD: if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_OBJECT_RNG_EGD)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("this qemu doesn't support the rng-egd " - "backend")); + _("this qemu doesn't support the rng-egd backen= d")); return -1; } =20 @@ -2228,8 +2208,7 @@ qemuValidateDomainRNGDef(const virDomainRNGDef *def, case VIR_DOMAIN_RNG_BACKEND_BUILTIN: if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_OBJECT_RNG_BUILTIN)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("this qemu doesn't support the rng-builtin " - "backend")); + _("this qemu doesn't support the rng-builtin ba= ckend")); return -1; } break; @@ -2270,16 +2249,14 @@ qemuValidateDomainRedirdevDef(const virDomainRedird= evDef *dev, =20 if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_USB_REDIR)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("USB redirection is not supported " - "by this version of QEMU")); + _("USB redirection is not supported by this version= of QEMU")); return -1; } =20 if (def->redirfilter && def->redirfilter->nusbdevs && !virQEMUCapsGet(qemuCaps, QEMU_CAPS_USB_REDIR_FILTER)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("USB redirection filter is not " - "supported by this version of QEMU")); + _("USB redirection filter is not supported by this = version of QEMU")); return -1; } =20 @@ -2298,8 +2275,7 @@ qemuValidateDomainWatchdogDef(const virDomainWatchdog= Def *dev, if (def->nwatchdogs && def->watchdogs[0]->action !=3D dev->action) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("watchdogs with different actions are not support= ed " - "with this QEMU binary")); + _("watchdogs with different actions are not support= ed with this QEMU binary")); return -1; } =20 @@ -2379,17 +2355,14 @@ qemuValidateDomainMdevDefVFIOPCI(const virDomainHos= tdevDef *hostdev, =20 if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_DEVICE_VFIO_PCI)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("VFIO PCI device assignment is not " - "supported by this version of QEMU")); + _("VFIO PCI device assignment is not supported by t= his version of QEMU")); return -1; } =20 /* VFIO-PCI does not support boot */ if (hostdev->info->bootIndex) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("booting from assigned devices is not " - "supported by mediated devices of " - "model vfio-pci")); + _("booting from assigned devices is not supported b= y mediated devices of model vfio-pci")); return -1; } =20 @@ -2399,15 +2372,13 @@ qemuValidateDomainMdevDefVFIOPCI(const virDomainHos= tdevDef *hostdev, =20 if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_VFIO_PCI_DISPLAY)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("display property of device vfio-pci is " - "not supported by this version of QEMU")); + _("display property of device vfio-pci is not suppo= rted by this version of QEMU")); return -1; } =20 if (dev->model !=3D VIR_MDEV_MODEL_TYPE_VFIO_PCI) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _(" attribute 'display' is only supported" - " with model=3D'vfio-pci'")); + _(" attribute 'display' is only supported = with model=3D'vfio-pci'")); =20 return -1; } @@ -2415,8 +2386,7 @@ qemuValidateDomainMdevDefVFIOPCI(const virDomainHostd= evDef *hostdev, if (dev->display =3D=3D VIR_TRISTATE_SWITCH_ON) { if (def->ngraphics =3D=3D 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("graphics device is needed for attribute valu= e " - "'display=3Don' in ")); + _("graphics device is needed for attribute valu= e 'display=3Don' in ")); return -1; } } @@ -2435,17 +2405,14 @@ qemuValidateDomainMdevDefVFIOAP(const virDomainHost= devDef *hostdev, =20 if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_DEVICE_VFIO_AP)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("VFIO AP device assignment is not " - "supported by this version of QEMU")); + _("VFIO AP device assignment is not supported by th= is version of QEMU")); return -1; } =20 /* VFIO-AP does not support boot */ if (hostdev->info->bootIndex) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("booting from assigned devices is not " - "supported by mediated devices of " - "model vfio-ap")); + _("booting from assigned devices is not supported b= y mediated devices of model vfio-ap")); return -1; } =20 @@ -2457,8 +2424,7 @@ qemuValidateDomainMdevDefVFIOAP(const virDomainHostde= vDef *hostdev, hdev->source.subsys.u.mdev.model =3D=3D VIR_MDEV_MODEL_TYPE_VF= IO_AP) { if (vfioap_found) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Only one hostdev of model vfio-ap is " - "supported")); + _("Only one hostdev of model vfio-ap is sup= ported")); return -1; } vfioap_found =3D true; @@ -2485,8 +2451,7 @@ qemuValidateDomainMdevDef(const virDomainHostdevDef *= hostdev, case VIR_MDEV_MODEL_TYPE_VFIO_CCW: if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_DEVICE_VFIO_CCW)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("VFIO CCW device assignment is not " - "supported by this version of QEMU")); + _("VFIO CCW device assignment is not supported = by this version of QEMU")); return -1; } break; @@ -2536,16 +2501,14 @@ qemuValidateDomainDeviceDefHostdev(const virDomainH= ostdevDef *hostdev, if (backend =3D=3D VIR_DOMAIN_HOSTDEV_PCI_BACKEND_VFIO) { if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_DEVICE_VFIO_PCI)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("VFIO PCI device assignment is not " - "supported by this version of qemu")); + _("VFIO PCI device assignment is not su= pported by this version of qemu")); return -1; } } =20 if (hostdev->writeFiltering !=3D VIR_TRISTATE_BOOL_ABSENT) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Write filtering of PCI device configurat= ion " - "space is not supported by qemu")); + _("Write filtering of PCI device configurat= ion space is not supported by qemu")); return -1; } break; @@ -2553,8 +2516,7 @@ qemuValidateDomainDeviceDefHostdev(const virDomainHos= tdevDef *hostdev, case VIR_DOMAIN_HOSTDEV_SUBSYS_TYPE_SCSI_HOST: if (hostdev->info->bootIndex) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("booting from assigned devices is not " - "supported by vhost SCSI devices")); + _("booting from assigned devices is not sup= ported by vhost SCSI devices")); return -1; } =20 @@ -2639,8 +2601,7 @@ qemuValidateDomainDeviceDefVideo(const virDomainVideo= Def *video, if (video->vgamem) { if (video->vgamem < 1024) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("value for 'vgamem' must be at least 1 Mi= B " - "(1024 KiB)")); + _("value for 'vgamem' must be at least 1 Mi= B (1024 KiB)")); return -1; } =20 @@ -2666,9 +2627,8 @@ qemuValidateDomainDeviceDefVideo(const virDomainVideo= Def *video, if (video->type =3D=3D VIR_DOMAIN_VIDEO_TYPE_VGA || video->type =3D=3D VIR_DOMAIN_VIDEO_TYPE_VMVGA) { if (video->vram && video->vram < 1024) { - virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - "%s", _("value for 'vram' must be at least " - "1 MiB (1024 KiB)")); + virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", + _("value for 'vram' must be at least 1 MiB (102= 4 KiB)")); return -1; } } @@ -2867,8 +2827,7 @@ qemuValidateDomainDeviceDefDiskFrontend(const virDoma= inDiskDef *disk, if (disk->bus =3D=3D VIR_DOMAIN_DISK_BUS_SCSI && !virQEMUCapsGet(qemuCaps, QEMU_CAPS_SCSI_BLOCK)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("This QEMU doesn't support scsi-block for " - "lun passthrough")); + _("This QEMU doesn't support scsi-block for lun= passthrough")); return -1; } =20 @@ -2887,8 +2846,7 @@ qemuValidateDomainDeviceDefDiskFrontend(const virDoma= inDiskDef *disk, } if (disk->vendor || disk->product) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Setting vendor or product is not supported " - "for lun device")); + _("Setting vendor or product is not supported f= or lun device")); return -1; } } @@ -2960,8 +2918,7 @@ qemuValidateDomainDeviceDefDiskFrontend(const virDoma= inDiskDef *disk, case VIR_DOMAIN_DISK_BUS_USB: if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_DEVICE_USB_STORAGE)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("This QEMU doesn't support '-device " - "usb-storage'")); + _("This QEMU doesn't support '-device usb-stora= ge'")); return -1; } =20 @@ -3025,8 +2982,7 @@ qemuValidateDomainDeviceDefDiskFrontend(const virDoma= inDiskDef *disk, disk->bus =3D=3D VIR_DOMAIN_DISK_BUS_SCSI && disk->device =3D=3D VIR_DOMAIN_DISK_DEVICE_LUN) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("scsi-block 'lun' devices do not support the " - "serial property")); + _("scsi-block 'lun' devices do not support the seri= al property")); return -1; } =20 @@ -3056,8 +3012,7 @@ qemuValidateDomainDeviceDefDiskBlkdeviotune(const vir= DomainDiskDef *disk, if (disk->blkdeviotune.group_name && !virDomainBlockIoTuneInfoHasAny(&disk->blkdeviotune)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("group_name can be configured only together with " - "settings")); + _("group_name can be configured only together with = settings")); return -1; } =20 @@ -3285,8 +3240,7 @@ qemuValidateCheckSCSIControllerModel(virQEMUCaps *qem= uCaps, case VIR_DOMAIN_CONTROLLER_MODEL_SCSI_LSILOGIC: if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_SCSI_LSI)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("This QEMU doesn't support " - "the LSI 53C895A SCSI controller")); + _("This QEMU doesn't support the LSI 53C895A SC= SI controller")); return false; } break; @@ -3295,8 +3249,7 @@ qemuValidateCheckSCSIControllerModel(virQEMUCaps *qem= uCaps, case VIR_DOMAIN_CONTROLLER_MODEL_SCSI_VIRTIO_NON_TRANSITIONAL: if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_VIRTIO_SCSI)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("This QEMU doesn't support " - "virtio scsi controller")); + _("This QEMU doesn't support virtio scsi contro= ller")); return false; } break; @@ -3306,24 +3259,21 @@ qemuValidateCheckSCSIControllerModel(virQEMUCaps *q= emuCaps, case VIR_DOMAIN_CONTROLLER_MODEL_SCSI_LSISAS1068: if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_SCSI_MPTSAS1068)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("This QEMU doesn't support " - "the LSI SAS1068 (MPT Fusion) controller")); + _("This QEMU doesn't support the LSI SAS1068 (M= PT Fusion) controller")); return false; } break; case VIR_DOMAIN_CONTROLLER_MODEL_SCSI_LSISAS1078: if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_SCSI_MEGASAS)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("This QEMU doesn't support " - "the LSI SAS1078 (MegaRAID) controller")); + _("This QEMU doesn't support the LSI SAS1078 (M= egaRAID) controller")); return false; } break; case VIR_DOMAIN_CONTROLLER_MODEL_SCSI_VMPVSCSI: if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_SCSI_PVSCSI)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("This QEMU doesn't support " - "the pvscsi (VMware paravirtual SCSI) control= ler")); + _("This QEMU doesn't support the pvscsi (VMware= paravirtual SCSI) controller")); return false; } break; @@ -3336,22 +3286,19 @@ qemuValidateCheckSCSIControllerModel(virQEMUCaps *q= emuCaps, case VIR_DOMAIN_CONTROLLER_MODEL_SCSI_NCR53C90: if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_SCSI_NCR53C90)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("This QEMU doesn't support " - "the NCR53C90 (ESP) controller")); + _("This QEMU doesn't support the NCR53C90 (ESP)= controller")); } return true; case VIR_DOMAIN_CONTROLLER_MODEL_SCSI_DC390: if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_SCSI_DC390)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("This QEMU doesn't support " - "the DC390 (ESP) controller")); + _("This QEMU doesn't support the DC390 (ESP) co= ntroller")); } return true; case VIR_DOMAIN_CONTROLLER_MODEL_SCSI_AM53C974: if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_SCSI_AM53C974)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("This QEMU doesn't support " - "the AM53C974 (ESP) controller")); + _("This QEMU doesn't support the AM53C974 (ESP)= controller")); } return true; case VIR_DOMAIN_CONTROLLER_MODEL_SCSI_DEFAULT: @@ -3401,12 +3348,10 @@ qemuValidateDomainDeviceDefControllerIDE(const virD= omainControllerDef *controlle */ if (qemuDomainHasBuiltinIDE(def)) virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Only a single IDE controller is supported " - "for this machine type")); + _("Only a single IDE controller is supported for th= is machine type")); else virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("IDE controllers are unsupported for " - "this QEMU binary or machine type")); + _("IDE controllers are unsupported for this QEMU bi= nary or machine type")); return -1; } =20 @@ -3432,8 +3377,7 @@ qemuValidateCheckSCSIControllerIOThreads(const virDom= ainControllerDef *controlle controller->info.type !=3D VIR_DOMAIN_DEVICE_ADDRESS_TYPE_PCI && controller->info.type !=3D VIR_DOMAIN_DEVICE_ADDRESS_TYPE_CCW) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("virtio-scsi IOThreads only available for virtio " - "pci and virtio ccw controllers")); + _("virtio-scsi IOThreads only available for virtio = pci and virtio ccw controllers")); return false; } =20 @@ -4154,8 +4098,7 @@ qemuValidateDomainDeviceDefSPICEGraphics(const virDom= ainGraphicsDef *graphics, case VIR_DOMAIN_GRAPHICS_LISTEN_TYPE_NETWORK: if (tlsPort > 0 && !cfg->spiceTLS) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("spice TLS port set in XML configuration, " - "but TLS is disabled in qemu.conf")); + _("spice TLS port set in XML configuration, but= TLS is disabled in qemu.conf")); return -1; } break; @@ -4262,8 +4205,7 @@ qemuValidateDomainDeviceDefGraphics(const virDomainGr= aphicsDef *graphics, graphics->type !=3D VIR_DOMAIN_GRAPHICS_TYPE_VNC && graphics->type !=3D VIR_DOMAIN_GRAPHICS_TYPE_SPICE) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("graphics type 'egl-headless' is only support= ed " - "with one of: 'vnc', 'spice' graphics types")= ); + _("graphics type 'egl-headless' is only support= ed with one of: 'vnc', 'spice' graphics types")); return -1; } =20 @@ -4273,8 +4215,7 @@ qemuValidateDomainDeviceDefGraphics(const virDomainGr= aphicsDef *graphics, if (graphics->type =3D=3D VIR_DOMAIN_GRAPHICS_TYPE_SPICE && graphics->data.spice.gl =3D=3D VIR_TRISTATE_BOOL_YES) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("multiple OpenGL displays are not supported " - "by QEMU")); + _("multiple OpenGL displays are not supported b= y QEMU")); return -1; } } @@ -4291,8 +4232,7 @@ qemuValidateDomainDeviceDefGraphics(const virDomainGr= aphicsDef *graphics, if (graphics->data.egl_headless.rendernode && !virQEMUCapsGet(qemuCaps, QEMU_CAPS_EGL_HEADLESS_RENDERNODE)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("This QEMU doesn't support OpenGL rendernode " - "with egl-headless graphics type")); + _("This QEMU doesn't support OpenGL rendernode = with egl-headless graphics type")); return -1; } =20 @@ -4555,16 +4495,14 @@ qemuValidateDomainDeviceDefSound(virDomainSoundDef = *sound, case VIR_DOMAIN_SOUND_MODEL_USB: if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_OBJECT_USB_AUDIO)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("usb-audio controller is not supported " - "by this QEMU binary")); + _("usb-audio controller is not supported by thi= s QEMU binary")); return -1; } break; case VIR_DOMAIN_SOUND_MODEL_ICH9: if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_DEVICE_ICH9_INTEL_HDA)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("The ich9-intel-hda audio controller " - "is not supported in this QEMU binary")); + _("The ich9-intel-hda audio controller is not s= upported in this QEMU binary")); return -1; } break; @@ -4609,8 +4547,7 @@ qemuValidateDomainDeviceDefVsock(virQEMUCaps *qemuCap= s) { if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_DEVICE_VHOST_VSOCK)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("vsock device is not supported " - "with this QEMU binary")); + _("vsock device is not supported with this QEMU bin= ary")); return -1; } =20 @@ -4716,8 +4653,7 @@ qemuValidateDomainDeviceDefInput(const virDomainInput= Def *input, input->type =3D=3D VIR_DOMAIN_INPUT_TYPE_KBD && !virQEMUCapsGet(qemuCaps, QEMU_CAPS_DEVICE_USB_KBD)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("usb keyboard is not supported by this " - "QEMU binary")); + _("usb keyboard is not supported by this QEMU binar= y")); return -1; } =20 @@ -4904,36 +4840,31 @@ qemuValidateDomainDeviceDefIOMMU(const virDomainIOM= MUDef *iommu, if (iommu->intremap !=3D VIR_TRISTATE_SWITCH_ABSENT && !virQEMUCapsGet(qemuCaps, QEMU_CAPS_INTEL_IOMMU_INTREMAP)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("iommu: interrupt remapping is not supported " - "with this QEMU binary")); + _("iommu: interrupt remapping is not supported with= this QEMU binary")); return -1; } if (iommu->caching_mode !=3D VIR_TRISTATE_SWITCH_ABSENT && !virQEMUCapsGet(qemuCaps, QEMU_CAPS_INTEL_IOMMU_CACHING_MODE)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("iommu: caching mode is not supported " - "with this QEMU binary")); + _("iommu: caching mode is not supported with this Q= EMU binary")); return -1; } if (iommu->eim !=3D VIR_TRISTATE_SWITCH_ABSENT && !virQEMUCapsGet(qemuCaps, QEMU_CAPS_INTEL_IOMMU_EIM)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("iommu: eim is not supported " - "with this QEMU binary")); + _("iommu: eim is not supported with this QEMU binar= y")); return -1; } if (iommu->iotlb !=3D VIR_TRISTATE_SWITCH_ABSENT && !virQEMUCapsGet(qemuCaps, QEMU_CAPS_INTEL_IOMMU_DEVICE_IOTLB)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("iommu: device IOTLB is not supported " - "with this QEMU binary")); + _("iommu: device IOTLB is not supported with this Q= EMU binary")); return -1; } if (iommu->aw_bits > 0 && !virQEMUCapsGet(qemuCaps, QEMU_CAPS_INTEL_IOMMU_AW_BITS)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("iommu: aw_bits is not supported " - "with this QEMU binary")); + _("iommu: aw_bits is not supported with this QEMU b= inary")); return -1; } =20 @@ -4952,8 +4883,7 @@ qemuValidateDomainDeviceDefNVRAM(virDomainNVRAMDef *n= vram, if (qemuDomainIsPSeries(def)) { if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_DEVICE_NVRAM)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("nvram device is not supported by " - "this QEMU binary")); + _("nvram device is not supported by this QEMU b= inary")); return -1; } } else { @@ -5021,8 +4951,7 @@ qemuValidateDomainDeviceDefMemory(virDomainMemoryDef = *mem, if (mem->target.nvdimm.readonly && !virQEMUCapsGet(qemuCaps, QEMU_CAPS_DEVICE_NVDIMM_UNARMED)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("nvdimm readonly property is not available " - "with this QEMU binary")); + _("nvdimm readonly property is not available wi= th this QEMU binary")); return -1; } break; --=20 2.41.0 From nobody Sat May 18 15:38:13 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; 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=1692949393; cv=none; d=zohomail.com; s=zohoarc; b=RFaYH/LFtg2TjOgeYJrJGPwWX4LnNky2yM2U7hgq+xtQxzzyVc09iO8KdFFBEDfioDTQ8qD/m1Tu2EnkIfsnB/Wmh85TQ19b5Iryiyaki6vUkCbXkU7rKqfPEyRZ9uhR5p8ccCIuIcGKoHihy20vNMBvpXATb+MhoZBAIJ705p4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1692949393; 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=+kHUCCroMB0nvo9fGo9yLmBGkgTMNu8YlOdW+ubd0oI=; b=gjC7qYs9BetqV3NbUJ7UwgTGtQuPSKaUALrzcjzcUG6AePisA+VG+okgM9xwjMo44qSnbZQJKJyuLirYRPNKbckJYPSWQwyB8yqGTJU9+4KQre1qL0VouMzYtA197Ek2QKWbIAlgaxXKQqW2rQDu8E5RUsbnc1MuDhL7qPCLsjM= 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 1692949393164996.6248049057265; Fri, 25 Aug 2023 00:43:13 -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-589-AqUIIAvbPu-Nkw4OVBsftw-1; Fri, 25 Aug 2023 03:40:52 -0400 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 7486E108BDCC; Fri, 25 Aug 2023 07:40:39 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5FD56492C18; Fri, 25 Aug 2023 07:40:39 +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 534E719465B8; Fri, 25 Aug 2023 07:40:39 +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 A10481946589 for ; Fri, 25 Aug 2023 07:40:35 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 925622026D76; Fri, 25 Aug 2023 07:40:35 +0000 (UTC) Received: from localhost.localdomain (unknown [10.43.2.56]) by smtp.corp.redhat.com (Postfix) with ESMTP id 398122026D68 for ; Fri, 25 Aug 2023 07:40:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1692949392; 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=+kHUCCroMB0nvo9fGo9yLmBGkgTMNu8YlOdW+ubd0oI=; b=i0qotq+j24nT5b5OiHJ+iGNuj7BewQhE011YSdFagmZn+RSCFO3MACZ8U81VF6atqeidzf v2T1LCjs8nV8S+qFfsbwrxQE/+Atlx5ejGYhApEyUsEXKIPBUA/m7seOZo7kMU+PGaXKy3 /25AHxYzf3HMS89eTkDqQPL/4lewBcA= X-MC-Unique: AqUIIAvbPu-Nkw4OVBsftw-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH 15/27] remote: Move error messages onto a single line Date: Fri, 25 Aug 2023 09:40:12 +0200 Message-ID: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 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: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 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: 1692949394043100002 Content-Type: text/plain; charset="utf-8"; x-default="true" Error messages are exempt from the 80 columns rule. Move them onto one line. Signed-off-by: Michal Privoznik Reviewed-by: Pavel Hrdina --- src/remote/remote_daemon.c | 3 +-- src/remote/remote_driver.c | 27 +++++++++------------------ src/remote/remote_sockets.c | 3 +-- 3 files changed, 11 insertions(+), 22 deletions(-) diff --git a/src/remote/remote_daemon.c b/src/remote/remote_daemon.c index d4d999e53a..657c053f6f 100644 --- a/src/remote/remote_daemon.c +++ b/src/remote/remote_daemon.c @@ -219,8 +219,7 @@ daemonSetupNetworking(virNetServer *srv, #ifdef WITH_IP # ifdef LIBVIRTD if (act && ipsock) { - VIR_ERROR(_("--listen parameter not permitted with systemd activat= ion " - "sockets, see 'man libvirtd' for further guidance")); + VIR_ERROR(_("--listen parameter not permitted with systemd activat= ion sockets, see 'man libvirtd' for further guidance")); return -1; } # else /* ! LIBVIRTD */ diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c index faad7292ed..2f8c9800a7 100644 --- a/src/remote/remote_driver.c +++ b/src/remote/remote_driver.c @@ -1103,8 +1103,7 @@ doRemoteOpen(virConnectPtr conn, case REMOTE_DRIVER_TRANSPORT_SSH: case REMOTE_DRIVER_TRANSPORT_EXT: virReportError(VIR_ERR_INVALID_ARG, "%s", - _("transport methods unix, ssh and ext are not supp= orted " - "under Windows")); + _("transport methods unix, ssh and ext are not supp= orted under Windows")); goto error; =20 #endif /* WIN32 */ @@ -1478,8 +1477,7 @@ remoteNodeGetCPUStats(virConnectPtr conn, if (ret.params.params_len > REMOTE_NODE_CPU_STATS_MAX || ret.params.params_len > *nparams) { virReportError(VIR_ERR_RPC, "%s", - _("remoteNodeGetCPUStats: " - "returned number of stats exceeds limit")); + _("remoteNodeGetCPUStats: returned number of stats = exceeds limit")); goto cleanup; } /* Handle the case when the caller does not know the number of stats @@ -1538,8 +1536,7 @@ remoteNodeGetMemoryStats(virConnectPtr conn, if (ret.params.params_len > REMOTE_NODE_MEMORY_STATS_MAX || ret.params.params_len > *nparams) { virReportError(VIR_ERR_RPC, "%s", - _("remoteNodeGetMemoryStats: " - "returned number of stats exceeds limit")); + _("remoteNodeGetMemoryStats: returned number of sta= ts exceeds limit")); goto cleanup; } /* Handle the case when the caller does not know the number of stats @@ -1703,8 +1700,7 @@ remoteDomainBlockStatsFlags(virDomainPtr domain, if (ret.params.params_len > REMOTE_DOMAIN_BLOCK_STATS_PARAMETERS_MAX || ret.params.params_len > *nparams) { virReportError(VIR_ERR_RPC, "%s", - _("remoteDomainBlockStatsFlags: " - "returned number of stats exceeds limit")); + _("remoteDomainBlockStatsFlags: returned number of = stats exceeds limit")); goto cleanup; } =20 @@ -2760,8 +2756,7 @@ static int remoteDomainGetCPUStats(virDomainPtr domai= n, (ret.params.params_len && ((ret.params.params_len % ret.nparams) || ret.nparams > nparams))= ) { virReportError(VIR_ERR_RPC, "%s", - _("remoteDomainGetCPUStats: " - "returned number of stats exceeds limit")); + _("remoteDomainGetCPUStats: returned number of stat= s exceeds limit")); memset(params, 0, sizeof(*params) * nparams * ncpus); goto cleanup; } @@ -6114,8 +6109,7 @@ remoteConnectSetKeepAlive(virConnectPtr conn, int int= erval, unsigned int count) =20 if (!virNetClientKeepAliveIsSupported(priv->client)) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("the caller doesn't support keepalive protocol;" - " perhaps it's missing event loop implementation"= )); + _("the caller doesn't support keepalive protocol; p= erhaps it's missing event loop implementation")); return -1; } =20 @@ -7562,8 +7556,7 @@ remoteDomainAuthorizedSSHKeysGet(virDomainPtr domain, =20 if (ret.keys.keys_len > REMOTE_DOMAIN_AUTHORIZED_SSH_KEYS_MAX) { virReportError(VIR_ERR_RPC, "%s", - _("remoteDomainAuthorizedSSHKeysGet: " - "returned number of keys exceeds limit")); + _("remoteDomainAuthorizedSSHKeysGet: returned numbe= r of keys exceeds limit")); goto cleanup; } =20 @@ -7592,8 +7585,7 @@ remoteDomainAuthorizedSSHKeysSet(virDomainPtr domain, =20 if (nkeys > REMOTE_DOMAIN_AUTHORIZED_SSH_KEYS_MAX) { virReportError(VIR_ERR_RPC, "%s", - _("remoteDomainAuthorizedSSHKeysSet: " - "returned number of keys exceeds limit")); + _("remoteDomainAuthorizedSSHKeysSet: returned numbe= r of keys exceeds limit")); return -1; } =20 @@ -7635,8 +7627,7 @@ remoteDomainGetMessages(virDomainPtr domain, =20 if (ret.msgs.msgs_len > REMOTE_DOMAIN_MESSAGES_MAX) { virReportError(VIR_ERR_RPC, "%s", - _("remoteDomainGetMessages: " - "returned number of msgs exceeds limit")); + _("remoteDomainGetMessages: returned number of msgs= exceeds limit")); goto cleanup; } =20 diff --git a/src/remote/remote_sockets.c b/src/remote/remote_sockets.c index 9c1944209f..4ab3d72933 100644 --- a/src/remote/remote_sockets.c +++ b/src/remote/remote_sockets.c @@ -96,8 +96,7 @@ remoteSplitURIScheme(virURI *uri, =20 if ((val =3D remoteDriverTransportTypeFromString(tmp)) < 0) { virReportError(VIR_ERR_INVALID_ARG, "%s", - _("remote_open: transport in URL not recognised= " - "(should be tls|unix|ssh|ext|tcp|libssh2|libs= sh)")); + _("remote_open: transport in URL not recognised= (should be tls|unix|ssh|ext|tcp|libssh2|libssh)")); return -1; } =20 --=20 2.41.0 From nobody Sat May 18 15:38:13 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; 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=1692949327; cv=none; d=zohomail.com; s=zohoarc; b=HKfaRIXJh7hGNIgMdV4CCP8Q1MwdIpR+2EE8n/xgtmY963HvLmkxOLaqfQ4QcqMYffdUAGEzsdaX++BUL5u3ZhQCdDpzQyQwcpUmPvlD5OTVmw2zaQkjI9YqVMPCVnjG07sn2kuEUS0EOCgZtGv47eIPtW/OKjzUd+ff98WhX5I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1692949327; 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=cjg5U0ufXaRhAJ7do8Mz2i5DCCG7oJoKr5xvm13PCvI=; b=AIyCZOcsGeApvr0pGZw9Rsi+oFZo84lAbc37gO/OIRADzNBpsXYiRpQU5Ef/k5qpuehuG1XFoQj+Xt/3tFBXsyVB2rfK0Cdxp88RAxTPQK9OWpkR1+CMdVl32ylPilEbNWoA1xjz157YF/mC4beG8nsTX7yJYFCnWD3lw8QRKS0= 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 1692949327383244.42062051976177; Fri, 25 Aug 2023 00:42:07 -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-137-LdKDr6icOsCNwq3oLlcC9A-1; Fri, 25 Aug 2023 03:40:51 -0400 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 4D6A685D073; Fri, 25 Aug 2023 07:40:38 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 35875492C13; Fri, 25 Aug 2023 07:40:38 +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 14EB719465A8; Fri, 25 Aug 2023 07:40:38 +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 3D8651946589 for ; Fri, 25 Aug 2023 07:40:36 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 2D11D2026D68; Fri, 25 Aug 2023 07:40:36 +0000 (UTC) Received: from localhost.localdomain (unknown [10.43.2.56]) by smtp.corp.redhat.com (Postfix) with ESMTP id C8A932026D2B for ; Fri, 25 Aug 2023 07:40:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1692949326; 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=cjg5U0ufXaRhAJ7do8Mz2i5DCCG7oJoKr5xvm13PCvI=; b=fpVU0rxFNBUoWFqIoPQWJjjyusfx+jgzQIFpz5+9ngKvhKsfficJDOlG5wOyjfMB5VoeEp ZKZmKkBWT4RlaDhZebifsdFlla0OHqlHBq8lYtxuFaKDxx3NFhnvnduBabPQgkKsms0g/G BjAhVDBok2Rn1ClRKeEV/TtLWqFD1Ms= X-MC-Unique: LdKDr6icOsCNwq3oLlcC9A-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH 16/27] rpc: Move error messages onto a single line Date: Fri, 25 Aug 2023 09:40:13 +0200 Message-ID: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 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: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 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: 1692949327663100005 Content-Type: text/plain; charset="utf-8"; x-default="true" Error messages are exempt from the 80 columns rule. Move them onto one line. Signed-off-by: Michal Privoznik Reviewed-by: Pavel Hrdina --- src/rpc/virnetclient.c | 9 +++---- src/rpc/virnetlibsshsession.c | 28 +++++++--------------- src/rpc/virnetserver.c | 9 +++---- src/rpc/virnetserverclient.c | 3 +-- src/rpc/virnetsshsession.c | 45 ++++++++++++----------------------- src/rpc/virnettlscontext.c | 6 +---- 6 files changed, 32 insertions(+), 68 deletions(-) diff --git a/src/rpc/virnetclient.c b/src/rpc/virnetclient.c index 18f87653f5..4ab8af68c5 100644 --- a/src/rpc/virnetclient.c +++ b/src/rpc/virnetclient.c @@ -1011,8 +1011,7 @@ int virNetClientSetTLSSession(virNetClient *client, } if (len !=3D 1 || buf[0] !=3D '\1') { virReportError(VIR_ERR_RPC, "%s", - _("server verification (of our certificate or IP " - "address) failed")); + _("server verification (of our certificate or IP ad= dress) failed")); goto error; } =20 @@ -2069,15 +2068,13 @@ virNetClientCallNew(virNetMessage *msg, (msg->bufferLength !=3D 0) && (msg->header.status =3D=3D VIR_NET_CONTINUE)) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("Attempt to send an asynchronous message with" - " a synchronous reply")); + _("Attempt to send an asynchronous message with a s= ynchronous reply")); goto error; } =20 if (expectReply && nonBlock) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("Attempt to send a non-blocking message with" - " a synchronous reply")); + _("Attempt to send a non-blocking message with a sy= nchronous reply")); goto error; } =20 diff --git a/src/rpc/virnetlibsshsession.c b/src/rpc/virnetlibsshsession.c index 8cb57e857f..6632e4a9ef 100644 --- a/src/rpc/virnetlibsshsession.c +++ b/src/rpc/virnetlibsshsession.c @@ -195,8 +195,7 @@ virLibsshServerKeyAsString(virNetLibsshSession *sess) =20 if (ssh_get_server_publickey(sess->session, &key) !=3D SSH_OK) { virReportError(VIR_ERR_LIBSSH, "%s", - _("failed to get the key of the current " - "session")); + _("failed to get the key of the current session")); return NULL; } =20 @@ -261,8 +260,7 @@ virNetLibsshCheckHostKey(virNetLibsshSession *sess) =20 /* host key verification failed */ virReportError(VIR_ERR_AUTH_FAILED, - _("!!! SSH HOST KEY VERIFICATION FAILED !!!: Identi= ty of host '%1$s:%2$d' differs from stored identity. " - "Please verify the new host key '%3$s' to avoid p= ossible man in the middle attack. The key is stored in '%4$s'."), + _("!!! SSH HOST KEY VERIFICATION FAILED !!!: Identi= ty of host '%1$s:%2$d' differs from stored identity. Please verify the new = host key '%3$s' to avoid possible man in the middle attack. The key is stor= ed in '%4$s'."), sess->hostname, sess->port, keyhashstr, sess->knownHostsFile); =20 @@ -279,8 +277,7 @@ virNetLibsshCheckHostKey(virNetLibsshSession *sess) /* ask to add the key */ if (!sess->cred || !sess->cred->cb) { virReportError(VIR_ERR_LIBSSH, "%s", - _("No user interaction callback provided: " - "Can't verify the session host key")); + _("No user interaction callback provided: C= an't verify the session host key")); return -1; } =20 @@ -355,8 +352,7 @@ virNetLibsshAuthenticatePrivkeyCb(const char *prompt, /* request user's key password */ if (!sess->cred || !sess->cred->cb) { virReportError(VIR_ERR_LIBSSH, "%s", - _("No user interaction callback provided: " - "Can't retrieve private key passphrase")); + _("No user interaction callback provided: Can't ret= rieve private key passphrase")); return -1; } =20 @@ -505,8 +501,7 @@ virNetLibsshAuthenticatePassword(virNetLibsshSession *s= ess) /* password authentication with interactive password request */ if (!sess->cred || !sess->cred->cb) { virReportError(VIR_ERR_LIBSSH, "%s", - _("Can't perform authentication: " - "Authentication callback not provided")); + _("Can't perform authentication: Authentication cal= lback not provided")); return SSH_AUTH_ERROR; } =20 @@ -567,9 +562,7 @@ virNetLibsshAuthenticateKeyboardInteractive(virNetLibss= hSession *sess, /* request user's key password */ if (!sess->cred || !sess->cred->cb) { virReportError(VIR_ERR_LIBSSH, "%s", - _("No user interaction callback provided: " - "Can't get input from keyboard interactive " - "authentication")); + _("No user interaction callback provided: Can't get= input from keyboard interactive authentication")); return SSH_AUTH_ERROR; } =20 @@ -738,12 +731,10 @@ virNetLibsshAuthenticate(virNetLibsshSession *sess) errmsg); } else if (no_method && !auth_failed) { virReportError(VIR_ERR_AUTH_FAILED, "%s", - _("None of the requested authentication methods " - "are supported by the server")); + _("None of the requested authentication methods are= supported by the server")); } else { virReportError(VIR_ERR_AUTH_FAILED, "%s", - _("All provided authentication methods with credent= ials " - "were rejected by the server")); + _("All provided authentication methods with credent= ials were rejected by the server")); } =20 return -1; @@ -803,8 +794,7 @@ virNetLibsshValidateConfig(virNetLibsshSession *sess) } if (!has_auths) { virReportError(VIR_ERR_LIBSSH, "%s", - _("No authentication methods and credentials " - "provided")); + _("No authentication methods and credentials provid= ed")); return -1; } =20 diff --git a/src/rpc/virnetserver.c b/src/rpc/virnetserver.c index 7233629f22..770476c1a6 100644 --- a/src/rpc/virnetserver.c +++ b/src/rpc/virnetserver.c @@ -372,8 +372,7 @@ virNetServerNew(const char *name, =20 if (max_clients < max_anonymous_clients) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("The overall maximum number of clients must not b= e less " - "than the number of clients waiting for authentic= ation")); + _("The overall maximum number of clients must not b= e less than the number of clients waiting for authentication")); return NULL; } =20 @@ -458,8 +457,7 @@ virNetServerNewPostExecRestart(virJSONValue *object, } if (max_clients < max_anonymous_clients) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("The overall maximum number of clients must n= ot be less " - "than the number of clients waiting for authe= ntication")); + _("The overall maximum number of clients must n= ot be less than the number of clients waiting for authentication")); return NULL; } } else { @@ -1127,8 +1125,7 @@ virNetServerSetClientLimits(virNetServer *srv, =20 if (max < max_unauth) { virReportError(VIR_ERR_INVALID_ARG, "%s", - _("The overall maximum number of clients must not b= e less " - "than the number of clients waiting for authentic= ation")); + _("The overall maximum number of clients must not b= e less than the number of clients waiting for authentication")); return -1; } =20 diff --git a/src/rpc/virnetserverclient.c b/src/rpc/virnetserverclient.c index c0c018b6be..355aab4b04 100644 --- a/src/rpc/virnetserverclient.c +++ b/src/rpc/virnetserverclient.c @@ -531,8 +531,7 @@ virNetServerClient *virNetServerClientNewPostExecRestar= t(virNetServer *srv, } else { if (virJSONValueObjectGetNumberLong(object, "conn_time", ×tam= p) < 0) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("Malformed conn_time field in JSON " - "state document")); + _("Malformed conn_time field in JSON state docu= ment")); return NULL; } } diff --git a/src/rpc/virnetsshsession.c b/src/rpc/virnetsshsession.c index 16d420467e..316521d4cf 100644 --- a/src/rpc/virnetsshsession.c +++ b/src/rpc/virnetsshsession.c @@ -307,8 +307,7 @@ virNetSSHCheckHostKey(virNetSSHSession *sess) /* ask to add the key */ if (!sess->cred || !sess->cred->cb) { virReportError(VIR_ERR_SSH, "%s", - _("No user interaction callback provided: " - "Can't verify the session host key")); + _("No user interaction callback provided: C= an't verify the session host key")); return -1; } =20 @@ -320,8 +319,7 @@ virNetSSHCheckHostKey(virNetSSHSession *sess) =20 if (i =3D=3D sess->cred->ncredtype) { virReportError(VIR_ERR_SSH, "%s", - _("no suitable callback for host key " - "verification")); + _("no suitable callback for host key verifi= cation")); return -1; } =20 @@ -348,8 +346,7 @@ virNetSSHCheckHostKey(virNetSSHSession *sess) =20 if (sess->cred->cb(&askKey, 1, sess->cred->cbdata)) { virReportError(VIR_ERR_SSH, "%s", - _("failed to retrieve decision to accept " - "host key")); + _("failed to retrieve decision to accept ho= st key")); tmp =3D (char*)askKey.prompt; VIR_FREE(tmp); VIR_FREE(keyhashstr); @@ -455,8 +452,7 @@ virNetSSHCheckHostKey(virNetSSHSession *sess) case LIBSSH2_KNOWNHOST_CHECK_MISMATCH: /* host key verification failed */ virReportError(VIR_ERR_AUTH_FAILED, - _("!!! SSH HOST KEY VERIFICATION FAILED !!!: Identi= ty of host '%1$s:%2$d' differs from stored identity. " - "Please verify the new host key '%3$s' to avoid p= ossible man in the middle attack. The key is stored in '%4$s'."), + _("!!! SSH HOST KEY VERIFICATION FAILED !!!: Identi= ty of host '%1$s:%2$d' differs from stored identity. Please verify the new = host key '%3$s' to avoid possible man in the middle attack. The key is stor= ed in '%4$s'."), sess->hostname, sess->port, knownHostEntry->key, sess->knownHostsFile); return -1; @@ -532,12 +528,10 @@ virNetSSHAuthenticateAgent(virNetSSHSession *sess) if (ret =3D=3D 1) { if (no_identity) { virReportError(VIR_ERR_AUTH_FAILED, "%s", - _("SSH Agent did not provide any " - "authentication identity")); + _("SSH Agent did not provide any authentication= identity")); } else { virReportError(VIR_ERR_AUTH_FAILED, "%s", - _("All identities provided by the SSH Agent " - "were rejected")); + _("All identities provided by the SSH Agent wer= e rejected")); } return 1; } @@ -589,8 +583,7 @@ virNetSSHAuthenticatePrivkey(virNetSSHSession *sess, /* request user's key password */ if (!sess->cred || !sess->cred->cb) { virReportError(VIR_ERR_SSH, "%s", - _("No user interaction callback provided: " - "Can't retrieve private key passphrase")); + _("No user interaction callback provided: Can't ret= rieve private key passphrase")); return -1; } =20 @@ -615,8 +608,7 @@ virNetSSHAuthenticatePrivkey(virNetSSHSession *sess, =20 if (sess->cred->cb(&retr_passphrase, 1, sess->cred->cbdata)) { virReportError(VIR_ERR_SSH, "%s", - _("failed to retrieve private key passphrase: " - "callback has failed")); + _("failed to retrieve private key passphrase: callb= ack has failed")); tmp =3D (char *)retr_passphrase.prompt; VIR_FREE(tmp); return -1; @@ -671,8 +663,7 @@ virNetSSHAuthenticatePassword(virNetSSHSession *sess) /* password authentication with interactive password request */ if (!sess->cred || !sess->cred->cb) { virReportError(VIR_ERR_SSH, "%s", - _("Can't perform authentication: " - "Authentication callback not provided")); + _("Can't perform authentication: Authentication cal= lback not provided")); goto cleanup; } =20 @@ -732,8 +723,7 @@ virNetSSHAuthenticateKeyboardInteractive(virNetSSHSessi= on *sess, =20 if (!sess->cred || !sess->cred->cb) { virReportError(VIR_ERR_SSH, "%s", - _("Can't perform keyboard-interactive authenticatio= n: " - "Authentication callback not provided")); + _("Can't perform keyboard-interactive authenticatio= n: Authentication callback not provided")); return -1; } =20 @@ -748,8 +738,7 @@ virNetSSHAuthenticateKeyboardInteractive(virNetSSHSessi= on *sess, switch (sess->authCbErr) { case VIR_NET_SSH_AUTHCB_NO_METHOD: virReportError(VIR_ERR_SSH, "%s", - _("no suitable method to retrieve " - "authentication credentials")); + _("no suitable method to retrieve authenticatio= n credentials")); return -1; case VIR_NET_SSH_AUTHCB_OOM: /* OOM error already reported */ @@ -801,8 +790,7 @@ virNetSSHAuthenticate(virNetSSHSession *sess) =20 if (!sess->nauths) { virReportError(VIR_ERR_SSH, "%s", - _("No authentication methods and credentials " - "provided")); + _("No authentication methods and credentials provid= ed")); return -1; } =20 @@ -866,12 +854,10 @@ virNetSSHAuthenticate(virNetSSHSession *sess) /* pass through the error */ } else if (no_method && !auth_failed) { virReportError(VIR_ERR_AUTH_FAILED, "%s", - _("None of the requested authentication methods " - "are supported by the server")); + _("None of the requested authentication methods are= supported by the server")); } else { virReportError(VIR_ERR_AUTH_FAILED, "%s", - _("All provided authentication methods with credent= ials " - "were rejected by the server")); + _("All provided authentication methods with credent= ials were rejected by the server")); } =20 return -1; @@ -914,8 +900,7 @@ virNetSSHValidateConfig(virNetSSHSession *sess) { if (sess->nauths =3D=3D 0) { virReportError(VIR_ERR_SSH, "%s", - _("No authentication methods and credentials " - "provided")); + _("No authentication methods and credentials provid= ed")); return -1; } =20 diff --git a/src/rpc/virnettlscontext.c b/src/rpc/virnettlscontext.c index 1939fe5d6e..dc60244927 100644 --- a/src/rpc/virnettlscontext.c +++ b/src/rpc/virnettlscontext.c @@ -366,11 +366,7 @@ virNetTLSContextCheckCertDNACL(const char *dname, =20 /* This is the most common error: make it informative. */ virReportError(VIR_ERR_SYSTEM_ERROR, "%s", - _("Client's Distinguished Name is not on the list " - "of allowed clients (tls_allowed_dn_list). Use " - "'virt-pki-query-dn clientcert.pem' to view the " - "Distinguished Name field in the client certificate, " - "or run this daemon with --verbose option.")); + _("Client's Distinguished Name is not on the list of al= lowed clients (tls_allowed_dn_list). Use 'virt-pki-query-dn clientcert.pem= ' to view the Distinguished Name field in the client certificate, or run th= is daemon with --verbose option.")); return 0; } =20 --=20 2.41.0 From nobody Sat May 18 15:38:13 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=1692949259; cv=none; d=zohomail.com; s=zohoarc; b=Yyfg4MyUWN342ZRQmtdbiD2VD2rEUZG/vLU19uKy42l7FlyUApiCJGSvbnyYyyNh/W9Ekh1l1wI/a9UmyS9YqFnXT6r0jT4THif/M1xfteRG1ciXFyJ+g8y10VlywuxzHz5/dzd251ew3Oc8m9vmw1bcab3X6Y7HtWn0ygq5G/A= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1692949259; 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=fy4o4zMcPX9yn4ipK31rCrtFAbbUlOuyexBk9xvMLW0=; b=E1CyGbLYB0BcmnLKtQgltJFbSCaYcGrNIHoUUBiwbQez65feoM22fwvZalLOmUcRON5CpjLvxBTNz21eRGdGWF6uxUnENn9RX7rudSVt46SH7QK+T7IvJRx817+bODxYaoxeMK/xFApkHVfeFo/0jxV7IRJxYvhpF7vVfSFEdno= 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 1692949259171850.986665434929; Fri, 25 Aug 2023 00:40:59 -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-596-CSrIHn-pPsyddzrBxlSPjQ-1; Fri, 25 Aug 2023 03:40:51 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 547BA8061D5; Fri, 25 Aug 2023 07:40:40 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0A1B840C2005; Fri, 25 Aug 2023 07:40:40 +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 A438B1946A4E; Fri, 25 Aug 2023 07:40:39 +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 C83F719465B8 for ; Fri, 25 Aug 2023 07:40:36 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id BB6202026D76; Fri, 25 Aug 2023 07:40:36 +0000 (UTC) Received: from localhost.localdomain (unknown [10.43.2.56]) by smtp.corp.redhat.com (Postfix) with ESMTP id 636DE2026D68 for ; Fri, 25 Aug 2023 07:40:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1692949258; 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=fy4o4zMcPX9yn4ipK31rCrtFAbbUlOuyexBk9xvMLW0=; b=YBcOjqkMshk7uWLjS38MAfRJMnccAtlu+27CfNm9icktkcZyutLN46yg/0oCJmP9vPaKHm 6+7VvzLIof/kJHP0gDbBRaIMUWufr2KFGXcbGVXslSP08xCahlP3fDggZAHuB/wis0PwU8 S7Y3SZlMsRLsf4l+y6I+lckN1TEanjs= X-MC-Unique: CSrIHn-pPsyddzrBxlSPjQ-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH 17/27] security: Move error messages onto a single line Date: Fri, 25 Aug 2023 09:40:14 +0200 Message-ID: <4c0b51c4f055107bea47c010f9f489d343464f49.1692949012.git.mprivozn@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 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: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 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: 1692949260877100001 Content-Type: text/plain; charset="utf-8"; x-default="true" Error messages are exempt from the 80 columns rule. Move them onto one line. Signed-off-by: Michal Privoznik Reviewed-by: Pavel Hrdina --- src/security/security_dac.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/security/security_dac.c b/src/security/security_dac.c index 20e0998fbc..4667328b26 100644 --- a/src/security/security_dac.c +++ b/src/security/security_dac.c @@ -2320,8 +2320,7 @@ virSecurityDACGenLabel(virSecurityManager *mgr, =20 if (seclabel->imagelabel) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("security image label already " - "defined for VM")); + _("security image label already defined for VM")); return rc; } =20 --=20 2.41.0 From nobody Sat May 18 15:38:13 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; 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=1692949330; cv=none; d=zohomail.com; s=zohoarc; b=Q2OBQlyLOIVa6Wa7JBzH/0vIt/uPQjn4nsOIs0961085p3uxZ4oe9Hd1KtlIPob0UiBgDz3ajtdovt2VcQHQ45j/5vRmyKwuZWRpExsZLxdwjQoJxZ/TGyFjpSuG1HFr0rnMF9blpoNPVPE1/DtZPihtND1Lm2Bjdcb7beeOm2E= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1692949330; 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=iX5MoInXMLQHkdLZCQKKnEO97JFK7A5quBFLHPZqcFc=; b=QwNy2U0ev4rcFy4ZO1CsAGHSHDHa5y4ZtBiA/p9yrtUqbPxNuPesdZ2hEREYJHcCWOmXK8Z6H7iX4wOMiTIv6bGFJdk75xzsRtSyHA9SXU3XfoAlP0nQcxWh3rj68rYk+9FWI2K6dGaZasAEZwZITQLqfy0S3MvY+mvLUKyc658= 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 1692949330592104.99009663433708; Fri, 25 Aug 2023 00:42:10 -0700 (PDT) Received: from mimecast-mx02.redhat.com (66.187.233.73 [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-313-cpUB71piO6CSZMIEW0I0lA-1; Fri, 25 Aug 2023 03:40:51 -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 9374A2815E2F; Fri, 25 Aug 2023 07:40:39 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7966640D2839; Fri, 25 Aug 2023 07:40:39 +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 6423D19465BB; Fri, 25 Aug 2023 07:40:39 +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 65DC019465B1 for ; Fri, 25 Aug 2023 07:40:37 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 56C1C2026FFB; Fri, 25 Aug 2023 07:40:37 +0000 (UTC) Received: from localhost.localdomain (unknown [10.43.2.56]) by smtp.corp.redhat.com (Postfix) with ESMTP id F24E82026D68 for ; Fri, 25 Aug 2023 07:40:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1692949329; 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=iX5MoInXMLQHkdLZCQKKnEO97JFK7A5quBFLHPZqcFc=; b=Pjw7NFxpEj9JZt014woI7bnbkPEf+nNFNo/pBLgDgeTHYm6mlnG1ECrbxHz3QkN8ST4cDo AIlkO/XrlBDfBwiHjQ4Jk6mSEPdkII8xrS1vvcHamigXqtowDOf3NN8lPDRadOPRVxDkH+ rgLgch7dpxBUDbXCerpZdCoil0edHlI= X-MC-Unique: cpUB71piO6CSZMIEW0I0lA-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH 18/27] storage: Move error messages onto a single line Date: Fri, 25 Aug 2023 09:40:15 +0200 Message-ID: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 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: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 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: 1692949331281100001 Content-Type: text/plain; charset="utf-8"; x-default="true" Error messages are exempt from the 80 columns rule. Move them onto one line. Signed-off-by: Michal Privoznik Reviewed-by: Pavel Hrdina --- src/storage/storage_backend_disk.c | 3 +- src/storage/storage_backend_fs.c | 3 +- src/storage/storage_backend_zfs.c | 3 +- src/storage/storage_driver.c | 21 +++++-------- src/storage/storage_util.c | 48 ++++++++++-------------------- 5 files changed, 26 insertions(+), 52 deletions(-) diff --git a/src/storage/storage_backend_disk.c b/src/storage/storage_backe= nd_disk.c index 7466f0e234..996395de4a 100644 --- a/src/storage/storage_backend_disk.c +++ b/src/storage/storage_backend_disk.c @@ -659,8 +659,7 @@ virStorageBackendDiskPartFormat(virStoragePoolObj *pool, *partFormat =3D g_strdup_printf("logical %s", partedFo= rmat); } else { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("no extended partition found and no " - "primary partition available")); + _("no extended partition found and no p= rimary partition available")); return -1; } break; diff --git a/src/storage/storage_backend_fs.c b/src/storage/storage_backend= _fs.c index a80d228201..1851704d21 100644 --- a/src/storage/storage_backend_fs.c +++ b/src/storage/storage_backend_fs.c @@ -219,8 +219,7 @@ virStorageBackendFileSystemIsValid(virStoragePoolObj *p= ool) _("missing source device")); else virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("expected exactly 1 device for the " - "storage pool")); + _("expected exactly 1 device for the storag= e pool")); return -1; } } diff --git a/src/storage/storage_backend_zfs.c b/src/storage/storage_backen= d_zfs.c index 4e243a738a..178b505e92 100644 --- a/src/storage/storage_backend_zfs.c +++ b/src/storage/storage_backend_zfs.c @@ -310,8 +310,7 @@ virStorageBackendZFSCreateVol(virStoragePoolObj *pool, =20 if (vol->target.encryption !=3D NULL) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - "%s", _("storage pool does not support encrypted " - "volumes")); + "%s", _("storage pool does not support encrypted vo= lumes")); return -1; } =20 diff --git a/src/storage/storage_driver.c b/src/storage/storage_driver.c index 5a9dcbd193..314fe930e0 100644 --- a/src/storage/storage_driver.c +++ b/src/storage/storage_driver.c @@ -1903,8 +1903,7 @@ storageVolCreateXML(virStoragePoolPtr pool, =20 if (!voldef->target.capacity && !backend->buildVol) { virReportError(VIR_ERR_NO_SUPPORT, - "%s", _("volume capacity required for this " - "storage pool")); + "%s", _("volume capacity required for this storage = pool")); goto cleanup; } =20 @@ -1919,8 +1918,7 @@ storageVolCreateXML(virStoragePoolPtr pool, =20 if (!backend->createVol) { virReportError(VIR_ERR_NO_SUPPORT, - "%s", _("storage pool does not support volume " - "creation")); + "%s", _("storage pool does not support volume creat= ion")); goto cleanup; } =20 @@ -2103,8 +2101,7 @@ storageVolCreateXMLFrom(virStoragePoolPtr pool, =20 if (!backend->buildVolFrom) { virReportError(VIR_ERR_NO_SUPPORT, - "%s", _("storage pool does not support" - " volume creation from an existing volume")= ); + "%s", _("storage pool does not support volume creat= ion from an existing volume")); goto cleanup; } =20 @@ -2274,8 +2271,7 @@ virStorageBackendPloopRestoreDesc(char *path) =20 if (virFileRemove(desc, 0, 0) < 0) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("refresh ploop failed:" - " unable to delete DiskDescriptor.xml")); + _("refresh ploop failed: unable to delete DiskDescr= iptor.xml")); return -1; } =20 @@ -2497,16 +2493,14 @@ storageVolResize(virStorageVolPtr vol, =20 if (abs_capacity < voldef->target.allocation) { virReportError(VIR_ERR_INVALID_ARG, "%s", - _("can't shrink capacity below " - "existing allocation")); + _("can't shrink capacity below existing allocation"= )); goto cleanup; } =20 if (abs_capacity < voldef->target.capacity && !(flags & VIR_STORAGE_VOL_RESIZE_SHRINK)) { virReportError(VIR_ERR_INVALID_ARG, "%s", - _("Can't shrink capacity below current " - "capacity unless shrink flag explicitly specified= ")); + _("Can't shrink capacity below current capacity unl= ess shrink flag explicitly specified")); goto cleanup; } =20 @@ -2521,8 +2515,7 @@ storageVolResize(virStorageVolPtr vol, =20 if (!backend->resizeVol) { virReportError(VIR_ERR_NO_SUPPORT, "%s", - _("storage pool does not support changing of " - "volume capacity")); + _("storage pool does not support changing of volume= capacity")); goto cleanup; } =20 diff --git a/src/storage/storage_util.c b/src/storage/storage_util.c index d39aa92eae..bf8de2475d 100644 --- a/src/storage/storage_util.c +++ b/src/storage/storage_util.c @@ -236,8 +236,7 @@ storageBackendCreateBlockFrom(virStoragePoolObj *pool G= _GNUC_UNUSED, =20 if (flags & VIR_STORAGE_VOL_CREATE_PREALLOC_METADATA) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("metadata preallocation is not supported for bloc= k " - "volumes")); + _("metadata preallocation is not supported for bloc= k volumes")); return -1; } =20 @@ -389,8 +388,7 @@ storageBackendCreateRaw(virStoragePoolObj *pool, =20 if (flags & VIR_STORAGE_VOL_CREATE_PREALLOC_METADATA) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("metadata preallocation is not supported for raw " - "volumes")); + _("metadata preallocation is not supported for raw = volumes")); return -1; } =20 @@ -571,8 +569,7 @@ storageBackendCreatePloop(virStoragePoolObj *pool G_GNU= C_UNUSED, =20 if (vol->target.encryption) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("encrypted ploop volumes are not supported with " - "ploop init")); + _("encrypted ploop volumes are not supported with p= loop init")); return -1; } =20 @@ -585,8 +582,7 @@ storageBackendCreatePloop(virStoragePoolObj *pool G_GNU= C_UNUSED, create_tool =3D virFindFileInPath("ploop"); if (!create_tool && !inputvol) { virReportError(VIR_ERR_INTERNAL_ERROR, - "%s", _("unable to find ploop, please install " - "ploop tools")); + "%s", _("unable to find ploop, please install ploop= tools")); return -1; } =20 @@ -899,8 +895,7 @@ storageBackendCreateQemuImgSetBacking(virStoragePoolObj= *pool, =20 if (info->preallocate) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("metadata preallocation conflicts with backing" - " store")); + _("metadata preallocation conflicts with backing st= ore")); return -1; } =20 @@ -1273,8 +1268,7 @@ storageBackendCreateQemuImgSecretPath(virStoragePoolO= bj *pool, =20 if (enc->nsecrets !=3D 1) { virReportError(VIR_ERR_INVALID_ARG, "%s", - _("A single " - "element is expected in encryption description")); + _("A single element= is expected in encryption description")); return NULL; } =20 @@ -1365,8 +1359,7 @@ storageBackendCreateQemuImg(virStoragePoolObj *pool, create_tool =3D virFindFileInPath("qemu-img"); if (!create_tool) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("creation of non-raw file images is " - "not supported without qemu-img.")); + _("creation of non-raw file images is not supported= without qemu-img.")); return -1; } =20 @@ -2398,8 +2391,7 @@ virStorageBackendVolResizeLocal(virStoragePoolObj *po= ol, } else if (vol->target.format =3D=3D VIR_STORAGE_FILE_RAW && vol->targ= et.encryption) { if (pre_allocate) { virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s", - _("preallocate is only supported for an " - "unencrypted raw volume")); + _("preallocate is only supported for an unencry= pted raw volume")); return -1; } =20 @@ -2409,8 +2401,7 @@ virStorageBackendVolResizeLocal(virStoragePoolObj *po= ol, } else { if (pre_allocate) { virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s", - _("preallocate is only supported for raw " - "type volume")); + _("preallocate is only supported for raw type v= olume")); return -1; } =20 @@ -2435,8 +2426,7 @@ storageBackendPloopHasSnapshots(char *path) snap_tool =3D virFindFileInPath("ploop"); if (!snap_tool) { virReportError(VIR_ERR_INTERNAL_ERROR, - "%s", _("unable to find ploop, please install " - "ploop tools")); + "%s", _("unable to find ploop, please install ploop= tools")); return -1; } =20 @@ -2478,8 +2468,7 @@ virStorageBackendVolUploadLocal(virStoragePoolObj *po= ol G_GNUC_UNUSED, return -1; } else if (!has_snap) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("can't upload volume, all existing snapshots" - " will be lost")); + _("can't upload volume, all existing snapshots = will be lost")); return -1; } =20 @@ -2512,8 +2501,7 @@ virStorageBackendVolDownloadLocal(virStoragePoolObj *= pool G_GNUC_UNUSED, return -1; } else if (!has_snap) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("can't download volume, all existing snapshot= s" - " will be lost")); + _("can't download volume, all existing snapshot= s will be lost")); return -1; } path =3D g_strdup_printf("%s/root.hds", vol->target.path); @@ -3161,8 +3149,7 @@ virStorageBackendBLKIDFindEmpty(const char *device, =20 if (ret =3D=3D 0 && blkid_do_probe(probe) !=3D 1) { virReportError(VIR_ERR_STORAGE_PROBE_FAILED, "%s", - _("Found additional probes to run, probing may " - "be incorrect")); + _("Found additional probes to run, probing may be i= ncorrect")); ret =3D -1; } =20 @@ -3287,8 +3274,7 @@ virStorageBackendPARTEDValidLabel(const char *device, switch (check) { case VIR_STORAGE_PARTED_ERROR: virReportError(VIR_ERR_OPERATION_FAILED, "%s", - _("Error checking for disk label, failed to get " - "disk partition information")); + _("Error checking for disk label, failed to get dis= k partition information")); break; =20 case VIR_STORAGE_PARTED_MATCH: @@ -3302,8 +3288,7 @@ virStorageBackendPARTEDValidLabel(const char *device, =20 case VIR_STORAGE_PARTED_DIFFERENT: virReportError(VIR_ERR_OPERATION_FAILED, "%s", - _("Known, but different label format present, " - "requires build --overwrite")); + _("Known, but different label format present, requi= res build --overwrite")); break; =20 case VIR_STORAGE_PARTED_UNKNOWN: @@ -3316,8 +3301,7 @@ virStorageBackendPARTEDValidLabel(const char *device, =20 case VIR_STORAGE_PARTED_NOPTTYPE: virReportError(VIR_ERR_OPERATION_FAILED, "%s", - _("Unable to determine Partition Type, " - "requires build --overwrite")); + _("Unable to determine Partition Type, requires bui= ld --overwrite")); break; =20 case VIR_STORAGE_PARTED_PTTYPE_UNK: --=20 2.41.0 From nobody Sat May 18 15:38:13 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; 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=1692949264; cv=none; d=zohomail.com; s=zohoarc; b=Zn3NZktKxOmueZEiYG8USJzayGjLtqqX08LcfJrKfMliEy4zORaWFhmHkpxr/x3xWUBqzsEXVF0Ej5A2hSv3TfZj9AMV8v3ANVhYYw0L1VK6ealbIiA3ssJsB/KLUG5Ydp9dp/VTrkRJQwqyZwBgqCy7noY/wZRIxknavWHpSaE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1692949264; 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=mzZ1agl+K/Ck6mildUEtglGZLjDnJbGuR+7Vh2Yj7K4=; b=e+jDdJLrw5AkMXCgT+1ucTkDNcYDdxDBU50XFGjM8fG7h2IW6uGlRRoPU5U6D2InLNkmS1ehdcFcSe1jRei3C5YUK9FWf2HlScYdeiZ0YRUmxCOqrnVwQa7FsjnY02PECZPPn/1KhceCGBBaQGa3yrq06vByGQUU3g+Xjyt8RZ0= 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 1692949264379185.921974744939; Fri, 25 Aug 2023 00:41:04 -0700 (PDT) Received: from mimecast-mx02.redhat.com (66.187.233.73 [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-631-9VgW2fkMOdK1EDR5iG-r3g-1; Fri, 25 Aug 2023 03:40:55 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 0BBF4281294A; Fri, 25 Aug 2023 07:40:42 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id EC73D140E962; Fri, 25 Aug 2023 07:40:41 +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 DE22919465B1; Fri, 25 Aug 2023 07:40:41 +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 3A62419465BB for ; Fri, 25 Aug 2023 07:40:38 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id E64DE2026D68; Fri, 25 Aug 2023 07:40:37 +0000 (UTC) Received: from localhost.localdomain (unknown [10.43.2.56]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8E6852026D33 for ; Fri, 25 Aug 2023 07:40:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1692949263; 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=mzZ1agl+K/Ck6mildUEtglGZLjDnJbGuR+7Vh2Yj7K4=; b=ECwIpjbNXzz9/P7nIMCVVqEBEMuzsx+3KavF9JA7ipCqKWyjFKC9mzI07k4/qwTahUS3Sj WFf5bGizE7Xr3lcwFD83l7R4yzgals06pSyiPLn5PpXDa9SqoPYu0yAAEdq/nQRAGgrFWb FpMkwAaXfDtYUfqCIPhAKwR2TZ7Xu68= X-MC-Unique: 9VgW2fkMOdK1EDR5iG-r3g-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH 19/27] storage_file: Move error messages onto a single line Date: Fri, 25 Aug 2023 09:40:16 +0200 Message-ID: <35aaee8fe4c22f1f737443a3316bd283e8a8482d.1692949012.git.mprivozn@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 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: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 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: 1692949265428100001 Content-Type: text/plain; charset="utf-8"; x-default="true" Error messages are exempt from the 80 columns rule. Move them onto one line. Signed-off-by: Michal Privoznik Reviewed-by: Pavel Hrdina --- src/storage_file/storage_source.c | 3 +- .../storage_source_backingstore.c | 36 +++++++------------ 2 files changed, 13 insertions(+), 26 deletions(-) diff --git a/src/storage_file/storage_source.c b/src/storage_file/storage_s= ource.c index 3c50239e29..b97bbde619 100644 --- a/src/storage_file/storage_source.c +++ b/src/storage_file/storage_source.c @@ -762,8 +762,7 @@ virStorageSourceGetRelativeBackingPath(virStorageSource= *top, =20 if (next !=3D base) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("failed to resolve relative backing name: " - "base image is not in backing chain")); + _("failed to resolve relative backing name: base im= age is not in backing chain")); return -1; } =20 diff --git a/src/storage_file/storage_source_backingstore.c b/src/storage_f= ile/storage_source_backingstore.c index a4ee2a5d78..00fcfe9fd7 100644 --- a/src/storage_file/storage_source_backingstore.c +++ b/src/storage_file/storage_source_backingstore.c @@ -441,8 +441,7 @@ virStorageSourceParseBackingJSONPath(virStorageSource *= src, =20 if (!(path =3D virJSONValueObjectGetString(json, "filename"))) { virReportError(VIR_ERR_INVALID_ARG, "%s", - _("missing 'filename' field in JSON backing volume " - "definition")); + _("missing 'filename' field in JSON backing volume = definition")); return -1; } =20 @@ -597,8 +596,7 @@ virStorageSourceParseBackingJSONInetSocketAddress(virSt= orageNetHostDef *host, =20 if (!json) { virReportError(VIR_ERR_INVALID_ARG, "%s", - _("missing remote server specification in JSON " - "backing volume definition")); + _("missing remote server specification in JSON back= ing volume definition")); return -1; } =20 @@ -607,8 +605,7 @@ virStorageSourceParseBackingJSONInetSocketAddress(virSt= orageNetHostDef *host, =20 if (!hostname) { virReportError(VIR_ERR_INVALID_ARG, "%s", - _("missing hostname for tcp backing server in " - "JSON backing volume definition")); + _("missing hostname for tcp backing server in JSON = backing volume definition")); return -1; } =20 @@ -631,15 +628,13 @@ virStorageSourceParseBackingJSONSocketAddress(virStor= ageNetHostDef *host, =20 if (!json) { virReportError(VIR_ERR_INVALID_ARG, "%s", - _("missing remote server specification in JSON " - "backing volume definition")); + _("missing remote server specification in JSON back= ing volume definition")); return -1; } =20 if (!(type =3D virJSONValueObjectGetString(json, "type"))) { virReportError(VIR_ERR_INVALID_ARG, "%s", - _("missing socket address type in " - "JSON backing volume definition")); + _("missing socket address type in JSON backing volu= me definition")); return -1; } =20 @@ -657,8 +652,7 @@ virStorageSourceParseBackingJSONSocketAddress(virStorag= eNetHostDef *host, =20 if (!socket) { virReportError(VIR_ERR_INVALID_ARG, "%s", - _("missing socket path for udp backing server i= n " - "JSON backing volume definition")); + _("missing socket path for udp backing server i= n JSON backing volume definition")); return -1; } =20 @@ -694,8 +688,7 @@ virStorageSourceParseBackingJSONGluster(virStorageSourc= e *src, =20 if (!volume || !path || !server) { virReportError(VIR_ERR_INVALID_ARG, "%s", - _("missing 'volume', 'path' or 'server' attribute i= n " - "JSON backing definition for gluster volume")); + _("missing 'volume', 'path' or 'server' attribute i= n JSON backing definition for gluster volume")); return -1; } =20 @@ -708,8 +701,7 @@ virStorageSourceParseBackingJSONGluster(virStorageSourc= e *src, nservers =3D virJSONValueArraySize(server); if (nservers =3D=3D 0) { virReportError(VIR_ERR_INVALID_ARG, "%s", - _("at least 1 server is necessary in " - "JSON backing definition for gluster volume")); + _("at least 1 server is necessary in JSON backing d= efinition for gluster volume")); =20 return -1; } @@ -809,8 +801,7 @@ virStorageSourceParseBackingJSONNbd(virStorageSource *s= rc, =20 if (!path && !host && !server) { virReportError(VIR_ERR_INVALID_ARG, "%s", - _("missing host specification of NBD server in JSON= " - "backing volume definition")); + _("missing host specification of NBD server in JSON= backing volume definition")); return -1; } =20 @@ -899,8 +890,7 @@ virStorageSourceParseBackingJSONSSH(virStorageSource *s= rc, =20 if (!(host || server) || !path) { virReportError(VIR_ERR_INVALID_ARG, "%s", - _("missing host/server or path of SSH JSON backing " - "volume definition")); + _("missing host/server or path of SSH JSON backing = volume definition")); return -1; } =20 @@ -957,8 +947,7 @@ virStorageSourceParseBackingJSONRBD(virStorageSource *s= rc, =20 if (!pool || !image) { virReportError(VIR_ERR_INVALID_ARG, "%s", - _("missing pool or image name in ceph backing volum= e " - "JSON specification")); + _("missing pool or image name in ceph backing volum= e JSON specification")); return -1; } =20 @@ -1034,8 +1023,7 @@ virStorageSourceParseBackingJSONVxHS(virStorageSource= *src, =20 if (!vdisk_id || !server) { virReportError(VIR_ERR_INVALID_ARG, "%s", - _("missing 'vdisk-id' or 'server' attribute in " - "JSON backing definition for VxHS volume")); + _("missing 'vdisk-id' or 'server' attribute in JSON= backing definition for VxHS volume")); return -1; } =20 --=20 2.41.0 From nobody Sat May 18 15:38:13 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; 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=1692949254; cv=none; d=zohomail.com; s=zohoarc; b=YjKfwnPrZlRdsnI4ASGfxKAXjqZDXruYqFaMAw0IR9K8qRRSJSQvVHaf0q7EXPo5mDhH1ANAlyw/DqFmE2KNNOQxyTuXjE4xgutkykj4O8mmHvU2QQOVxGhlrllufmoHCMUMhD01KAQwYMXe1YWtn+e7Qo8ErENrFV+jhQIQgzA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1692949254; 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=6vSiGjp2wc5de7Lhbo7S4+KxILWJwZP8CczbLt6D0ng=; b=BCrZnFP8s27h7iBEWRxlpr72x2Vu27OJXwxxdPCblBiWLiVLVz1NLK3qRoy9Ogz/Bq3chSIsghhaF6n187F3RM2M4SNnt2dphszyKApjXsYFrDzvhphOMMM41PFh0wnxj3yHKdUDK/sJvpRr1brnZfV1Dzy9LKiF0g8Uge4+sww= 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 1692949254787686.2795790847753; Fri, 25 Aug 2023 00:40:54 -0700 (PDT) Received: from mimecast-mx02.redhat.com (66.187.233.73 [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-117-T5pnPIi4NamRgDSbU6G95w-1; Fri, 25 Aug 2023 03:40:49 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 0BFEF1C09A62; Fri, 25 Aug 2023 07:40:41 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id EC5F86B59C; Fri, 25 Aug 2023 07:40:40 +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 CE33C19465B7; Fri, 25 Aug 2023 07:40:40 +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 8D74319465B1 for ; Fri, 25 Aug 2023 07:40:38 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 8146F2026D68; Fri, 25 Aug 2023 07:40:38 +0000 (UTC) Received: from localhost.localdomain (unknown [10.43.2.56]) by smtp.corp.redhat.com (Postfix) with ESMTP id 28F622026D76 for ; Fri, 25 Aug 2023 07:40:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1692949253; 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=6vSiGjp2wc5de7Lhbo7S4+KxILWJwZP8CczbLt6D0ng=; b=DrFVRBGHOMALlItfmjeLxdqdx+YYe1DqRI2I1iAzUSylr/NROcoUbeLKt27dQv4661eGAb a4UqmXJCHhVIdNOij97avS3K5ELu1Syk3KyIXO5F+1qH+V7jkG+kwjy4sabXhzbO8fuJOC 6XCfVj1hQ1hUfudhfMQYr2wSMpfoTeg= X-MC-Unique: T5pnPIi4NamRgDSbU6G95w-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH 20/27] test: Move error messages onto a single line Date: Fri, 25 Aug 2023 09:40:17 +0200 Message-ID: <5a598dba79c8e32a2ef1522a0c034001c4e7ae29.1692949012.git.mprivozn@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 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: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.5 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: 1692949255177100010 Content-Type: text/plain; charset="utf-8"; x-default="true" Error messages are exempt from the 80 columns rule. Move them onto one line. Signed-off-by: Michal Privoznik Reviewed-by: Pavel Hrdina --- src/test/test_driver.c | 39 +++++++++++++-------------------------- 1 file changed, 13 insertions(+), 26 deletions(-) diff --git a/src/test/test_driver.c b/src/test/test_driver.c index 905be3853b..5908489a50 100644 --- a/src/test/test_driver.c +++ b/src/test/test_driver.c @@ -2691,8 +2691,7 @@ static int testDomainSetMemoryStatsPeriod(virDomainPt= r dom, =20 if (!virDomainDefHasMemballoon(def)) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("No memory balloon device configured, " - "can not set the collection period")); + _("No memory balloon device configured, can not set= the collection period")); goto cleanup; } =20 @@ -2727,22 +2726,19 @@ static int testDomainSetMemoryFlags(virDomainPtr do= main, if (flags & VIR_DOMAIN_MEM_MAXIMUM) { if (live) { virReportError(VIR_ERR_OPERATION_INVALID, "%s", - _("cannot resize the maximum memory on an " - "active domain")); + _("cannot resize the maximum memory on an activ= e domain")); goto cleanup; } =20 if (virDomainNumaGetNodeCount(def->numa) > 0) { virReportError(VIR_ERR_OPERATION_INVALID, "%s", - _("initial memory size of a domain with NUMA " - "nodes cannot be modified with this API")); + _("initial memory size of a domain with NUMA no= des cannot be modified with this API")); goto cleanup; } =20 if (def->mem.max_memory && def->mem.max_memory < memory) { virReportError(VIR_ERR_OPERATION_INVALID, "%s", - _("cannot set initial memory size greater than " - "the maximum memory size")); + _("cannot set initial memory size greater than = the maximum memory size")); goto cleanup; } =20 @@ -3413,8 +3409,7 @@ testDomainSetMemoryParameters(virDomainPtr dom, =20 if (mem_limit > swap_limit) { virReportError(VIR_ERR_INVALID_ARG, "%s", - _("memory hard_limit tunable value must be lowe= r " - "than or equal to swap_hard_limit")); + _("memory hard_limit tunable value must be lowe= r than or equal to swap_hard_limit")); goto cleanup; } } @@ -3945,32 +3940,28 @@ testDomainSetBlockIoTune(virDomainPtr dom, if ((info.total_bytes_sec && info.read_bytes_sec) || (info.total_bytes_sec && info.write_bytes_sec)) { virReportError(VIR_ERR_INVALID_ARG, "%s", - _("total and read/write of bytes_sec " - "cannot be set at the same time")); + _("total and read/write of bytes_sec cannot be set = at the same time")); goto cleanup; } =20 if ((info.total_iops_sec && info.read_iops_sec) || (info.total_iops_sec && info.write_iops_sec)) { virReportError(VIR_ERR_INVALID_ARG, "%s", - _("total and read/write of iops_sec " - "cannot be set at the same time")); + _("total and read/write of iops_sec cannot be set a= t the same time")); goto cleanup; } =20 if ((info.total_bytes_sec_max && info.read_bytes_sec_max) || (info.total_bytes_sec_max && info.write_bytes_sec_max)) { virReportError(VIR_ERR_INVALID_ARG, "%s", - _("total and read/write of bytes_sec_max " - "cannot be set at the same time")); + _("total and read/write of bytes_sec_max cannot be = set at the same time")); goto cleanup; } =20 if ((info.total_iops_sec_max && info.read_iops_sec_max) || (info.total_iops_sec_max && info.write_iops_sec_max)) { virReportError(VIR_ERR_INVALID_ARG, "%s", - _("total and read/write of iops_sec_max " - "cannot be set at the same time")); + _("total and read/write of iops_sec_max cannot be s= et at the same time")); goto cleanup; } =20 @@ -4578,8 +4569,7 @@ static int testDomainUndefineFlags(virDomainPtr domai= n, if (privdom->hasManagedSave && !(flags & VIR_DOMAIN_UNDEFINE_MANAGED_SAVE)) { virReportError(VIR_ERR_OPERATION_INVALID, "%s", - _("Refusing to undefine while domain managed " - "save image exists")); + _("Refusing to undefine while domain managed save i= mage exists")); goto cleanup; } =20 @@ -6053,8 +6043,7 @@ testInterfaceChangeCommit(virConnectPtr conn, =20 if (!privconn->transaction_running) { virReportError(VIR_ERR_OPERATION_INVALID, "%s", - _("no transaction running, " - "nothing to be committed.")); + _("no transaction running, nothing to be committed.= ")); goto cleanup; } =20 @@ -6083,8 +6072,7 @@ testInterfaceChangeRollback(virConnectPtr conn, =20 if (!privconn->transaction_running) { virReportError(VIR_ERR_OPERATION_INVALID, "%s", - _("no transaction running, " - "nothing to rollback.")); + _("no transaction running, nothing to rollback.")); goto cleanup; } =20 @@ -9015,8 +9003,7 @@ testDomainRevertToSnapshot(virDomainSnapshotPtr snaps= hot, (flags & (VIR_DOMAIN_SNAPSHOT_REVERT_RUNNING | VIR_DOMAIN_SNAPSHOT_REVERT_PAUSED)) =3D=3D 0) { virReportError(VIR_ERR_OPERATION_INVALID, "%s", - _("transient domain needs to request run or pause " - "to revert to inactive snapshot")); + _("transient domain needs to request run or pause t= o revert to inactive snapshot")); goto cleanup; } =20 --=20 2.41.0 From nobody Sat May 18 15:38:13 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; 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=1692949448; cv=none; d=zohomail.com; s=zohoarc; b=DSU0mEDux+M+y4ZzYAd6ihVEgWtF/3mmkF61jSVaVDFc3Lz0+9sN1pIV9UkFElS2157APNDFC9iZQICNNtjTO3FTJRREYBCA86B6nAHcGst2a25Upns+BehqUwjKx32qUP2Lp4CBvklIyHcmrpKSZZ3mkgn7L9fEHcKRf4dPeUc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1692949448; 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=AjMaQ9pV56wcSCc8IxrBaQqDRp758RX/aDox7Hsy0lA=; b=UzNK41kxUG9Z2rRgnkenZxuV1anRN9oDaw+zB9JxAV6hk+8G75OZ1oUs70hXl+VGo+EWuoQaJ5xTPFL0BsifcY2DkFpUG34XZCY94kDSb2QmW+Ydbs9dZ0EjB2xXz8POeUqawbO955hpOoY9PmgGuKq+XzhMnCJiVnw74oBpxEo= 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 1692949448371137.10266711353324; Fri, 25 Aug 2023 00:44:08 -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-564-HXi2AVb3NkinUVydvpw-OA-1; Fri, 25 Aug 2023 03:40:54 -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 7694885D52F; Fri, 25 Aug 2023 07:40:42 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5357240D2841; Fri, 25 Aug 2023 07:40:42 +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 166ED19465BD; Fri, 25 Aug 2023 07:40:42 +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 2ABA91946589 for ; Fri, 25 Aug 2023 07:40:39 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 1D0712026D68; Fri, 25 Aug 2023 07:40:39 +0000 (UTC) Received: from localhost.localdomain (unknown [10.43.2.56]) by smtp.corp.redhat.com (Postfix) with ESMTP id B80772026FFE for ; Fri, 25 Aug 2023 07:40:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1692949447; 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=AjMaQ9pV56wcSCc8IxrBaQqDRp758RX/aDox7Hsy0lA=; b=GfzHZYA6qKHUP5K9VnOhZGOH3EurqO7bIB7hIYQtjr+8cFQeXtL/fpXdmGAdYyUYG/flhM 3NCJRHlaLlIdY/0mBk8dgu1gZ++QwZ0kzypgkw/5eHwn8J7fSpJFxpOHCWBlYZHnTdAZbm InzcNffj5WmrQM3BoK+pgetT5baheAQ= X-MC-Unique: HXi2AVb3NkinUVydvpw-OA-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH 21/27] util: Move error messages onto a single line Date: Fri, 25 Aug 2023 09:40:18 +0200 Message-ID: <621f318e8d73988dfe4edc0a00b319a9b4e83ac8.1692949012.git.mprivozn@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 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: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 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: 1692949449674100001 Content-Type: text/plain; charset="utf-8"; x-default="true" Error messages are exempt from the 80 columns rule. Move them onto one line. Signed-off-by: Michal Privoznik Reviewed-by: Pavel Hrdina --- src/util/vircgroupv2devices.c | 13 ++++--------- src/util/vircommand.c | 3 +-- src/util/virfile.c | 3 +-- src/util/virhostcpu.c | 3 +-- src/util/virhostmem.c | 6 ++---- src/util/virjson.c | 3 +-- src/util/virmdev.c | 3 +-- src/util/virnetdev.c | 12 ++++-------- src/util/virnetdevbandwidth.c | 6 ++---- src/util/virnetdevopenvswitch.c | 6 ++---- src/util/virnetdevvportprofile.c | 6 ++---- src/util/virnetlink.c | 3 +-- src/util/virnuma.c | 6 ++---- src/util/virpci.c | 3 +-- src/util/virprocess.c | 9 +++------ src/util/virqemu.c | 3 +-- src/util/virresctrl.c | 9 +++------ src/util/virthreadpool.c | 3 +-- 18 files changed, 33 insertions(+), 67 deletions(-) diff --git a/src/util/vircgroupv2devices.c b/src/util/vircgroupv2devices.c index f740127bbc..7deb233c06 100644 --- a/src/util/vircgroupv2devices.c +++ b/src/util/vircgroupv2devices.c @@ -444,9 +444,7 @@ virCgroupV2DevicesCreateMap(size_t size) if (mapfd < 0) { if (errno =3D=3D EPERM) { virReportSystemError(errno, "%s", - _("failed to initialize device BPF map; " - "locked memory limit for libvirtd proba= bly " - "needs to be raised")); + _("failed to initialize device BPF map; l= ocked memory limit for libvirtd probably needs to be raised")); return -1; } else { virReportSystemError(errno, "%s", @@ -595,8 +593,7 @@ int virCgroupV2DevicesDetectProg(virCgroup *group G_GNUC_UNUSED) { virReportSystemError(ENOSYS, "%s", - _("cgroups v2 BPF devices not supported " - "with this kernel")); + _("cgroups v2 BPF devices not supported with this= kernel")); return -1; } =20 @@ -605,8 +602,7 @@ int virCgroupV2DevicesCreateProg(virCgroup *group G_GNUC_UNUSED) { virReportSystemError(ENOSYS, "%s", - _("cgroups v2 BPF devices not supported " - "with this kernel")); + _("cgroups v2 BPF devices not supported with this= kernel")); return -1; } =20 @@ -615,8 +611,7 @@ int virCgroupV2DevicesPrepareProg(virCgroup *group G_GNUC_UNUSED) { virReportSystemError(ENOSYS, "%s", - _("cgroups v2 BPF devices not supported " - "with this kernel")); + _("cgroups v2 BPF devices not supported with this= kernel")); return -1; } =20 diff --git a/src/util/vircommand.c b/src/util/vircommand.c index 5f094c625a..704069815a 100644 --- a/src/util/vircommand.c +++ b/src/util/vircommand.c @@ -2691,8 +2691,7 @@ virCommandRunAsync(virCommand *cmd, pid_t *pid) virCommandDoAsyncIOHelper, "cmd-async-io", false, cmd) < 0) { virReportSystemError(errno, "%s", - _("Unable to create thread " - "to process command's IO")); + _("Unable to create thread to process com= mand's IO")); VIR_FREE(cmd->asyncioThread); virCommandAbort(cmd); ret =3D -1; diff --git a/src/util/virfile.c b/src/util/virfile.c index 0600e4a172..bd36a9a31a 100644 --- a/src/util/virfile.c +++ b/src/util/virfile.c @@ -1094,8 +1094,7 @@ virFileNBDLoadDriver(void) { if (virKModIsProhibited(NBD_DRIVER)) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("Failed to load nbd module: " - "administratively prohibited")); + _("Failed to load nbd module: administratively proh= ibited")); return false; } else { g_autofree char *errbuf =3D NULL; diff --git a/src/util/virhostcpu.c b/src/util/virhostcpu.c index a15731e9ea..0389012ef7 100644 --- a/src/util/virhostcpu.c +++ b/src/util/virhostcpu.c @@ -892,8 +892,7 @@ virHostCPUStatsAssign(virNodeCPUStatsPtr param, { if (virStrcpyStatic(param->field, name) < 0) { virReportError(VIR_ERR_INTERNAL_ERROR, - "%s", _("kernel cpu time field is too long" - " for the destination")); + "%s", _("kernel cpu time field is too long for the = destination")); return -1; } param->value =3D value; diff --git a/src/util/virhostmem.c b/src/util/virhostmem.c index 83c10206cd..1da2759ac3 100644 --- a/src/util/virhostmem.c +++ b/src/util/virhostmem.c @@ -392,8 +392,7 @@ virHostMemSetParameters(virTypedParameterPtr params G_G= NUC_UNUSED, virCheckFlags(0, -1); =20 virReportError(VIR_ERR_NO_SUPPORT, "%s", - _("node set memory parameters not implemented" - " on this platform")); + _("node set memory parameters not implemented on this p= latform")); return -1; } #endif @@ -586,8 +585,7 @@ virHostMemGetParameters(virTypedParameterPtr params G_G= NUC_UNUSED, virCheckFlags(VIR_TYPED_PARAM_STRING_OKAY, -1); =20 virReportError(VIR_ERR_NO_SUPPORT, "%s", - _("node get memory parameters not implemented" - " on this platform")); + _("node get memory parameters not implemented on this p= latform")); return -1; } #endif diff --git a/src/util/virjson.c b/src/util/virjson.c index 7e20443f93..03c3b6cfb9 100644 --- a/src/util/virjson.c +++ b/src/util/virjson.c @@ -1938,8 +1938,7 @@ virJSONValueObjectDeflattenWorker(const char *key, } else { if (!virJSONValueIsObject(existobj)) { virReportError(VIR_ERR_INVALID_ARG, "%s", - _("mixing nested objects and values is forbidde= n in " - "JSON deflattening")); + _("mixing nested objects and values is forbidde= n in JSON deflattening")); return -1; } } diff --git a/src/util/virmdev.c b/src/util/virmdev.c index d0f35ca347..992f3eb1b7 100644 --- a/src/util/virmdev.c +++ b/src/util/virmdev.c @@ -167,8 +167,7 @@ virMediatedDeviceNew(const char *uuidstr G_GNUC_UNUSED, virMediatedDeviceModelType model G_GNUC_UNUSED) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("mediated devices are not supported on non-linux " - "platforms")); + _("mediated devices are not supported on non-linux plat= forms")); return NULL; } =20 diff --git a/src/util/virnetdev.c b/src/util/virnetdev.c index 46d90fbd76..8ae854245e 100644 --- a/src/util/virnetdev.c +++ b/src/util/virnetdev.c @@ -182,8 +182,7 @@ virNetDevSetupControl(const char *ifname G_GNUC_UNUSED, void *ifr G_GNUC_UNUSED) { virReportSystemError(ENOSYS, "%s", - _("Network device configuration is not supported " - "on this platform")); + _("Network device configuration is not supported = on this platform")); return -1; } #endif /* WITH_STRUCT_IFREQ */ @@ -2248,8 +2247,7 @@ virNetDevSetNetConfig(const char *linkdev, int vf, if (vlan) { if (vlan->nTags !=3D 1 || vlan->trunk) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("vlan trunking is not supported " - "by SR-IOV network devices")); + _("vlan trunking is not supported by SR-IOV= network devices")); return -1; } =20 @@ -2651,8 +2649,7 @@ int virNetDevAddMulti(const char *ifname G_GNUC_UNUSE= D, virMacAddr *macaddr G_GNUC_UNUSED) { virReportSystemError(ENOSYS, "%s", - _("Unable to add address to interface " - "multicast list on this platform")); + _("Unable to add address to interface multicast l= ist on this platform")); return -1; } #endif @@ -2696,8 +2693,7 @@ int virNetDevDelMulti(const char *ifname G_GNUC_UNUSE= D, virMacAddr *macaddr G_GNUC_UNUSED) { virReportSystemError(ENOSYS, "%s", - _("Unable to delete address from interface " - "multicast list on this platform")); + _("Unable to delete address from interface multic= ast list on this platform")); return -1; } #endif diff --git a/src/util/virnetdevbandwidth.c b/src/util/virnetdevbandwidth.c index 52fb94a9fc..ec41666f67 100644 --- a/src/util/virnetdevbandwidth.c +++ b/src/util/virnetdevbandwidth.c @@ -208,15 +208,13 @@ virNetDevBandwidthSet(const char *ifname, =20 if (geteuid() !=3D 0) { virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s", - _("Network bandwidth tuning is not available" - " in session mode")); + _("Network bandwidth tuning is not available in ses= sion mode")); return -1; } =20 if (!ifname) { virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s", - _("Unable to set bandwidth for interface because " - "device name is unknown")); + _("Unable to set bandwidth for interface because de= vice name is unknown")); return -1; } =20 diff --git a/src/util/virnetdevopenvswitch.c b/src/util/virnetdevopenvswitc= h.c index dbdd645f8e..8dad6ed2bd 100644 --- a/src/util/virnetdevopenvswitch.c +++ b/src/util/virnetdevopenvswitch.c @@ -894,15 +894,13 @@ virNetDevOpenvswitchInterfaceSetQos(const char *ifnam= e, =20 if (geteuid() !=3D 0) { virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s", - _("Network bandwidth tuning is not available" - " in session mode")); + _("Network bandwidth tuning is not available in ses= sion mode")); return -1; } =20 if (!ifname) { virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s", - _("Unable to set bandwidth for interface because " - "device name is unknown")); + _("Unable to set bandwidth for interface because de= vice name is unknown")); return -1; } =20 diff --git a/src/util/virnetdevvportprofile.c b/src/util/virnetdevvportprof= ile.c index cf92f1838b..33bcd350c4 100644 --- a/src/util/virnetdevvportprofile.c +++ b/src/util/virnetdevvportprofile.c @@ -530,8 +530,7 @@ virNetDevVPortProfileGetStatus(struct nlattr **tb, int3= 2_t vf, =20 if (nla_type(tb_vf_ports) !=3D IFLA_VF_PORT) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("error while iterating over " - "IFLA_VF_PORTS part")); + _("error while iterating over IFLA_VF_P= ORTS part")); return -1; } =20 @@ -584,8 +583,7 @@ virNetDevVPortProfileGetStatus(struct nlattr **tb, int3= 2_t vf, if (nla_parse_nested(tb_port, IFLA_PORT_MAX, tb_vf_por= ts, ifla_port_policy)) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("error parsing IFLA_VF_PORT " - "during error reporting")); + _("error parsing IFLA_VF_PORT durin= g error reporting")); return -1; } if (tb_port[IFLA_PORT_INSTANCE_UUID]) { diff --git a/src/util/virnetlink.c b/src/util/virnetlink.c index 2d052cd03e..24cd69a385 100644 --- a/src/util/virnetlink.c +++ b/src/util/virnetlink.c @@ -225,8 +225,7 @@ virNetlinkCreateSocket(int protocol) =20 if (virNetlinkSetBufferSize(nlhandle, 131702, 0) < 0) { virReportSystemError(errno, "%s", - _("cannot set netlink socket buffer " - "size to 128k")); + _("cannot set netlink socket buffer size to 1= 28k")); goto error; } nl_socket_enable_msg_peek(nlhandle); diff --git a/src/util/virnuma.c b/src/util/virnuma.c index e8bbaf0947..5053a70c61 100644 --- a/src/util/virnuma.c +++ b/src/util/virnuma.c @@ -69,8 +69,7 @@ virNumaGetAutoPlacementAdvice(unsigned short vcpus, =20 if (virCommandRun(cmd, NULL) < 0) { virReportError(VIR_ERR_OPERATION_FAILED, "%s", - _("Failed to query numad for the " - "advisory nodeset")); + _("Failed to query numad for the advisory nodeset")= ); VIR_FREE(output); } =20 @@ -149,8 +148,7 @@ virNumaSetupMemoryPolicy(virDomainNumatuneMemMode mode, =20 if (!has_preferred_many && nnodes !=3D 1) { virReportError(VIR_ERR_INTERNAL_ERROR, - "%s", _("NUMA memory tuning in 'preferred' mode= " - "only supports single node")); + "%s", _("NUMA memory tuning in 'preferred' mode= only supports single node")); return -1; } =20 diff --git a/src/util/virpci.c b/src/util/virpci.c index 1158e468bf..08b82708b1 100644 --- a/src/util/virpci.c +++ b/src/util/virpci.c @@ -1454,8 +1454,7 @@ virPCIDeviceAddressIsValid(virPCIDeviceAddress *addr, if (virPCIDeviceAddressIsEmpty(addr)) { if (report) virReportError(VIR_ERR_XML_ERROR, "%s", - _("Invalid PCI address 0000:00:00, at least " - "one of domain, bus, or slot must be > 0")); + _("Invalid PCI address 0000:00:00, at least one= of domain, bus, or slot must be > 0")); return false; } return true; diff --git a/src/util/virprocess.c b/src/util/virprocess.c index f8daa786c9..7c0f63efbb 100644 --- a/src/util/virprocess.c +++ b/src/util/virprocess.c @@ -1621,15 +1621,13 @@ virProcessSetScheduler(pid_t pid, =20 if ((min =3D sched_get_priority_min(pol)) < 0) { virReportSystemError(errno, "%s", - _("Cannot get minimum scheduler " - "priority value")); + _("Cannot get minimum scheduler priority = value")); return -1; } =20 if ((max =3D sched_get_priority_max(pol)) < 0) { virReportSystemError(errno, "%s", - _("Cannot get maximum scheduler " - "priority value")); + _("Cannot get maximum scheduler priority = value")); return -1; } =20 @@ -1664,8 +1662,7 @@ virProcessSetScheduler(pid_t pid G_GNUC_UNUSED, return 0; =20 virReportSystemError(ENOSYS, "%s", - _("Process CPU scheduling is not supported " - "on this platform")); + _("Process CPU scheduling is not supported on thi= s platform")); return -1; } =20 diff --git a/src/util/virqemu.c b/src/util/virqemu.c index b9e57a6f4c..c9fac5956a 100644 --- a/src/util/virqemu.c +++ b/src/util/virqemu.c @@ -207,8 +207,7 @@ virQEMUBuildCommandLineJSONRecurse(const char *key, case VIR_JSON_TYPE_ARRAY: if (nested) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("nested JSON array to commandline conversion = is " - "not supported")); + _("nested JSON array to commandline conversion = is not supported")); return -1; } =20 diff --git a/src/util/virresctrl.c b/src/util/virresctrl.c index 1e98b111f2..8ca58f5d10 100644 --- a/src/util/virresctrl.c +++ b/src/util/virresctrl.c @@ -496,8 +496,7 @@ static int virResctrlLock(void) { virReportSystemError(ENOSYS, "%s", - _("resctrl locking is not supported " - "on this platform")); + _("resctrl locking is not supported on this platf= orm")); return -1; } =20 @@ -506,8 +505,7 @@ static int virResctrlUnlock(int fd G_GNUC_UNUSED) { virReportSystemError(ENOSYS, "%s", - _("resctrl locking is not supported " - "on this platform")); + _("resctrl locking is not supported on this platf= orm")); return -1; } =20 @@ -1468,8 +1466,7 @@ virResctrlAllocParseMemoryBandwidthLine(virResctrlInf= o *resctrl, !resctrl->membw_info->min_bandwidth || !resctrl->membw_info->bandwidth_granularity) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("Missing or inconsistent resctrl info for " - "memory bandwidth allocation")); + _("Missing or inconsistent resctrl info for memory = bandwidth allocation")); return -1; } =20 diff --git a/src/util/virthreadpool.c b/src/util/virthreadpool.c index 2f1d49d665..d45fa92061 100644 --- a/src/util/virthreadpool.c +++ b/src/util/virthreadpool.c @@ -429,8 +429,7 @@ virThreadPoolSetParameters(virThreadPool *pool, if ((maxWorkers =3D=3D 0 && pool->maxWorkers > 0) || (maxWorkers > 0 && pool->maxWorkers =3D=3D 0)) { virReportError(VIR_ERR_INVALID_ARG, "%s", - _("maxWorkers must not be switched from zero to non= -zero" - " and vice versa")); + _("maxWorkers must not be switched from zero to non= -zero and vice versa")); return -1; } =20 --=20 2.41.0 From nobody Sat May 18 15:38:13 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; 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=1692949325; cv=none; d=zohomail.com; s=zohoarc; b=ddi/uTNJ3DM+N6ST6BP/8ajB7sgt8yvJQ07UNh87bm7GugV0zpDnd+gKrM7ohx93ITdVYw1ygyjFFUwV5T64tohQ78lomG9TwaTlgkC0/buGsQlJh1WikATwuNm1s+xoqYAGa8CxW+dNbhJbC4HM2eJK/8CNnK0pqQLutb5zg90= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1692949325; 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=Rdh6dJZuBOSeGIlWVJNp+3oDaNIoT0LNdsCvpSdzWBg=; b=LydWL1Ssvsl4sF3IWi9Xh1fcu5GGOB2SA9OnLMq5yvL1X9dsmTWU74TspNJgQS5/qKiPeIqqX+EMturwTjgPT34xS/4oPZufMbHm++B5EAAgELORrWNV2jY1ehWhqlCcwkCzc/lCYAQ7/xSJyVeBDe6D0BoRYQe+oZ0yDKDuv+s= 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 169294932538662.546133458523286; Fri, 25 Aug 2023 00:42:05 -0700 (PDT) Received: from mimecast-mx02.redhat.com (66.187.233.73 [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-569-Ff9bigHFMyqmkvGQrVLQIg-1; Fri, 25 Aug 2023 03:40:50 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E5842280FEE5; Fri, 25 Aug 2023 07:40:42 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id C56D01120AC7; Fri, 25 Aug 2023 07:40:42 +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 5E10B1946A63; Fri, 25 Aug 2023 07:40:42 +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 D58F019465BB for ; Fri, 25 Aug 2023 07:40:39 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id AC6F62026D33; Fri, 25 Aug 2023 07:40:39 +0000 (UTC) Received: from localhost.localdomain (unknown [10.43.2.56]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5300A2026D68 for ; Fri, 25 Aug 2023 07:40:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1692949324; 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=Rdh6dJZuBOSeGIlWVJNp+3oDaNIoT0LNdsCvpSdzWBg=; b=Pi5o0iYSH7ckrVaXxyVEzmHyLR/uJtK+BoyJ4eeSj+2HMaUIMEtFxbRlFEBtRBmJFh8+Jm JWPDxk12XOmZCY7Oj/oVqDM09n2PwUyIjKzYzAtVhG1VYLB9VikzYYFW3HhsA83utSVIt5 RZkcVwOSTv+3dVI84OFJkjKurK36g20= X-MC-Unique: Ff9bigHFMyqmkvGQrVLQIg-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH 22/27] vbox: Move error messages onto a single line Date: Fri, 25 Aug 2023 09:40:19 +0200 Message-ID: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 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: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 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: 1692949327180100001 Content-Type: text/plain; charset="utf-8"; x-default="true" Error messages are exempt from the 80 columns rule. Move them onto one line. Signed-off-by: Michal Privoznik Reviewed-by: Pavel Hrdina --- src/vbox/vbox_snapshot_conf.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/vbox/vbox_snapshot_conf.c b/src/vbox/vbox_snapshot_conf.c index 6dbd18d657..84f7aceac2 100644 --- a/src/vbox/vbox_snapshot_conf.c +++ b/src/vbox/vbox_snapshot_conf.c @@ -736,8 +736,7 @@ virVBoxSnapshotConfAddSnapshotToXmlMachine(virVBoxSnaps= hotConfSnapshot *snapshot if (snapshotParentName =3D=3D NULL) { if (machine->snapshot !=3D NULL) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("Unable to add this snapshot, there is alread= y a snapshot " - "linked to the machine")); + _("Unable to add this snapshot, there is alread= y a snapshot linked to the machine")); return -1; } machine->snapshot =3D snapshot; @@ -840,8 +839,7 @@ virVBoxSnapshotConfRemoveSnapshot(virVBoxSnapshotConfMa= chine *machine, } if (snapshot->nchildren > 0) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("This snapshot has children, " - "please delete these snapshots before")); + _("This snapshot has children, please delete these = snapshots before")); return -1; } =20 --=20 2.41.0 From nobody Sat May 18 15:38:13 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; 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=1692949253; cv=none; d=zohomail.com; s=zohoarc; b=Z8MZdVDP5k2JxDjT7+TM+dw5ZlUhre+FG3aPFG8grN152I1F39wh3Y7A/L598Z2Gg/M0RhksLu00GDFemRzB1NDwDk3nSxTr4aGbZU3/+3IC7OwrcOEEaujJWv7P+RU5uhJXgH0ir1fa+3uajflbvxZvGPyhT6dv/ekwGS9J/T8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1692949253; 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=NyUAScDebt38PVmGHi9+i6U3gE9FsBpUlFdOOkNoyH4=; b=C4lGllr8FAX+wrzry6Fo0dmL/9A+QyCJOOlLDJ36mL8cSLj6NNhvNxs+5vp2FEQ/9HC6+92FNkyqEGkWPB4AGB48zSQqPZmDtkCOIZV7r+Y0e/g4iZhqzOXhFGoarNIZYF39Q8sEp5Nw8MXc9KHMwBBX978ap/albpEuRJHXSBU= 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 1692949253477572.938935085392; Fri, 25 Aug 2023 00:40:53 -0700 (PDT) Received: from mimecast-mx02.redhat.com (66.187.233.73 [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-519-MDoapdq3Pl-loy-9NX_4hw-1; Fri, 25 Aug 2023 03:40:49 -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 780601C0CCC2; Fri, 25 Aug 2023 07:40:42 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 59DE440D283F; Fri, 25 Aug 2023 07:40:42 +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 214701946A43; Fri, 25 Aug 2023 07:40:42 +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 859221946589 for ; Fri, 25 Aug 2023 07:40:40 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 79A722026D76; Fri, 25 Aug 2023 07:40:40 +0000 (UTC) Received: from localhost.localdomain (unknown [10.43.2.56]) by smtp.corp.redhat.com (Postfix) with ESMTP id E2DAB2026FFF for ; Fri, 25 Aug 2023 07:40:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1692949252; 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=NyUAScDebt38PVmGHi9+i6U3gE9FsBpUlFdOOkNoyH4=; b=ZcU1vNgurGhOQbRSFf7uGobMUHibdmTBc7LIsDpfX+eDpXsmUzFIDucyrANEhxj3vuMmms uCPzGjcwfV67/lbCzdWQln5bCT0K2X1ffrgJvrUhSZ3eCOyqjKEKjKKigWnx07Q9V+8+gb AL8rMsqsB8gZ1n05I2Np7BsCJ5XPcAc= X-MC-Unique: MDoapdq3Pl-loy-9NX_4hw-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH 23/27] vmware: Move error messages onto a single line Date: Fri, 25 Aug 2023 09:40:20 +0200 Message-ID: <5f41236783cab5f8d4adf80bc73cd0f3df07d98f.1692949012.git.mprivozn@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 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: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 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: 1692949254774100003 Content-Type: text/plain; charset="utf-8"; x-default="true" Error messages are exempt from the 80 columns rule. Move them onto one line. Signed-off-by: Michal Privoznik Reviewed-by: Pavel Hrdina --- src/vmware/vmware_conf.c | 9 +++------ src/vmware/vmware_driver.c | 6 ++---- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/src/vmware/vmware_conf.c b/src/vmware/vmware_conf.c index ba4e4d28dc..a598b512dc 100644 --- a/src/vmware/vmware_conf.c +++ b/src/vmware/vmware_conf.c @@ -355,8 +355,7 @@ vmwareVmxPath(virDomainDef *vmdef, char **vmxPath) */ if (vmdef->ndisks < 1) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("Domain XML doesn't contain any disks, " - "cannot deduce datastore and path for VMX file")); + _("Domain XML doesn't contain any disks, cannot ded= uce datastore and path for VMX file")); return -1; } =20 @@ -370,16 +369,14 @@ vmwareVmxPath(virDomainDef *vmdef, char **vmxPath) =20 if (disk =3D=3D NULL) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("Domain XML doesn't contain any file-based harddi= sks, " - "cannot deduce datastore and path for VMX file")); + _("Domain XML doesn't contain any file-based harddi= sks, cannot deduce datastore and path for VMX file")); return -1; } =20 src =3D virDomainDiskGetSource(disk); if (!src) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("First file-based harddisk has no source, cannot " - "deduce datastore and path for VMX file")); + _("First file-based harddisk has no source, cannot = deduce datastore and path for VMX file")); return -1; } =20 diff --git a/src/vmware/vmware_driver.c b/src/vmware/vmware_driver.c index 259d00cacd..416ce126e8 100644 --- a/src/vmware/vmware_driver.c +++ b/src/vmware/vmware_driver.c @@ -509,8 +509,7 @@ vmwareDomainSuspend(virDomainPtr dom) =20 if (driver->type =3D=3D VMWARE_DRIVER_PLAYER) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("vmplayer does not support libvirt suspend/resume" - " (vmware pause/unpause) operation ")); + _("vmplayer does not support libvirt suspend/resume= (vmware pause/unpause) operation ")); return ret; } =20 @@ -549,8 +548,7 @@ vmwareDomainResume(virDomainPtr dom) =20 if (driver->type =3D=3D VMWARE_DRIVER_PLAYER) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("vmplayer does not support libvirt suspend/resume= " - "(vmware pause/unpause) operation ")); + _("vmplayer does not support libvirt suspend/resume= (vmware pause/unpause) operation ")); return ret; } =20 --=20 2.41.0 From nobody Sat May 18 15:38:13 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; 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=1692949563; cv=none; d=zohomail.com; s=zohoarc; b=lMX0OZ7jfRCI5QYevEf0skwp7XVAQ9wW+q9zrWWjeDbQL7QCq9NJN4RlQ/I2jAb9eJXH+FpNC4i0zurNxhmZFRAfYmwQFulUR8iDrRGDCM/xw1NsV7vrF+ErFxOC2aCkRN8xO7z8rNpCV4DnO+EOt9vCxYJ2kYXvUf4px4+tLmM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1692949563; 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=8wWT2x5txO9wFJMgZMU+chHil0R3WWwOgwesqC+pSiY=; b=Bid4xehh46o7/urg1gVlQOlHrMS1epbg8mOo2w/cif+U/sxZ9+eF0bDbwm3nftHCtspBXJ3wCpeIlaZIQi5/eyeIKkJyhsQt1nPwC7KILxfwpAoQzPbdFC7uWjgC41AYD1JPNlZbI/+/irZ/fXIL5ExLCv9iy69nsw8BCCa9Fvg= 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 1692949563625335.26038678449095; Fri, 25 Aug 2023 00:46:03 -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-597-7kBvx0e3Nyiwho0CUf49nA-1; Fri, 25 Aug 2023 03:40:53 -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 9036280CD80; Fri, 25 Aug 2023 07:40:43 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3CC2740C6F53; Fri, 25 Aug 2023 07:40:43 +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 ABC081946A4E; Fri, 25 Aug 2023 07:40:42 +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 308A819465B1 for ; Fri, 25 Aug 2023 07:40:41 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 13E872026D68; Fri, 25 Aug 2023 07:40:41 +0000 (UTC) Received: from localhost.localdomain (unknown [10.43.2.56]) by smtp.corp.redhat.com (Postfix) with ESMTP id B05CB2026D33 for ; Fri, 25 Aug 2023 07:40:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1692949562; 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=8wWT2x5txO9wFJMgZMU+chHil0R3WWwOgwesqC+pSiY=; b=Abst+MJ8YzsxBhZ2OgUfTIIfbktfeqSRYBuTcGGnHBWDXiwBqihfUkLM5wsnE2qBCKI60S I2ABzN/8LjNLbBgDBmk+AM8CTXICs3RJMrQbQy3bf2Y+4SxgSA4Wt1vdZb3wZrgYXCj2UT g132o069DS4N+NBFxafYNgXJ5gM209g= X-MC-Unique: 7kBvx0e3Nyiwho0CUf49nA-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH 24/27] vmx: Move error messages onto a single line Date: Fri, 25 Aug 2023 09:40:21 +0200 Message-ID: <1b253d512181bbdd41eb68816bc6726260515ec7.1692949012.git.mprivozn@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 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: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 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: 1692949565147100001 Content-Type: text/plain; charset="utf-8"; x-default="true" Error messages are exempt from the 80 columns rule. Move them onto one line. Signed-off-by: Michal Privoznik Reviewed-by: Pavel Hrdina --- src/vmx/vmx.c | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/src/vmx/vmx.c b/src/vmx/vmx.c index 5c6925be22..26b89776e1 100644 --- a/src/vmx/vmx.c +++ b/src/vmx/vmx.c @@ -938,8 +938,7 @@ virVMXSCSIDiskNameToControllerAndUnit(const char *name,= int *controller, int *un =20 if (! STRPREFIX(name, "sd")) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("Expecting domain XML attribute 'dev' of entry " - "'devices/disk/target' to start with 'sd'")); + _("Expecting domain XML attribute 'dev' of entry 'd= evices/disk/target' to start with 'sd'")); return -1; } =20 @@ -977,8 +976,7 @@ virVMXIDEDiskNameToBusAndUnit(const char *name, int *bu= s, int *unit) =20 if (! STRPREFIX(name, "hd")) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("Expecting domain XML attribute 'dev' of entry " - "'devices/disk/target' to start with 'hd'")); + _("Expecting domain XML attribute 'dev' of entry 'd= evices/disk/target' to start with 'hd'")); return -1; } =20 @@ -1012,8 +1010,7 @@ virVMXFloppyDiskNameToUnit(const char *name, int *uni= t) =20 if (! STRPREFIX(name, "fd")) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("Expecting domain XML attribute 'dev' of entry " - "'devices/disk/target' to start with 'fd'")); + _("Expecting domain XML attribute 'dev' of entry 'd= evices/disk/target' to start with 'fd'")); return -1; } =20 @@ -1505,8 +1502,7 @@ virVMXParseConfig(virVMXContext *ctx, if (def->description !=3D NULL) { if (virVMXUnescapeHexPipe(def->description) < 0) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("VMX entry 'annotation' contains invalid esca= pe " - "sequence")); + _("VMX entry 'annotation' contains invalid esca= pe sequence")); goto cleanup; } } @@ -1583,8 +1579,7 @@ virVMXParseConfig(virVMXContext *ctx, cpu->sockets =3D numvcpus / coresPerSocket; if (cpu->sockets <=3D 0) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("VMX entry 'cpuid.coresPerSocket' smaller tha= n " - "'numvcpus'")); + _("VMX entry 'cpuid.coresPerSocket' smaller tha= n 'numvcpus'")); goto cleanup; } cpu->dies =3D 1; @@ -3348,15 +3343,13 @@ virVMXFormatConfig(virVMXContext *ctx, virDomainXML= Option *xmlopt, virDomainDef /* def:maxvcpus -> vmx:numvcpus */ if (virDomainDefHasVcpusOffline(def)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("No support for domain XML entry 'vcpu' attribute= " - "'current'")); + _("No support for domain XML entry 'vcpu' attribute= 'current'")); goto cleanup; } maxvcpus =3D virDomainDefGetVcpusMax(def); if (maxvcpus =3D=3D 0) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("Expecting domain XML entry 'vcpu' to be greater " - "than 0")); + _("Expecting domain XML entry 'vcpu' to be greater = than 0")); goto cleanup; } =20 --=20 2.41.0 From nobody Sat May 18 15:38:13 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=1692949264; cv=none; d=zohomail.com; s=zohoarc; b=T0CqCm3IsjS66Cwqd+wkm0PJB326z0+CaLPkkVJF3/4sWA9EOqTu/Pj3Ua/aidLeX4ut2fzR187l1cBmdzjkF+Yufmy0YimGeP3+lSCaOcDYCoRYqLS00C8oEHA1sMGljCr5XqjKek+Ak9gHz4mmMV4tkVaxyTrfA8MgW8pmxFk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1692949264; 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=4l1uEofmrLpCqQ4dzZJEjx/HO2AeXKBkKK5ioRzDd60=; b=KTImfrgnCHM6I6SQYCzpbL3t2J8RBr+2FXNhwre10qeRtAtiubfXU4ens5w1jJ4wb3n1at/y6+jIXefrAWD3TCWAwiwRyqx7S/s0B6T6w+KfyJwumJiu17eYD2Hf6HVmaXNPRV5k6CPwnTQItdn9dIr+o4tyyMWGlqNzrFPuZoQ= 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 1692949264468193.1644978434365; Fri, 25 Aug 2023 00:41:04 -0700 (PDT) Received: from mimecast-mx02.redhat.com (66.187.233.73 [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-606-BMfYzlzKMoOQ0WTVUnIvXQ-1; Fri, 25 Aug 2023 03:40:54 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 33F521C25A8E; Fri, 25 Aug 2023 07:40:45 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 118D1140E969; Fri, 25 Aug 2023 07:40:45 +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 ECAD819465B1; Fri, 25 Aug 2023 07:40:44 +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 C712C1946589 for ; Fri, 25 Aug 2023 07:40:41 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id A99442026D76; Fri, 25 Aug 2023 07:40:41 +0000 (UTC) Received: from localhost.localdomain (unknown [10.43.2.56]) by smtp.corp.redhat.com (Postfix) with ESMTP id 50F702026E04 for ; Fri, 25 Aug 2023 07:40:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1692949263; 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=4l1uEofmrLpCqQ4dzZJEjx/HO2AeXKBkKK5ioRzDd60=; b=hr/aKW2b0H4Th26cPtspnzYVNwsP6EUCcBssk1Wv0sp1L3m8/ZKq7pUgDBMWE6LBOZHLWp dBV/PL2X07+4b9tVBzRRa8TpHU+JnkRZX3kGdClj5oQgnYFF0CW79BG51cfXiCKSGVx1bw 7aqZ3fTdN4fh9QjCARuqXtI/QYNqhYg= X-MC-Unique: BMfYzlzKMoOQ0WTVUnIvXQ-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH 25/27] vz: Move error messages onto a single line Date: Fri, 25 Aug 2023 09:40:22 +0200 Message-ID: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 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: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 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: 1692949265657100003 Content-Type: text/plain; charset="utf-8"; x-default="true" Error messages are exempt from the 80 columns rule. Move them onto one line. Signed-off-by: Michal Privoznik Reviewed-by: Pavel Hrdina --- src/vz/vz_driver.c | 15 ++--- src/vz/vz_sdk.c | 135 +++++++++++++++------------------------------ src/vz/vz_utils.c | 66 ++++++++-------------- 3 files changed, 72 insertions(+), 144 deletions(-) diff --git a/src/vz/vz_driver.c b/src/vz/vz_driver.c index 401ca041ed..c7ceec2339 100644 --- a/src/vz/vz_driver.c +++ b/src/vz/vz_driver.c @@ -842,8 +842,7 @@ vzDomainDefineXMLFlags(virConnectPtr conn, const char *= xml, unsigned int flags) =20 if (!virDomainDefCheckABIStability(dom->def, def, driver->xmlo= pt)) { virReportError(VIR_ERR_ARGUMENT_UNSUPPORTED, "%s", - _("Can't change domain configuration " - "in managed save state")); + _("Can't change domain configuration in man= aged save state")); goto cleanup; } } else { @@ -1461,15 +1460,13 @@ static int vzCheckConfigUpdateFlags(virDomainObj *d= om, unsigned int *flags) =20 if (!(*flags & VIR_DOMAIN_AFFECT_CONFIG)) { virReportError(VIR_ERR_OPERATION_INVALID, "%s", - _("domain config update needs VIR_DOMAIN_AFFECT_CON= FIG " - "flag to be set")); + _("domain config update needs VIR_DOMAIN_AFFECT_CON= FIG flag to be set")); return -1; } =20 if (virDomainObjIsActive(dom) && !(*flags & VIR_DOMAIN_AFFECT_LIVE)) { virReportError(VIR_ERR_OPERATION_INVALID, "%s", - _("Updates on a running domain need " - "VIR_DOMAIN_AFFECT_LIVE flag")); + _("Updates on a running domain need VIR_DOMAIN_AFFE= CT_LIVE flag")); return -1; } =20 @@ -2793,8 +2790,7 @@ vzEatCookie(const char *cookiein, int cookieinlen, un= signed int flags) if ((!(tmp =3D virXPathString("string(./session-uuid[1])", ctx)) || (virUUIDParse(tmp, mig->session_uuid) < 0))) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("missing or malformed session-uuid element " - "in migration data")); + _("missing or malformed session-uuid element in= migration data")); goto error; } } @@ -2921,8 +2917,7 @@ vzMigrationCreateURI(void) =20 if (STRPREFIX(hostname, "localhost")) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("hostname on destination resolved to localhost," - " but migration requires an FQDN")); + _("hostname on destination resolved to localhost, b= ut migration requires an FQDN")); goto cleanup; } =20 diff --git a/src/vz/vz_sdk.c b/src/vz/vz_sdk.c index 286b52a29e..6a15d60577 100644 --- a/src/vz/vz_sdk.c +++ b/src/vz/vz_sdk.c @@ -2415,15 +2415,13 @@ prlsdkCheckUnsupportedParams(PRL_HANDLE sdkdom, vir= DomainDef *def) =20 if (def->blkio.ndevices > 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("blkio parameters are not supported " - "by vz driver")); + _("blkio parameters are not supported by vz driver"= )); return -1; } =20 if (virDomainDefGetMemoryTotal(def) !=3D def->mem.cur_balloon) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("changing balloon parameters is not supported " - "by vz driver")); + _("changing balloon parameters is not supported by = vz driver")); return -1; } =20 @@ -2440,8 +2438,7 @@ prlsdkCheckUnsupportedParams(PRL_HANDLE sdkdom, virDo= mainDef *def) virMemoryLimitIsSet(def->mem.swap_hard_limit)) { =20 virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Memory parameter is not supported " - "by vz driver")); + _("Memory parameter is not supported by vz driver")= ); return -1; } =20 @@ -2453,8 +2450,7 @@ prlsdkCheckUnsupportedParams(PRL_HANDLE sdkdom, virDo= mainDef *def) =20 if (def->placement_mode) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("changing cpu placement mode is not supported " - "by vz driver")); + _("changing cpu placement mode is not supported by = vz driver")); return -1; } =20 @@ -2489,8 +2485,7 @@ prlsdkCheckUnsupportedParams(PRL_HANDLE sdkdom, virDo= mainDef *def) memMode =3D=3D VIR_DOMAIN_NUMATUNE_MEM_STRICT) || virDomainNumatuneHasPerNodeBinding(def->numa)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("numa parameters are not supported " - "by vz driver")); + _("numa parameters are not supported by vz driver")= ); return -1; } =20 @@ -2499,8 +2494,7 @@ prlsdkCheckUnsupportedParams(PRL_HANDLE sdkdom, virDo= mainDef *def) def->onCrash !=3D VIR_DOMAIN_LIFECYCLE_ACTION_DESTROY) { =20 virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("on_reboot, on_poweroff and on_crash parameters " - "are not supported by vz driver")); + _("on_reboot, on_poweroff and on_crash parameters a= re not supported by vz driver")); return -1; } =20 @@ -2516,8 +2510,7 @@ prlsdkCheckUnsupportedParams(PRL_HANDLE sdkdom, virDo= mainDef *def) def->os.bios.useserial !=3D 0) { =20 virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("changing OS parameters is not supported " - "by vz driver")); + _("changing OS parameters is not supported by vz dr= iver")); return -1; } =20 @@ -2531,8 +2524,7 @@ prlsdkCheckUnsupportedParams(PRL_HANDLE sdkdom, virDo= mainDef *def) !(vmType =3D=3D PVT_CT && IS_CT(def))) { =20 virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("changing OS type is not supported " - "by vz driver")); + _("changing OS type is not supported by vz driver")= ); return -1; } =20 @@ -2555,16 +2547,14 @@ prlsdkCheckUnsupportedParams(PRL_HANDLE sdkdom, vir= DomainDef *def) =20 if (def->emulator) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("changing emulator is not supported " - "by vz driver")); + _("changing emulator is not supported by vz driver"= )); return -1; } =20 for (i =3D 0; i < VIR_DOMAIN_FEATURE_LAST; i++) { if (def->features[i]) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("changing features is not supported " - "by vz driver")); + _("changing features is not supported by vz dri= ver")); return -1; } } @@ -2573,15 +2563,13 @@ prlsdkCheckUnsupportedParams(PRL_HANDLE sdkdom, vir= DomainDef *def) def->clock.ntimers !=3D 0) { =20 virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("changing clock parameters is not supported " - "by vz driver")); + _("changing clock parameters is not supported by vz= driver")); return -1; } =20 if (!IS_CT(def) && def->nfss !=3D 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Filesystems in VMs are not supported " - "by vz driver")); + _("Filesystems in VMs are not supported by vz drive= r")); return -1; } =20 @@ -2591,8 +2579,7 @@ prlsdkCheckUnsupportedParams(PRL_HANDLE sdkdom, virDo= mainDef *def) def->nleases !=3D 0 || def->nhubs !=3D 0) { =20 virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("changing devices parameters is not supported " - "by vz driver")); + _("changing devices parameters is not supported by = vz driver")); return -1; } =20 @@ -2716,15 +2703,13 @@ static int prlsdkCheckVideoUnsupportedParams(virDom= ainDef *def) return 0; } else { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Video adapters are not supported " - "int containers.")); + _("Video adapters are not supported int contain= ers.")); return -1; } } else { if (def->nvideos !=3D 1) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("vz driver supports " - "only one video adapter.")); + _("vz driver supports only one video adapter.")= ); return -1; } } @@ -2733,22 +2718,19 @@ static int prlsdkCheckVideoUnsupportedParams(virDom= ainDef *def) =20 if (v->type !=3D VIR_DOMAIN_VIDEO_TYPE_VGA) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("vz driver supports " - "only VGA video adapters.")); + _("vz driver supports only VGA video adapters.")); return -1; } =20 if (v->heads !=3D 1) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("vz driver doesn't support " - "multihead video adapters.")); + _("vz driver doesn't support multihead video adapte= rs.")); return -1; } =20 if (v->accel !=3D NULL && (v->accel->accel2d || v->accel->accel3d)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("vz driver doesn't support " - "setting video acceleration parameters.")); + _("vz driver doesn't support setting video accelera= tion parameters.")); return -1; } =20 @@ -2759,15 +2741,13 @@ static int prlsdkCheckSerialUnsupportedParams(virDo= mainChrDef *chr) { if (chr->deviceType !=3D VIR_DOMAIN_CHR_DEVICE_TYPE_SERIAL) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Specified character device type is not supported= " - "by vz driver.")); + _("Specified character device type is not supported= by vz driver.")); return -1; } =20 if (chr->targetType !=3D VIR_DOMAIN_CHR_SERIAL_TARGET_TYPE_NONE) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Specified character device target type is not " - "supported by vz driver.")); + _("Specified character device target type is not su= pported by vz driver.")); return -1; } =20 @@ -2779,22 +2759,19 @@ static int prlsdkCheckSerialUnsupportedParams(virDo= mainChrDef *chr) =20 =20 virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Specified character device source type is not " - "supported by vz driver.")); + _("Specified character device source type is not su= pported by vz driver.")); return -1; } =20 if (chr->info.type !=3D VIR_DOMAIN_DEVICE_ADDRESS_TYPE_NONE) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Setting device info for character devices is not= " - "supported by vz driver.")); + _("Setting device info for character devices is not= supported by vz driver.")); return -1; } =20 if (chr->source->nseclabels > 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Setting security labels is not " - "supported by vz driver.")); + _("Setting security labels is not supported by vz d= river.")); return -1; } =20 @@ -2812,8 +2789,7 @@ static int prlsdkCheckSerialUnsupportedParams(virDoma= inChrDef *chr) STRNEQ(chr->source->data.udp.bindService, chr->source->data.udp.connectService))) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Different bind and connect parameters for " - "udp character device is not supported.")); + _("Different bind and connect parameters for udp ch= aracter device is not supported.")); return -1; } =20 @@ -2825,71 +2801,61 @@ static int prlsdkCheckNetUnsupportedParams(virDomai= nNetDef *net) if (net->type !=3D VIR_DOMAIN_NET_TYPE_NETWORK && net->type !=3D VIR_DOMAIN_NET_TYPE_BRIDGE) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Specified network adapter type is not " - "supported by vz driver.")); + _("Specified network adapter type is not supported = by vz driver.")); return -1; } =20 if (net->backend.tap || net->backend.vhost) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Interface backend parameters are not " - "supported by vz driver.")); + _("Interface backend parameters are not supported b= y vz driver.")); return -1; } =20 if (net->data.network.portgroup) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Virtual network portgroups are not " - "supported by vz driver.")); + _("Virtual network portgroups are not supported by = vz driver.")); return -1; } =20 if (net->tune.sndbuf_specified) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Setting interface sndbuf is not " - "supported by vz driver.")); + _("Setting interface sndbuf is not supported by vz = driver.")); return -1; } =20 if (net->script) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Setting interface script is not " - "supported by vz driver.")); + _("Setting interface script is not supported by vz = driver.")); return -1; } =20 if (net->ifname_guest) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Setting guest interface name is not " - "supported by vz driver.")); + _("Setting guest interface name is not supported by= vz driver.")); return -1; } =20 if (net->info.type !=3D VIR_DOMAIN_DEVICE_ADDRESS_TYPE_NONE) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Setting device info for network devices is not " - "supported by vz driver.")); + _("Setting device info for network devices is not s= upported by vz driver.")); return -1; } =20 if (net->filter) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Setting network filter is not " - "supported by vz driver.")); + _("Setting network filter is not supported by vz dr= iver.")); return -1; } =20 if (net->bandwidth) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Setting network bandwidth is not " - "supported by vz driver.")); + _("Setting network bandwidth is not supported by vz= driver.")); return -1; } =20 if (net->vlan.trunk) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Setting up vlans is not " - "supported by vz driver.")); + _("Setting up vlans is not supported by vz driver."= )); return -1; } =20 @@ -2901,50 +2867,43 @@ static int prlsdkCheckFSUnsupportedParams(virDomain= FSDef *fs) if (fs->type !=3D VIR_DOMAIN_FS_TYPE_FILE && fs->type !=3D VIR_DOMAIN_FS_TYPE_VOLUME) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Only file based or volume based filesystems " - "are supported by vz driver.")); + _("Only file based or volume based filesystems are = supported by vz driver.")); return -1; } =20 if (fs->fsdriver !=3D VIR_DOMAIN_FS_DRIVER_TYPE_PLOOP) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Only ploop fs driver is " - "supported by vz driver.")); + _("Only ploop fs driver is supported by vz driver."= )); return -1; } =20 if (fs->accessmode !=3D VIR_DOMAIN_FS_ACCESSMODE_PASSTHROUGH) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Changing fs access mode is not " - "supported by vz driver.")); + _("Changing fs access mode is not supported by vz d= river.")); return -1; } =20 if (fs->wrpolicy !=3D VIR_DOMAIN_FS_WRPOLICY_DEFAULT) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Changing fs write policy is not " - "supported by vz driver.")); + _("Changing fs write policy is not supported by vz = driver.")); return -1; } =20 if (fs->format !=3D VIR_STORAGE_FILE_PLOOP) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Only ploop disk images are " - "supported by vz driver.")); + _("Only ploop disk images are supported by vz drive= r.")); return -1; } =20 if (fs->readonly) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Setting readonly for filesystems is " - "not supported by vz driver.")); + _("Setting readonly for filesystems is not supporte= d by vz driver.")); return -1; } =20 if (fs->space_hard_limit || fs->space_soft_limit) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Setting fs quotas is not " - "supported by vz driver.")); + _("Setting fs quotas is not supported by vz driver.= ")); return -1; } =20 @@ -3053,8 +3012,7 @@ static int prlsdkAddSerial(PRL_HANDLE sdkdom, virDoma= inChrDef *chr) break; default: virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("vz driver doesn't support " - "specified serial source type.")); + _("vz driver doesn't support specified serial sourc= e type.")); goto cleanup; } =20 @@ -3280,8 +3238,7 @@ static int prlsdkConfigureNet(struct _vzDriver *drive= r G_GNUC_UNUSED, pret =3D PrlVmDevNet_SetAdapterType(sdknet, PNT_VIRTIO); } else { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Specified network adapter model is not " - "supported by vz driver.")); + _("Specified network adapter model is not suppo= rted by vz driver.")); goto cleanup; } prlsdkCheckRetGoto(pret, cleanup); @@ -3434,8 +3391,7 @@ static int prlsdkConfigureDisk(struct _vzDriver *driv= er, case VIR_DOMAIN_DISK_BUS_LAST: default: virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Specified disk bus is not " - "supported by vz driver.")); + _("Specified disk bus is not supported by vz driver= .")); goto cleanup; } =20 @@ -4276,8 +4232,7 @@ prlsdkUnregisterDomain(struct _vzDriver *driver, virD= omainObj *dom, unsigned int !(flags & VIR_DOMAIN_UNDEFINE_MANAGED_SAVE)) { =20 virReportError(VIR_ERR_OPERATION_INVALID, "%s", - _("Refusing to undefine while domain managed " - "save image exists")); + _("Refusing to undefine while domain managed save i= mage exists")); return -1; } =20 diff --git a/src/vz/vz_utils.c b/src/vz/vz_utils.c index 7db7dbd419..be1879a58b 100644 --- a/src/vz/vz_utils.c +++ b/src/vz/vz_utils.c @@ -273,16 +273,14 @@ vzCheckDiskUnsupportedParams(virDomainDiskDef *disk) disk->device !=3D VIR_DOMAIN_DISK_DEVICE_CDROM) { =20 virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Only hard disks and cdroms are supported " - "by vz driver.")); + _("Only hard disks and cdroms are supported by vz d= river.")); return -1; } =20 if (disk->blockio.logical_block_size || disk->blockio.physical_block_size) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Setting disk block sizes is not " - "supported by vz driver.")); + _("Setting disk block sizes is not supported by vz = driver.")); return -1; } =20 @@ -294,56 +292,48 @@ vzCheckDiskUnsupportedParams(virDomainDiskDef *disk) disk->blkdeviotune.write_iops_sec) { =20 virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Setting disk io limits is not " - "supported by vz driver yet.")); + _("Setting disk io limits is not supported by vz dr= iver yet.")); return -1; } =20 if (disk->serial && disk->device !=3D VIR_DOMAIN_DISK_DEVICE_DISK) { - VIR_INFO("%s", _("Setting disk serial number is " - "supported only for disk devices.")); + VIR_INFO("%s", _("Setting disk serial number is supported only for= disk devices.")); } =20 if (disk->wwn) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Setting disk wwn id is not " - "supported by vz driver.")); + _("Setting disk wwn id is not supported by vz drive= r.")); return -1; } =20 if (disk->vendor) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Setting disk vendor is not " - "supported by vz driver.")); + _("Setting disk vendor is not supported by vz drive= r.")); return -1; } =20 if (disk->product) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Setting disk product id is not " - "supported by vz driver.")); + _("Setting disk product id is not supported by vz d= river.")); return -1; } =20 if (disk->error_policy !=3D VIR_DOMAIN_DISK_ERROR_POLICY_DEFAULT) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Setting disk error policy is not " - "supported by vz driver.")); + _("Setting disk error policy is not supported by vz= driver.")); return -1; } =20 if (disk->iomode !=3D VIR_DOMAIN_DISK_IO_DEFAULT && disk->iomode !=3D VIR_DOMAIN_DISK_IO_NATIVE) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Only native iomode is " - "supported by vz driver.")); + _("Only native iomode is supported by vz driver.")); return -1; } =20 if (disk->copy_on_read) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Disk copy_on_read is not " - "supported by vz driver.")); + _("Disk copy_on_read is not supported by vz driver.= ")); return -1; } =20 @@ -355,29 +345,25 @@ vzCheckDiskUnsupportedParams(virDomainDiskDef *disk) =20 if (disk->startupPolicy !=3D VIR_DOMAIN_STARTUP_POLICY_DEFAULT) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Setting up disk startup policy is not " - "supported by vz driver.")); + _("Setting up disk startup policy is not supported = by vz driver.")); return -1; } =20 if (disk->transient) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Transient disks are not " - "supported by vz driver.")); + _("Transient disks are not supported by vz driver."= )); return -1; } =20 if (disk->discard) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Setting up disk discard parameter is not " - "supported by vz driver.")); + _("Setting up disk discard parameter is not support= ed by vz driver.")); return -1; } =20 if (disk->iothread) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Setting up disk io thread # is not " - "supported by vz driver.")); + _("Setting up disk io thread # is not supported by = vz driver.")); return -1; } =20 @@ -385,8 +371,7 @@ vzCheckDiskUnsupportedParams(virDomainDiskDef *disk) disk->src->type !=3D VIR_STORAGE_TYPE_BLOCK) { =20 virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("Only disk and block storage types are " - "supported by vz driver.")); + _("Only disk and block storage types are supported = by vz driver.")); return -1; =20 } @@ -503,52 +488,45 @@ int vzCheckUnsupportedGraphics(virDomainGraphicsDef *= gr) { if (gr->type !=3D VIR_DOMAIN_GRAPHICS_TYPE_VNC) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("vz driver supports only " - "VNC graphics.")); + _("vz driver supports only VNC graphics.")); return -1; } =20 if (gr->data.vnc.websocket !=3D 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("vz driver doesn't support " - "websockets for VNC graphics.")); + _("vz driver doesn't support websockets for VNC gra= phics.")); return -1; } =20 if (gr->data.vnc.keymap !=3D 0 && STRNEQ(gr->data.vnc.keymap, "en-us")) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("vz driver supports only " - "\"en-us\" keymap for VNC graphics.")); + _("vz driver supports only \"en-us\" keymap for VNC= graphics.")); return -1; } =20 if (gr->data.vnc.sharePolicy =3D=3D VIR_DOMAIN_GRAPHICS_VNC_SHARE_ALLO= W_EXCLUSIVE) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("vz driver doesn't support " - "exclusive share policy for VNC graphics.")); + _("vz driver doesn't support exclusive share policy= for VNC graphics.")); return -1; } =20 if (gr->data.vnc.auth.connected =3D=3D VIR_DOMAIN_GRAPHICS_AUTH_CONNEC= TED_FAIL || gr->data.vnc.auth.connected =3D=3D VIR_DOMAIN_GRAPHICS_AUTH_CONNEC= TED_KEEP) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("vz driver doesn't support " - "given action in case of password change.")); + _("vz driver doesn't support given action in case o= f password change.")); return -1; } =20 if (gr->data.vnc.auth.expires) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("vz driver doesn't support " - "setting password expire time.")); + _("vz driver doesn't support setting password expir= e time.")); return -1; } =20 if (gr->nListens > 1) { virReportError(VIR_ERR_INVALID_ARG, "%s", - _("vz driver doesn't support more than " - "one listening VNC server per domain")); + _("vz driver doesn't support more than one listenin= g VNC server per domain")); return -1; } =20 --=20 2.41.0 From nobody Sat May 18 15:38:13 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; 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=1692949263; cv=none; d=zohomail.com; s=zohoarc; b=DmYajCl5ZRbjWakpJbdCoe5nauApmFMebBVlCjwpD8RGmFoD49YPYbtE7kDeyjG20TsUPMUQamHUDH7TohYZ53FR4MogSIN9qipcYfbDpwXBCmjMNJUbV6waBs1gax5Fb+i0rNqWX+xqrChXOb3X3X2bwV3nhs2HazR3IQJC41Q= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1692949263; 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=GpIjjeaHEvm/R/GWd6e0ugMU+Ab010094CQkFhbTFQs=; b=Z0q55IlAFXMFUAy8mevxgeit9BDBl5Fc9LptUH7Fwd4X8m/4Ra5jQ/mocX3jousZg6EaHlYJ0POdvJLOkXYrPH4+Pr9zQtyrFVA3RqxjrHla9dP5inck4U6BG0H0/oexavSy+b2fv2jAuHJ6rwZ3hmYW4sF0oIehaMBWmlO6LEU= 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 1692949263010803.6677679392643; Fri, 25 Aug 2023 00:41:03 -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-657-Kj9Yx-eTOymz_-HYukg5xA-1; Fri, 25 Aug 2023 03:40:54 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 744D2108BF53; Fri, 25 Aug 2023 07:40:45 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 535F92026FFF; Fri, 25 Aug 2023 07:40:45 +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 304191946A43; Fri, 25 Aug 2023 07:40:45 +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 5B12219465B7 for ; Fri, 25 Aug 2023 07:40:42 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 440DC2026D76; Fri, 25 Aug 2023 07:40:42 +0000 (UTC) Received: from localhost.localdomain (unknown [10.43.2.56]) by smtp.corp.redhat.com (Postfix) with ESMTP id E04252026D68 for ; Fri, 25 Aug 2023 07:40:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1692949262; 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=GpIjjeaHEvm/R/GWd6e0ugMU+Ab010094CQkFhbTFQs=; b=PiK/52AJ4YMIqV4V8qRg3Gb3Dbqtq+snLqa1RIRiMic89sWJLA/OltUlKP+yWiqB26aHNx tCG6xD5NCOQkBewuwO3Tp/+Wm1TWyzsYyF3VKAscIoArt6a4JJcRVYveQDKjaZQP8AuWGi D0nv5O4T/2q+PTW9TZ75Vki5AkqqXrg= X-MC-Unique: Kj9Yx-eTOymz_-HYukg5xA-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH 26/27] src: Move error messages onto a single line Date: Fri, 25 Aug 2023 09:40:23 +0200 Message-ID: <57677783ad54aafb7cde868edb524969a252bc24.1692949012.git.mprivozn@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 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: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 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: 1692949263241100003 Content-Type: text/plain; charset="utf-8"; x-default="true" Error messages are exempt from the 80 columns rule. Move them onto one line. Signed-off-by: Michal Privoznik Reviewed-by: Pavel Hrdina --- src/libvirt-domain.c | 54 +++++++++++++++----------------------------- 1 file changed, 18 insertions(+), 36 deletions(-) diff --git a/src/libvirt-domain.c b/src/libvirt-domain.c index ec42bb9a53..6616294fc1 100644 --- a/src/libvirt-domain.c +++ b/src/libvirt-domain.c @@ -3569,8 +3569,7 @@ virDomainMigrateUnmanagedProto2(virDomainPtr domain, if (!virTypedParamsCheck(params, nparams, compatParams, G_N_ELEMENTS(compatParams))) { virReportError(VIR_ERR_ARGUMENT_UNSUPPORTED, "%s", - _("Some parameters are not supported by migration " - "protocol 2")); + _("Some parameters are not supported by migration p= rotocol 2")); return -1; } =20 @@ -3618,8 +3617,7 @@ virDomainMigrateUnmanagedProto3(virDomainPtr domain, if (!virTypedParamsCheck(params, nparams, compatParams, G_N_ELEMENTS(compatParams))) { virReportError(VIR_ERR_ARGUMENT_UNSUPPORTED, "%s", - _("Some parameters are not supported by migration " - "protocol 3")); + _("Some parameters are not supported by migration p= rotocol 3")); return -1; } =20 @@ -3822,8 +3820,7 @@ virDomainMigrate(virDomainPtr domain, if (rc <=3D 0) { if (rc =3D=3D 0) virReportError(VIR_ERR_ARGUMENT_UNSUPPORTED, "%s", - _("offline migration is not supported by " - "the source host")); + _("offline migration is not supported by th= e source host")); goto error; } =20 @@ -3832,8 +3829,7 @@ virDomainMigrate(virDomainPtr domain, if (rc <=3D 0) { if (rc =3D=3D 0) virReportError(VIR_ERR_ARGUMENT_UNSUPPORTED, "%s", - _("offline migration is not supported by " - "the destination host")); + _("offline migration is not supported by th= e destination host")); goto error; } } @@ -4021,8 +4017,7 @@ virDomainMigrate2(virDomainPtr domain, if (rc <=3D 0) { if (rc =3D=3D 0) virReportError(VIR_ERR_ARGUMENT_UNSUPPORTED, "%s", - _("offline migration is not supported by " - "the source host")); + _("offline migration is not supported by th= e source host")); goto error; } rc =3D VIR_DRV_SUPPORTS_FEATURE(dconn->driver, dconn, @@ -4030,8 +4025,7 @@ virDomainMigrate2(virDomainPtr domain, if (rc <=3D 0) { if (rc =3D=3D 0) virReportError(VIR_ERR_ARGUMENT_UNSUPPORTED, "%s", - _("offline migration is not supported by " - "the destination host")); + _("offline migration is not supported by th= e destination host")); goto error; } } @@ -4233,14 +4227,12 @@ virDomainMigrate3(virDomainPtr domain, =20 if (flags & VIR_MIGRATE_PEER2PEER) { virReportInvalidArg(flags, "%s", - _("use virDomainMigrateToURI3 for peer-to-peer= " - "migration")); + _("use virDomainMigrateToURI3 for peer-to-peer= migration")); goto error; } if (flags & VIR_MIGRATE_TUNNELLED) { virReportInvalidArg(flags, "%s", - _("cannot perform tunnelled migration " - "without using peer2peer flag")); + _("cannot perform tunnelled migration without = using peer2peer flag")); goto error; } =20 @@ -4250,8 +4242,7 @@ virDomainMigrate3(virDomainPtr domain, if (rc <=3D 0) { if (rc =3D=3D 0) virReportError(VIR_ERR_ARGUMENT_UNSUPPORTED, "%s", - _("offline migration is not supported by " - "the source host")); + _("offline migration is not supported by th= e source host")); goto error; } =20 @@ -4260,8 +4251,7 @@ virDomainMigrate3(virDomainPtr domain, if (rc <=3D 0) { if (rc =3D=3D 0) virReportError(VIR_ERR_ARGUMENT_UNSUPPORTED, "%s", - _("offline migration is not supported by " - "the destination host")); + _("offline migration is not supported by th= e destination host")); goto error; } } @@ -4303,8 +4293,7 @@ virDomainMigrate3(virDomainPtr domain, if (!virTypedParamsCheck(params, nparams, compatParams, G_N_ELEMENTS(compatParams))) { virReportError(VIR_ERR_ARGUMENT_UNSUPPORTED, "%s", - _("Migration APIs with extensible parameters are no= t " - "supported but extended parameters were passed")); + _("Migration APIs with extensible parameters are no= t supported but extended parameters were passed")); goto error; } =20 @@ -4346,8 +4335,7 @@ virDomainMigrate3(virDomainPtr domain, VIR_DEBUG("Using migration protocol 2"); if (dxml) { virReportError(VIR_ERR_ARGUMENT_UNSUPPORTED, "%s", - _("Unable to change target guest XML during " - "migration")); + _("Unable to change target guest XML during mig= ration")); goto error; } ddomain =3D virDomainMigrateVersion2(domain, dconn, flags, @@ -4367,8 +4355,7 @@ virDomainMigrate3(virDomainPtr domain, VIR_DEBUG("Using migration protocol 1"); if (dxml) { virReportError(VIR_ERR_ARGUMENT_UNSUPPORTED, "%s", - _("Unable to change target guest XML during " - "migration")); + _("Unable to change target guest XML during mig= ration")); goto error; } ddomain =3D virDomainMigrateVersion1(domain, dconn, flags, @@ -4413,8 +4400,7 @@ int virDomainMigrateUnmanagedCheckCompat(virDomainPtr= domain, if (rc <=3D 0) { if (rc =3D=3D 0) virReportError(VIR_ERR_ARGUMENT_UNSUPPORTED, "%s", - _("offline migration is not supported by " - "the source host")); + _("offline migration is not supported by th= e source host")); return -1; } } @@ -4426,8 +4412,7 @@ int virDomainMigrateUnmanagedCheckCompat(virDomainPtr= domain, if (rc <=3D 0) { if (rc =3D=3D 0) virReportError(VIR_ERR_ARGUMENT_UNSUPPORTED, "%s", - _("p2p migration is not supported by " - "the source host")); + _("p2p migration is not supported by the so= urce host")); return -1; } } else { @@ -4436,8 +4421,7 @@ int virDomainMigrateUnmanagedCheckCompat(virDomainPtr= domain, if (rc <=3D 0) { if (rc =3D=3D 0) virReportError(VIR_ERR_ARGUMENT_UNSUPPORTED, "%s", - _("direct migration is not supported by " - "the source host")); + _("direct migration is not supported by the= source host")); return -1; } } @@ -8585,8 +8569,7 @@ virDomainSetMetadata(virDomainPtr domain, case VIR_DOMAIN_METADATA_TITLE: if (metadata && strchr(metadata, '\n')) { virReportInvalidArg(metadata, "%s", - _("metadata title can't contain " - "newlines")); + _("metadata title can't contain newlines")= ); goto error; } G_GNUC_FALLTHROUGH; @@ -12697,8 +12680,7 @@ virDomainListGetStats(virDomainPtr *doms, =20 if (dom->conn !=3D conn) { virReportError(VIR_ERR_INVALID_ARG, "%s", - _("domains in 'doms' array must belong to a " - "single connection")); + _("domains in 'doms' array must belong to a sin= gle connection")); goto cleanup; } =20 --=20 2.41.0 From nobody Sat May 18 15:38:13 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; 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=1692949331; cv=none; d=zohomail.com; s=zohoarc; b=lzbn9rQLHxWDRzxcRxHMJD2d7fqyLUyYlESjn2fnA8peHH0raok1ENCuSEOL7zVDRpzgW+faVCowyIbZWxpbqtIbObfbVEjay42Ngub1gHAovTojE3Pj/SoHgGfoFwnElmBUXTSpf6N6sJYk1vvDUP34WF1xrwQWKPX6iL+61Kk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1692949331; 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=QxBxBU7r+0BJK93LI6ueud6uZX4Y85EQu8mfTWP+q1E=; b=DumOlW9V/yZMcyb/o6ORHSlXdIftrxsd35oPoTMeLJggsk/1gyDmx4dRiRQptfJSrN32oL6N903n9xXqW7pzi4lAvVmXDHXWyjBlP0UjtXTtCc4ADW6eEhYTg5o37ZWewTqZXzGrBvYDSnWBDCHC4uDIxgQ1dkJF1GMGeTx3ez0= 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 1692949330992983.6190965911024; Fri, 25 Aug 2023 00:42:10 -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-626-HUckh1QVPWyrVxgh3FSBnQ-1; Fri, 25 Aug 2023 03:40:54 -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 C3822810BB2; Fri, 25 Aug 2023 07:40:44 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id A72E14021B9; Fri, 25 Aug 2023 07:40:44 +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 8BE1A19465A8; Fri, 25 Aug 2023 07:40:44 +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 E02331946589 for ; Fri, 25 Aug 2023 07:40:42 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id D35AD2026D2B; Fri, 25 Aug 2023 07:40:42 +0000 (UTC) Received: from localhost.localdomain (unknown [10.43.2.56]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7AF532026D76 for ; Fri, 25 Aug 2023 07:40:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1692949329; 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=QxBxBU7r+0BJK93LI6ueud6uZX4Y85EQu8mfTWP+q1E=; b=ioDtZU4tqP/jWYwrEa1RxouAZ0vTt1fxb3a6Vl76TeLKr+pB0LZGsLRDZg3WjNkKgcW/dk g4jrGnEmvL8hczWvUKKW/dpqomJuF02udsuReltO/mb8T5zvK+1Zx2/78m8WLxVwNqYp68 n3B0IFHXMUheEothTN8/+aisoiNoEJ8= X-MC-Unique: HUckh1QVPWyrVxgh3FSBnQ-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH 27/27] tools: Move error messages onto a single line Date: Fri, 25 Aug 2023 09:40:24 +0200 Message-ID: <3c03dbbd15f79f0db68724324233eded8dd118b6.1692949012.git.mprivozn@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 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: , 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: 1692949333146100003 Content-Type: text/plain; charset="utf-8"; x-default="true" Error messages are exempt from the 80 columns rule. Move them onto one line. Signed-off-by: Michal Privoznik Reviewed-by: Pavel Hrdina --- tools/virsh-domain-event.c | 15 +++++--------- tools/virsh-domain.c | 36 +++++++++++---------------------- tools/virsh-host.c | 9 +++------ tools/virsh-network.c | 6 ++---- tools/virsh-nodedev.c | 3 +-- tools/virsh-pool.c | 3 +-- tools/virsh.c | 9 +++------ tools/virt-admin.c | 21 +++++++------------ tools/virt-host-validate-ch.c | 12 ++++------- tools/virt-host-validate-qemu.c | 15 +++++--------- tools/vsh.c | 12 ++++------- 11 files changed, 47 insertions(+), 94 deletions(-) diff --git a/tools/virsh-domain-event.c b/tools/virsh-domain-event.c index 2969c22a91..6887c195a0 100644 --- a/tools/virsh-domain-event.c +++ b/tools/virsh-domain-event.c @@ -418,8 +418,7 @@ virshEventGraphicsPrint(virConnectPtr conn G_GNUC_UNUSE= D, g_auto(virBuffer) buf =3D VIR_BUFFER_INITIALIZER; size_t i; =20 - virBufferAsprintf(&buf, _("event 'graphics' for domain '%1$s': " - "%2$s local[%3$s %4$s %5$s] remote[%6$s %7$s= %8$s] %9$s\n"), + virBufferAsprintf(&buf, _("event 'graphics' for domain '%1$s': %2$s lo= cal[%3$s %4$s %5$s] remote[%6$s %7$s %8$s] %9$s\n"), virDomainGetName(dom), virshGraphicsPhaseToString(phase), virshGraphicsAddressToString(local->family), @@ -497,8 +496,7 @@ virshEventDiskChangePrint(virConnectPtr conn G_GNUC_UNU= SED, { g_auto(virBuffer) buf =3D VIR_BUFFER_INITIALIZER; =20 - virBufferAsprintf(&buf, _("event 'disk-change' for domain '%1$s' disk = %2$s: " - "%3$s -> %4$s: %5$s\n"), + virBufferAsprintf(&buf, _("event 'disk-change' for domain '%1$s' disk = %2$s: %3$s -> %4$s: %5$s\n"), virDomainGetName(dom), alias, NULLSTR(oldSrc), @@ -633,8 +631,7 @@ virshEventAgentLifecyclePrint(virConnectPtr conn G_GNUC= _UNUSED, { g_auto(virBuffer) buf =3D VIR_BUFFER_INITIALIZER; =20 - virBufferAsprintf(&buf, _("event 'agent-lifecycle' for domain '%1$s': = state: " - "'%2$s' reason: '%3$s'\n"), + virBufferAsprintf(&buf, _("event 'agent-lifecycle' for domain '%1$s': = state: '%2$s' reason: '%3$s'\n"), virDomainGetName(dom), UNKNOWNSTR(virshEventAgentLifecycleStateTypeToString= (state)), UNKNOWNSTR(virshEventAgentLifecycleReasonTypeToStrin= g(reason))); @@ -649,8 +646,7 @@ virshEventMigrationIterationPrint(virConnectPtr conn G_= GNUC_UNUSED, { g_auto(virBuffer) buf =3D VIR_BUFFER_INITIALIZER; =20 - virBufferAsprintf(&buf, _("event 'migration-iteration' for domain '%1$= s': " - "iteration: '%2$d'\n"), + virBufferAsprintf(&buf, _("event 'migration-iteration' for domain '%1$= s': iteration: '%2$d'\n"), virDomainGetName(dom), iteration); =20 @@ -727,8 +723,7 @@ virshEventBlockThresholdPrint(virConnectPtr conn G_GNUC= _UNUSED, { g_auto(virBuffer) buf =3D VIR_BUFFER_INITIALIZER; =20 - virBufferAsprintf(&buf, _("event 'block-threshold' for domain '%1$s': " - "dev: %2$s(%3$s) %4$llu %5$llu\n"), + virBufferAsprintf(&buf, _("event 'block-threshold' for domain '%1$s': = dev: %2$s(%3$s) %4$llu %5$llu\n"), virDomainGetName(dom), dev, NULLSTR(path), threshold, excess); virshEventPrint(opaque, &buf); diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c index e0776c991f..7250c1989e 100644 --- a/tools/virsh-domain.c +++ b/tools/virsh-domain.c @@ -2143,14 +2143,12 @@ cmdBlockcommit(vshControl *ctl, const vshCmd *cmd) =20 if (!blocking) { if (verbose) { - vshError(ctl, "%s", _("--verbose requires at least one of --ti= meout, " - "--wait, --pivot, or --keep-overlay")); + vshError(ctl, "%s", _("--verbose requires at least one of --ti= meout, --wait, --pivot, or --keep-overlay")); return false; } =20 if (async) { - vshError(ctl, "%s", _("--async requires at least one of --time= out, " - "--wait, --pivot, or --keep-overlay")); + vshError(ctl, "%s", _("--async requires at least one of --time= out, --wait, --pivot, or --keep-overlay")); return false; } } @@ -2214,8 +2212,7 @@ cmdBlockcommit(vshControl *ctl, const vshCmd *cmd) goto cleanup; } =20 - vshPrintExtra(ctl, "\n%s", _("Commit complete, overlay " - "image kept")); + vshPrintExtra(ctl, "\n%s", _("Commit complete, overlay image k= ept")); } else { vshPrintExtra(ctl, "\n%s", _("Now in synchronized phase")); } @@ -2411,14 +2408,12 @@ cmdBlockcopy(vshControl *ctl, const vshCmd *cmd) =20 if (!blocking) { if (verbose) { - vshError(ctl, "%s", _("--verbose requires at least one of --ti= meout, " - "--wait, --pivot, or --finish")); + vshError(ctl, "%s", _("--verbose requires at least one of --ti= meout, --wait, --pivot, or --finish")); return false; } =20 if (async) { - vshError(ctl, "%s", _("--async requires at least one of --time= out, " - "--wait, --pivot, or --finish")); + vshError(ctl, "%s", _("--async requires at least one of --time= out, --wait, --pivot, or --finish")); return false; } } @@ -3703,8 +3698,7 @@ cmdUndefine(vshControl *ctl, const vshCmd *cmd) =20 if (!(vol_string || remove_all_storage) && wipe_storage) { vshError(ctl, - _("'--wipe-storage' requires '--storage ' or " - "'--remove-all-storage'")); + _("'--wipe-storage' requires '--storage ' or '--r= emove-all-storage'")); return false; } =20 @@ -3789,8 +3783,7 @@ cmdUndefine(vshControl *ctl, const vshCmd *cmd) if (vol_string || remove_all_storage) { if (running) { vshError(ctl, - _("Storage volume deletion is supported only on " - "stopped domains")); + _("Storage volume deletion is supported only on stopp= ed domains")); goto cleanup; } =20 @@ -3927,8 +3920,7 @@ cmdUndefine(vshControl *ctl, const vshCmd *cmd) if (has_managed_save) { if (!managed_save) { vshError(ctl, "%s", - _("Refusing to undefine while domain managed save " - "image exists")); + _("Refusing to undefine while domain managed save ima= ge exists")); goto cleanup; } if (virDomainManagedSaveRemove(dom, 0) < 0) { @@ -5149,8 +5141,7 @@ cmdSchedInfoUpdate(vshControl *ctl, const vshCmd *cmd, g_autofree char *set_field =3D g_strdup(opt->data); =20 if (!(set_val =3D strchr(set_field, '=3D'))) { - vshError(ctl, "%s", _("Invalid syntax for --set, " - "expecting name=3Dvalue")); + vshError(ctl, "%s", _("Invalid syntax for --set, expecting nam= e=3Dvalue")); goto cleanup; } =20 @@ -7400,8 +7391,7 @@ cmdGuestvcpus(vshControl *ctl, const vshCmd *cmd) return false; =20 if (cpulist && !(enable || disable)) { - vshError(ctl, _("One of options --enable or --disable is required = by " - "option --cpulist")); + vshError(ctl, _("One of options --enable or --disable is required = by option --cpulist")); return false; } =20 @@ -12528,8 +12518,7 @@ virshDomainDetachInterface(char *doc, if (virMacAddrCompare(tmp_mac, mac) =3D=3D 0) { if (matchNode) { /* this is the 2nd match, so it's ambiguous */ - vshError(ctl, _("Domain has multiple interfaces ma= tching MAC address %1$s. " - "You must use detach-device and sp= ecify the device pci address to remove it."), + vshError(ctl, _("Domain has multiple interfaces ma= tching MAC address %1$s. You must use detach-device and specify the device = pci address to remove it."), mac); return false; } @@ -13787,8 +13776,7 @@ cmdDomDirtyRateCalc(vshControl *ctl, const vshCmd *= cmd) if (virDomainStartDirtyRateCalc(dom, seconds, flags) < 0) return false; =20 - vshPrintExtra(ctl, _("Start to calculate domain's memory " - "dirty rate successfully.\n")); + vshPrintExtra(ctl, _("Start to calculate domain's memory dirty rate su= ccessfully.\n")); =20 return true; } diff --git a/tools/virsh-host.c b/tools/virsh-host.c index ad440d5123..21aca5f6dc 100644 --- a/tools/virsh-host.c +++ b/tools/virsh-host.c @@ -355,8 +355,7 @@ cmdFreepages(vshControl *ctl, const vshCmd *cmd) nodes_cnt =3D virXPathNodeSet("/capabilities/host/topology= /cells/cell/pages", ctxt, &nodes); if (nodes_cnt <=3D 0) { - vshError(ctl, "%s", _("could not get information about= " - "supported page sizes")); + vshError(ctl, "%s", _("could not get information about= supported page sizes")); goto cleanup; } } @@ -548,8 +547,7 @@ cmdAllocpages(vshControl *ctl, const vshCmd *cmd) ctxt, &nodes); =20 if (nodes_cnt =3D=3D -1) { - vshError(ctl, "%s", _("could not get information about " - "NUMA topology")); + vshError(ctl, "%s", _("could not get information about NUMA to= pology")); return false; } =20 @@ -1180,8 +1178,7 @@ vshExtractCPUDefXMLs(vshControl *ctl, while (nodes[i]->properties) { if (xmlRemoveProp(nodes[i]->properties) < 0) { vshError(ctl, - _("Cannot extract CPU definition from domain " - "capabilities XML")); + _("Cannot extract CPU definition from domain = capabilities XML")); return NULL; } } diff --git a/tools/virsh-network.c b/tools/virsh-network.c index 42b7dba761..11e927d3ff 100644 --- a/tools/virsh-network.c +++ b/tools/virsh-network.c @@ -742,8 +742,7 @@ cmdNetworkList(vshControl *ctl, const vshCmd *cmd G_GNU= C_UNUSED) =20 if (optTable + optName + optUUID > 1) { vshError(ctl, "%s", - _("Only one argument from --table, --name and --uuid " - "may be specified.")); + _("Only one argument from --table, --name and --uuid may = be specified.")); return false; } =20 @@ -1764,8 +1763,7 @@ cmdNetworkPortList(vshControl *ctl, const vshCmd *cmd) =20 if (optTable + optUUID > 1) { vshError(ctl, "%s", - _("Only one argument from --table and --uuid " - "may be specified.")); + _("Only one argument from --table and --uuid may be speci= fied.")); return false; } =20 diff --git a/tools/virsh-nodedev.c b/tools/virsh-nodedev.c index a079c8063b..82b8fb44fc 100644 --- a/tools/virsh-nodedev.c +++ b/tools/virsh-nodedev.c @@ -297,8 +297,7 @@ virshNodeDeviceListCollect(vshControl *ctl, device =3D list->devices[i]; =20 if ((ncaps =3D virNodeDeviceNumOfCaps(device)) < 0) { - vshError(ctl, "%s", _("Failed to get capability numbers " - "of the device")); + vshError(ctl, "%s", _("Failed to get capability numbers of the= device")); goto cleanup; } =20 diff --git a/tools/virsh-pool.c b/tools/virsh-pool.c index 56bd414dc9..5803530d79 100644 --- a/tools/virsh-pool.c +++ b/tools/virsh-pool.c @@ -895,8 +895,7 @@ virshStoragePoolListCollect(vshControl *ctl, =20 /* There is no way to get the pool type */ if (VSH_MATCH(VIR_CONNECT_LIST_STORAGE_POOLS_FILTERS_POOL_TYPE)) { - vshError(ctl, "%s", _("Filtering using --type is not supported " - "by this libvirt")); + vshError(ctl, "%s", _("Filtering using --type is not supported by = this libvirt")); goto cleanup; } =20 diff --git a/tools/virsh.c b/tools/virsh.c index 40c23e4180..d9922a35fc 100644 --- a/tools/virsh.c +++ b/tools/virsh.c @@ -166,8 +166,7 @@ virshConnect(vshControl *ctl, const char *uri, bool rea= donly) virConnectSetKeepAlive(c, interval, count) !=3D 0) { if (keepalive_forced) { vshError(ctl, "%s", - _("Cannot setup keepalive on connection " - "as requested, disconnecting")); + _("Cannot setup keepalive on connection as requested,= disconnecting")); g_clear_pointer(&c, virConnectClose); goto cleanup; } @@ -209,8 +208,7 @@ virshReconnect(vshControl *ctl, const char *name, bool = readonly, bool force) if (ret < 0) vshError(ctl, "%s", _("Failed to disconnect from the hyperviso= r")); else if (ret > 0) - vshError(ctl, "%s", _("One or more references were leaked afte= r " - "disconnect from the hypervisor")); + vshError(ctl, "%s", _("One or more references were leaked afte= r disconnect from the hypervisor")); } =20 priv->conn =3D virshConnect(ctl, name ? name : ctl->connname, readonly= ); @@ -400,8 +398,7 @@ virshDeinit(vshControl *ctl) if (ret < 0) vshError(ctl, "%s", _("Failed to disconnect from the hyperviso= r")); else if (ret > 0) - vshError(ctl, "%s", _("One or more references were leaked afte= r " - "disconnect from the hypervisor")); + vshError(ctl, "%s", _("One or more references were leaked afte= r disconnect from the hypervisor")); } virResetLastError(); =20 diff --git a/tools/virt-admin.c b/tools/virt-admin.c index 9d01890447..15a639f1ea 100644 --- a/tools/virt-admin.c +++ b/tools/virt-admin.c @@ -139,8 +139,7 @@ vshAdmDisconnect(vshControl *ctl) if (ret < 0) vshError(ctl, "%s", _("Failed to disconnect from the admin server"= )); else if (ret > 0) - vshError(ctl, "%s", _("One or more references were leaked after " - "disconnect from the hypervisor")); + vshError(ctl, "%s", _("One or more references were leaked after di= sconnect from the hypervisor")); priv->conn =3D NULL; return ret; } @@ -500,8 +499,7 @@ cmdSrvThreadpoolSet(vshControl *ctl, const vshCmd *cmd) =20 if (!nparams) { vshError(ctl, "%s", - _("At least one of options --min-workers, --max-workers, " - "--priority-workers is mandatory")); + _("At least one of options --min-workers, --max-workers, = --priority-workers is mandatory")); goto cleanup; } =20 @@ -509,8 +507,7 @@ cmdSrvThreadpoolSet(vshControl *ctl, const vshCmd *cmd) VIR_THREADPOOL_WORKERS_MAX, &max) && virTypedParamsGetUInt(params, nparams, VIR_THREADPOOL_WORKERS_MIN, &min) && min > m= ax) { - vshError(ctl, "%s", _("--min-workers must be less than or equal to= " - "--max-workers")); + vshError(ctl, "%s", _("--min-workers must be less than or equal to= --max-workers")); goto cleanup; } =20 @@ -820,8 +817,7 @@ cmdSrvClientsInfo(vshControl *ctl, const vshCmd *cmd) goto cleanup; =20 if (virAdmServerGetClientLimits(srv, ¶ms, &nparams, 0) < 0) { - vshError(ctl, "%s", _("Unable to retrieve client limits " - "from server's configuration")); + vshError(ctl, "%s", _("Unable to retrieve client limits from serve= r's configuration")); goto cleanup; } =20 @@ -904,8 +900,7 @@ cmdSrvClientsSet(vshControl *ctl, const vshCmd *cmd) #undef PARSE_CMD_TYPED_PARAM =20 if (!nparams) { - vshError(ctl, "%s", _("At least one of options --max-clients, " - "--max-unauth-clients is mandatory")); + vshError(ctl, "%s", _("At least one of options --max-clients, --ma= x-unauth-clients is mandatory")); goto cleanup; } =20 @@ -914,8 +909,7 @@ cmdSrvClientsSet(vshControl *ctl, const vshCmd *cmd) virTypedParamsGetUInt(params, nparams, VIR_SERVER_CLIENTS_UNAUTH_MAX, &unauth_max) = && unauth_max > max) { - vshError(ctl, "%s", _("--max-unauth-clients must be less than or e= qual to " - "--max-clients")); + vshError(ctl, "%s", _("--max-unauth-clients must be less than or e= qual to --max-clients")); goto cleanup; } =20 @@ -936,8 +930,7 @@ cmdSrvClientsSet(vshControl *ctl, const vshCmd *cmd) vshSaveLibvirtError(); =20 error: - vshError(ctl, "%s", _("Unable to change server's client-related " - "configuration limits")); + vshError(ctl, "%s", _("Unable to change server's client-related config= uration limits")); goto cleanup; } =20 diff --git a/tools/virt-host-validate-ch.c b/tools/virt-host-validate-ch.c index b26f82738d..9d235ed7ab 100644 --- a/tools/virt-host-validate-ch.c +++ b/tools/virt-host-validate-ch.c @@ -33,8 +33,7 @@ int virHostValidateCh(void) bool hasVirtFlag =3D false; virArch arch =3D virArchFromHost(); const char *kvmhint =3D - _("Check that CPU and firmware supports virtualization " - "and kvm module is loaded"); + _("Check that CPU and firmware supports virtualization and kvm mod= ule is loaded"); =20 if (!(flags =3D virHostValidateGetCPUFlags())) return -1; @@ -43,8 +42,7 @@ int virHostValidateCh(void) switch ((int)arch) { case VIR_ARCH_X86_64: hasVirtFlag =3D true; - kvmhint =3D _("Check that the 'kvm-intel' or 'kvm-amd' modules are= " - "loaded & the BIOS has enabled virtualization"); + kvmhint =3D _("Check that the 'kvm-intel' or 'kvm-amd' modules are= loaded & the BIOS has enabled virtualization"); if (virBitmapIsBitSet(flags, VIR_HOST_VALIDATE_CPU_FLAG_SVM) || virBitmapIsBitSet(flags, VIR_HOST_VALIDATE_CPU_FLAG_VMX)) hasHwVirt =3D true; @@ -64,8 +62,7 @@ int virHostValidateCh(void) virHostMsgPass(); } else { virHostMsgFail(VIR_HOST_VALIDATE_FAIL, - _("Only emulated CPUs are available, performanc= e will be " - "significantly limited")); + _("Only emulated CPUs are available, performanc= e will be significantly limited")); ret =3D -1; } } @@ -75,8 +72,7 @@ int virHostValidateCh(void) kvmhint) < 0) ret =3D -1; else if (virHostValidateDeviceAccessible("CH", "/dev/kvm", VIR_HOS= T_VALIDATE_FAIL, - _("Check /dev/kvm is worl= d writable or you are in " - "a group that is allowe= d to access it")) < 0) + _("Check /dev/kvm is worl= d writable or you are in a group that is allowed to access it")) < 0) ret =3D -1; } =20 diff --git a/tools/virt-host-validate-qemu.c b/tools/virt-host-validate-qem= u.c index 096419869c..3eeee516d3 100644 --- a/tools/virt-host-validate-qemu.c +++ b/tools/virt-host-validate-qemu.c @@ -34,8 +34,7 @@ int virHostValidateQEMU(void) bool hasHwVirt =3D false; bool hasVirtFlag =3D false; virArch arch =3D virArchFromHost(); - const char *kvmhint =3D _("Check that CPU and firmware supports virtua= lization " - "and kvm module is loaded"); + const char *kvmhint =3D _("Check that CPU and firmware supports virtua= lization and kvm module is loaded"); =20 if (!(flags =3D virHostValidateGetCPUFlags())) return -1; @@ -44,8 +43,7 @@ int virHostValidateQEMU(void) case VIR_ARCH_I686: case VIR_ARCH_X86_64: hasVirtFlag =3D true; - kvmhint =3D _("Check that the 'kvm-intel' or 'kvm-amd' modules are= " - "loaded & the BIOS has enabled virtualization"); + kvmhint =3D _("Check that the 'kvm-intel' or 'kvm-amd' modules are= loaded & the BIOS has enabled virtualization"); if (virBitmapIsBitSet(flags, VIR_HOST_VALIDATE_CPU_FLAG_SVM) || virBitmapIsBitSet(flags, VIR_HOST_VALIDATE_CPU_FLAG_VMX)) hasHwVirt =3D true; @@ -71,8 +69,7 @@ int virHostValidateQEMU(void) virHostMsgPass(); } else { virHostMsgFail(VIR_HOST_VALIDATE_FAIL, - _("Host not compatible with KVM; HW virtualizat= ion CPU features not found. " - "Only emulated CPUs are available; performanc= e will be significantly limited")); + _("Host not compatible with KVM; HW virtualizat= ion CPU features not found. Only emulated CPUs are available; performance w= ill be significantly limited")); ret =3D -1; } } @@ -84,8 +81,7 @@ int virHostValidateQEMU(void) ret =3D -1; else if (virHostValidateDeviceAccessible("QEMU", "/dev/kvm", VIR_HOST_VALIDATE_FAIL, - _("Check /dev/kvm is worl= d writable or you are in " - "a group that is allowe= d to access it")) < 0) + _("Check /dev/kvm is worl= d writable or you are in a group that is allowed to access it")) < 0) ret =3D -1; } =20 @@ -101,8 +97,7 @@ int virHostValidateQEMU(void) =20 if (virHostValidateDeviceExists("QEMU", "/dev/vhost-net", VIR_HOST_VALIDATE_WARN, - _("Load the 'vhost_net' module to impr= ove performance " - "of virtio networking")) < 0) + _("Load the 'vhost_net' module to impr= ove performance of virtio networking")) < 0) ret =3D -1; =20 if (virHostValidateDeviceExists("QEMU", "/dev/net/tun", diff --git a/tools/vsh.c b/tools/vsh.c index 41f55a91fa..65deaa77e8 100644 --- a/tools/vsh.c +++ b/tools/vsh.c @@ -2358,8 +2358,7 @@ vshAskReedit(vshControl *ctl, const char *msg, bool r= elax_avail) =20 if (relax_avail) { vshPrintRaw(ctl, - _("i - turn off validation and try to redefine= " - "again"), + _("i - turn off validation and try to redefine= again"), NULL); } =20 @@ -2385,8 +2384,7 @@ vshAskReedit(vshControl *ctl, const char *msg G_GNUC_UNUSED, bool relax_avail G_GNUC_UNUSED) { - vshDebug(ctl, VSH_ERR_WARNING, "%s", _("This function is not " - "supported on WIN32 platform")); + vshDebug(ctl, VSH_ERR_WARNING, "%s", _("This function is not supported= on WIN32 platform")); return 0; } #endif /* WIN32 */ @@ -3022,8 +3020,7 @@ vshInit(vshControl *ctl, const vshCmdGrp *groups, con= st vshCmdDef *set) } =20 if (!groups && !set) { - vshError(ctl, "%s", _("command groups and command set " - "cannot both be NULL")); + vshError(ctl, "%s", _("command groups and command set cannot both = be NULL")); return false; } =20 @@ -3041,8 +3038,7 @@ bool vshInitReload(vshControl *ctl) { if (!cmdGroups && !cmdSet) { - vshError(ctl, "%s", _("command groups and command are both NULL " - "run vshInit before reloading")); + vshError(ctl, "%s", _("command groups and command are both NULL ru= n vshInit before reloading")); return false; } =20 --=20 2.41.0