From nobody Fri Dec 19 06:35:01 2025 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=1678464635; cv=none; d=zohomail.com; s=zohoarc; b=lHol8mq8XZqlQ4QSYBiTC17Y++5dACajc5YN0Xl0iBJoRTE64WLqCvyT4mso/IaVhHu1DA+Y7AJMMo+YN8AHYx1c1/wmTjtAQiGETSuf1WwRtlxjAjYi5R4N7JD6lVkXKwzeaZuCO6wKIiQvv3f41OTRlXbL5tMvMldD2qZ3V7U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1678464635; 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=S5M6db977d8qH245VUNK3S+oph00vqfgagvHWohjaJA=; b=bq6vNaa5bVJ1LyN4iOpgG1jw/Pq7ScGgEhKkr6naCqTBDqTcmk4qAq9VaA1lv/QuVJIxnPg2VXuKaesaEk2X/nqbB9JrnCtk8h8kh0KpiWo3kPucyFB9rAR0MeTY7K3PxpvoJW+zrmqPYjFXCuAbe3iigjBZmCH21OdICjn1xIo= 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 1678464635122484.71578362166997; Fri, 10 Mar 2023 08:10:35 -0800 (PST) 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-526-wECdgDydM_W1xHQsa1o14w-1; Fri, 10 Mar 2023 11:10:29 -0500 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 87C5087A9E1; Fri, 10 Mar 2023 16:10:24 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6C2BC2166B2A; Fri, 10 Mar 2023 16:10:24 +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 5CEFE1946A54; Fri, 10 Mar 2023 16:10:24 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id E805D1946A54 for ; Fri, 10 Mar 2023 16:10:22 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id D96F4C15BAE; Fri, 10 Mar 2023 16:10:22 +0000 (UTC) Received: from rein.int.mamuti.net (unknown [10.45.226.138]) by smtp.corp.redhat.com (Postfix) with ESMTP id 29B3CC15BA0 for ; Fri, 10 Mar 2023 16:10:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1678464633; 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=S5M6db977d8qH245VUNK3S+oph00vqfgagvHWohjaJA=; b=dJu3kQDWaAK1P+Qu6LfJfcxVi2a+DbpKZIlRJUnpvwIRo5f6OTW8yOMtr7vBBSjFFQ6ESt U5Rf2pafP9qqX5rRsfgedYbN6f3onpsAA/15KstDML/GOaatMscfE//9oY9blWUONH7xEB IrTM/GgW6uOGVMFhA+XubsEPzvmQ2dE= X-MC-Unique: wECdgDydM_W1xHQsa1o14w-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Jiri Denemark To: libvir-list@redhat.com Subject: [libvirt PATCH 06/51] conf/domain_conf: Update format strings in translated messages Date: Fri, 10 Mar 2023 17:09:22 +0100 Message-Id: <31fd4ff69b1fd4c8578e3a029d96aa84d3355e57.1678463799.git.jdenemar@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 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: 1678464636863100013 Content-Type: text/plain; charset="utf-8" Signed-off-by: Jiri Denemark --- src/conf/domain_conf.c | 874 ++++++++++++++++++----------------------- 1 file changed, 391 insertions(+), 483 deletions(-) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 783d3a5fff..00c3b11dc2 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -1637,8 +1637,7 @@ virDomainKeyWrapCipherDefParseXML(virDomainKeyWrapDef= *keywrap, case VIR_DOMAIN_KEY_WRAP_CIPHER_NAME_AES: if (keywrap->aes !=3D VIR_TRISTATE_SWITCH_ABSENT) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("A domain definition can have no more than " - "one cipher node with name %s"), + _("A domain definition can have no more than on= e cipher node with name %1$s"), virDomainKeyWrapCipherNameTypeToString(name)); =20 return -1; @@ -1649,8 +1648,7 @@ virDomainKeyWrapCipherDefParseXML(virDomainKeyWrapDef= *keywrap, case VIR_DOMAIN_KEY_WRAP_CIPHER_NAME_DEA: if (keywrap->dea !=3D VIR_TRISTATE_SWITCH_ABSENT) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("A domain definition can have no more than " - "one cipher node with name %s"), + _("A domain definition can have no more than on= e cipher node with name %1$s"), virDomainKeyWrapCipherNameTypeToString(name)); =20 return -1; @@ -1874,14 +1872,14 @@ virDomainBlkioDeviceParseXML(xmlNodePtr root, if ((weight =3D virXPathString("string(./weight)", ctxt)) && (virStrToLong_ui(weight, NULL, 10, &dev->weight) < 0)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("could not parse weight %s"), weight); + _("could not parse weight %1$s"), weight); return -1; } =20 if ((read_bytes_sec =3D virXPathString("string(./read_bytes_sec)", ctx= t)) && (virStrToLong_ull(read_bytes_sec, NULL, 10, &dev->rbps) < 0)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("could not parse read bytes sec %s"), + _("could not parse read bytes sec %1$s"), read_bytes_sec); return -1; } @@ -1889,7 +1887,7 @@ virDomainBlkioDeviceParseXML(xmlNodePtr root, if ((write_bytes_sec =3D virXPathString("string(./write_bytes_sec)", c= txt)) && (virStrToLong_ull(write_bytes_sec, NULL, 10, &dev->wbps) < 0)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("could not parse write bytes sec %s"), + _("could not parse write bytes sec %1$s"), write_bytes_sec); return -1; } @@ -1897,7 +1895,7 @@ virDomainBlkioDeviceParseXML(xmlNodePtr root, if ((read_iops_sec =3D virXPathString("string(./read_iops_sec)", ctxt)= ) && (virStrToLong_ui(read_iops_sec, NULL, 10, &dev->riops) < 0)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("could not parse read iops sec %s"), + _("could not parse read iops sec %1$s"), read_iops_sec); return -1; } @@ -1905,7 +1903,7 @@ virDomainBlkioDeviceParseXML(xmlNodePtr root, if ((write_iops_sec =3D virXPathString("string(./write_iops_sec)", ctx= t)) && (virStrToLong_ui(write_iops_sec, NULL, 10, &dev->wiops) < 0)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("could not parse write iops sec %s"), + _("could not parse write iops sec %1$s"), write_iops_sec); return -1; } @@ -2220,7 +2218,7 @@ virDomainDefGetVcpuSched(virDomainDef *def, =20 if (!(vcpuinfo =3D virDomainDefGetVcpu(def, vcpu))) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("vCPU '%u' is not present in domain definition"), + _("vCPU '%1$u' is not present in domain definition"= ), vcpu); return NULL; } @@ -2322,7 +2320,7 @@ virDomainDefGetVcpusTopology(const virDomainDef *def, (tmp *=3D def->cpu->cores) > UINT_MAX || (tmp *=3D def->cpu->threads) > UINT_MAX) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("cpu topology results in more than %u cpus"), UIN= T_MAX); + _("cpu topology results in more than %1$u cpus"), U= INT_MAX); return -1; } =20 @@ -5216,7 +5214,7 @@ virDomainDefLifecycleActionAllowed(virDomainLifecycle= type, } =20 virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Lifecycle event '%s' doesn't support '%s' action"), + _("Lifecycle event '%1$s' doesn't support '%2$s' action= "), virDomainLifecycleTypeToString(type), virDomainLifecycleActionTypeToString(action)); return false; @@ -5249,14 +5247,14 @@ virDomainDeviceLoadparmIsValid(const char *loadparm) { if (virStringIsEmpty(loadparm) || !STRLIM(loadparm, 8)) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("loadparm value '%s' must be between 1 and 8 char= acters"), + _("loadparm value '%1$s' must be between 1 and 8 ch= aracters"), loadparm); return false; } =20 if (strspn(loadparm, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuv= wxyz0123456789. ") !=3D strlen(loadparm)) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("invalid loadparm value '%s', expecting chars in = set of [a-zA-Z0-9.] and blank spaces"), + _("invalid loadparm value '%1$s', expecting chars i= n set of [a-zA-Z0-9.] and blank spaces"), loadparm); return false; } @@ -5472,7 +5470,7 @@ virDomainDeviceBootParseXML(xmlNodePtr node, if (loadparm) { if (virStringToUpper(&info->loadparm, loadparm) !=3D 1) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("Failed to convert loadparm '%s' to upper cas= e"), + _("Failed to convert loadparm '%1$s' to upper c= ase"), loadparm); return -1; } @@ -5533,7 +5531,7 @@ virDomainDeviceAddressParseXML(xmlNodePtr address, =20 if ((info->type =3D virDomainDeviceAddressTypeFromString(type)) <=3D 0= ) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("unknown address type '%s'"), type); + _("unknown address type '%1$s'"), type); return -1; } =20 @@ -5802,7 +5800,7 @@ virDomainHostdevSubsysPCIDefParseXML(xmlNodePtr node, =20 if ((state =3D virDomainHostdevPCIOrigstateTypeFromString(= (const char *) nodes[i]->name)) < 0) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("unsupported element '%s' of 'origsta= tes'"), + _("unsupported element '%1$s' of 'origs= tates'"), (const char *) nodes[i]->name); return -1; } @@ -5832,7 +5830,7 @@ virDomainStorageNetworkParseHost(xmlNodePtr hostnode, host->transport =3D virStorageNetHostTransportTypeFromString(trans= port); if (host->transport < 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("unknown protocol transport type '%s'"), + _("unknown protocol transport type '%1$s'"), transport); goto cleanup; } @@ -5850,8 +5848,7 @@ virDomainStorageNetworkParseHost(xmlNodePtr hostnode, if (host->transport !=3D VIR_STORAGE_NET_HOST_TRANS_UNIX && host->socket !=3D NULL) { virReportError(VIR_ERR_XML_ERROR, - _("transport '%s' does not support " - "socket attribute"), + _("transport '%1$s' does not support socket attribu= te"), transport); goto cleanup; } @@ -6021,13 +6018,13 @@ virDomainHostdevSubsysSCSIiSCSIDefParseXML(xmlNodeP= tr sourcenode, return -1; if ((auth_secret_usage =3D virSecretUsageTypeFromString(authdef->s= ecrettype)) < 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("invalid secret type %s"), + _("invalid secret type %1$s"), authdef->secrettype); return -1; } if (auth_secret_usage !=3D VIR_SECRET_USAGE_TYPE_ISCSI) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("hostdev invalid secret type '%s'"), + _("hostdev invalid secret type '%1$s'"), authdef->secrettype); return -1; } @@ -6060,7 +6057,7 @@ virDomainHostdevSubsysSCSIDefParseXML(xmlNodePtr sour= cenode, virDomainHostdevSubsysSCSIProtocolTypeFromString(protocol); if (scsisrc->protocol < 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Unknown SCSI subsystem protocol '%s'"), + _("Unknown SCSI subsystem protocol '%1$s'"), protocol); return -1; } @@ -6101,7 +6098,7 @@ virDomainHostdevSubsysSCSIVHostDefParseXML(xmlNodePtr= sourcenode, if ((hostsrc->protocol =3D virDomainHostdevSubsysSCSIHostProtocolTypeFromString(protocol)) <= =3D 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Unknown scsi_host subsystem protocol '%s'"), + _("Unknown scsi_host subsystem protocol '%1$s'"), protocol); return -1; } @@ -6124,7 +6121,7 @@ virDomainHostdevSubsysSCSIVHostDefParseXML(xmlNodePtr= sourcenode, case VIR_DOMAIN_HOSTDEV_SUBSYS_SCSI_HOST_PROTOCOL_TYPE_NONE: case VIR_DOMAIN_HOSTDEV_SUBSYS_SCSI_HOST_PROTOCOL_TYPE_LAST: virReportError(VIR_ERR_XML_ERROR, - _("Invalid hostdev protocol '%s'"), + _("Invalid hostdev protocol '%1$s'"), virDomainHostdevSubsysSCSIHostProtocolTypeToString(= hostsrc->protocol)); return -1; } @@ -6209,7 +6206,7 @@ virDomainHostdevDefParseXMLSubsys(xmlNodePtr node, =20 if ((def->source.subsys.type =3D virDomainHostdevSubsysTypeFromString(= type)) < 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("unknown host device source address type '%s'"), + _("unknown host device source address type '%1$s'"), type); return -1; } @@ -6259,8 +6256,7 @@ virDomainHostdevDefParseXMLSubsys(xmlNodePtr node, def->source.subsys.type !=3D VIR_DOMAIN_HOSTDEV_SUBSYS_TYPE_SCSI_H= OST) { if (model) { virReportError(VIR_ERR_XML_ERROR, - _("'model' attribute in is only suppo= rted " - "when type=3D'%s'"), + _("'model' attribute in is only suppo= rted when type=3D'%1$s'"), virDomainHostdevSubsysTypeToString(def->source.= subsys.type)); return -1; } @@ -6325,7 +6321,7 @@ virDomainHostdevDefParseXMLSubsys(xmlNodePtr node, =20 default: virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("address type=3D'%s' not supported in hostdev int= erfaces"), + _("address type=3D'%1$s' not supported in hostdev i= nterfaces"), virDomainHostdevSubsysTypeToString(def->source.subs= ys.type)); return -1; } @@ -6363,7 +6359,7 @@ virDomainNetIPParseXML(xmlNodePtr node) =20 if (virSocketAddrParse(&ip->address, address, family) < 0) { virReportError(VIR_ERR_XML_ERROR, - _("Invalid address '%s' in "), + _("Invalid address '%1$s' in "), address); return NULL; } @@ -6374,7 +6370,7 @@ virDomainNetIPParseXML(xmlNodePtr node) (family =3D=3D AF_INET6 && prefixValue > 128) || (family =3D=3D AF_INET && prefixValue > 32))) { virReportError(VIR_ERR_XML_ERROR, - _("Invalid prefix value '%s' in "), + _("Invalid prefix value '%1$s' in "), prefixStr); return NULL; } @@ -6383,7 +6379,7 @@ virDomainNetIPParseXML(xmlNodePtr node) if ((peer =3D virXMLPropString(node, "peer")) !=3D NULL && virSocketAddrParse(&ip->peer, peer, family) < 0) { virReportError(VIR_ERR_INVALID_ARG, - _("Invalid peer '%s' in "), peer); + _("Invalid peer '%1$s' in "), peer); return NULL; } =20 @@ -6458,15 +6454,14 @@ virDomainNetDefCoalesceParseXML(xmlNodePtr node, =20 if (virStrToLong_ullp(str, NULL, 10, &tmp) < 0) { virReportError(VIR_ERR_XML_DETAIL, - _("cannot parse value '%s' for coalesce parameter"), + _("cannot parse value '%1$s' for coalesce parameter= "), str); return -1; } =20 if (tmp > UINT32_MAX) { virReportError(VIR_ERR_OVERFLOW, - _("value '%llu' is too big for coalesce " - "parameter, maximum is '%lu'"), + _("value '%1$llu' is too big for coalesce parameter= , maximum is '%2$lu'"), tmp, (unsigned long) UINT32_MAX); return -1; } @@ -6523,7 +6518,7 @@ virDomainHostdevDefParseXMLCaps(xmlNodePtr node G_GNU= C_UNUSED, =20 if ((def->source.caps.type =3D virDomainHostdevCapsTypeFromString(type= )) < 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("unknown host device source address type '%s'"), + _("unknown host device source address type '%1$s'"), type); return -1; } @@ -6564,7 +6559,7 @@ virDomainHostdevDefParseXMLCaps(xmlNodePtr node G_GNU= C_UNUSED, break; default: virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("address type=3D'%s' not supported in hostdev int= erfaces"), + _("address type=3D'%1$s' not supported in hostdev i= nterfaces"), virDomainHostdevCapsTypeToString(def->source.caps.t= ype)); return -1; } @@ -6596,7 +6591,7 @@ virDomainDiskDefAssignAddress(virDomainXMLOption *xml= opt G_GNUC_UNUSED, int idx =3D virDiskNameToIndex(def->dst); if (idx < 0) { virReportError(VIR_ERR_XML_ERROR, - _("Unknown disk name '%s' and no address specified"= ), + _("Unknown disk name '%1$s' and no address specifie= d"), def->dst); return -1; } @@ -6635,9 +6630,7 @@ virDomainDiskDefAssignAddress(virDomainXMLOption *xml= opt G_GNUC_UNUSED, VIR_DOMAIN_HOSTDEV_SUBSYS= _TYPE_SCSI, &addr)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("using disk target name '%s' conflicts with " - "SCSI host device address controller=3D'%u' " - "bus=3D'%u' target=3D'%u' unit=3D'%u"), + _("using disk target name '%1$s' conflicts with= SCSI host device address controller=3D'%2$u' bus=3D'%3$u' target=3D'%4$u' = unit=3D'%5$u"), def->dst, controller, 0, 0, unit); return -1; } @@ -6745,7 +6738,7 @@ virSecurityLabelDefParseXML(xmlXPathContextPtr ctxt, } else { if (seclabel->type !=3D VIR_DOMAIN_SECLABEL_NONE) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("unsupported type=3D'%s' to model 'none'"= ), + _("unsupported type=3D'%1$s' to model 'none= '"), virDomainSeclabelTypeToString(seclabel->typ= e)); return NULL; } @@ -6824,7 +6817,7 @@ virSecurityLabelDefsParseXML(virDomainDef *def, for (j =3D 0; j < i; j++) { if (STREQ_NULLABLE(seclabel->model, def->seclabels[j]->model))= { virReportError(VIR_ERR_XML_DETAIL, - _("seclabel for model %s is already provide= d"), + _("seclabel for model %1$s is already provi= ded"), seclabel->model); virSecurityLabelDefFree(seclabel); goto error; @@ -6926,7 +6919,7 @@ virSecurityDeviceLabelDefParseXML(virSecurityDeviceLa= belDef ***seclabels_rtn, for (j =3D 0; j < i; j++) { if (STREQ_NULLABLE(model, seclabels[j]->model)) { virReportError(VIR_ERR_XML_DETAIL, - _("seclabel for model %s is already pro= vided"), model); + _("seclabel for model %1$s is already p= rovided"), model); goto error; } } @@ -6956,9 +6949,8 @@ virSecurityDeviceLabelDefParseXML(virSecurityDeviceLa= belDef ***seclabels_rtn, =20 if (seclabels[i]->label && !seclabels[i]->relabel) { virReportError(VIR_ERR_XML_ERROR, - _("Cannot specify a label if relabelling is " - "turned off. model=3D%s"), - NULLSTR(seclabels[i]->model)); + _("Cannot specify a label if relabelling is tur= ned off. model=3D%1$s"), + NULLSTR(seclabels[i]->model)); goto error; } } @@ -7060,7 +7052,7 @@ virDomainDiskSourcePoolDefParse(xmlNodePtr node, if (mode && (source->mode =3D virStorageSourcePoolModeTypeFromString(mode)) <= =3D 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("unknown source mode '%s' for volume type disk"), + _("unknown source mode '%1$s' for volume type disk"= ), mode); goto cleanup; } @@ -7091,7 +7083,7 @@ virDomainStorageNetCookieParse(xmlNodePtr node, } =20 if (!(cookie->value =3D virXPathString("string(.)", ctxt))) { - virReportError(VIR_ERR_XML_ERROR, _("missing value for cookie '%s'= "), + virReportError(VIR_ERR_XML_ERROR, _("missing value for cookie '%1$= s'"), cookie->name); return NULL; } @@ -7184,8 +7176,8 @@ virDomainDiskSourceNetworkParse(xmlNodePtr node, if (!(tmp =3D strchr(src->path, '/')) || tmp =3D=3D src->path) { virReportError(VIR_ERR_XML_ERROR, - _("can't split path '%s' into pool name and ima= ge " - "name"), src->path); + _("can't split path '%1$s' into pool name and i= mage name"), + src->path); return -1; } =20 @@ -7268,7 +7260,7 @@ virDomainDiskSourceNVMeParse(xmlNodePtr node, =20 if (STRNEQ(type, "pci")) { virReportError(VIR_ERR_XML_ERROR, - _("unsupported source type '%s'"), + _("unsupported source type '%1$s'"), type); return -1; } @@ -7281,7 +7273,7 @@ virDomainDiskSourceNVMeParse(xmlNodePtr node, =20 if (virStrToLong_ull(namespc, NULL, 10, &nvme->namespc) < 0) { virReportError(VIR_ERR_XML_ERROR, - _("malformed namespace '%s'"), + _("malformed namespace '%1$s'"), namespc); return -1; } @@ -7380,7 +7372,7 @@ virDomainStorageSourceParseBase(const char *type, int tmp; if ((tmp =3D virStorageTypeFromString(type)) <=3D 0) { virReportError(VIR_ERR_XML_ERROR, - _("unknown storage source type '%s'"), type); + _("unknown storage source type '%1$s'"), type); return NULL; } =20 @@ -7390,14 +7382,14 @@ virDomainStorageSourceParseBase(const char *type, if (format && (src->format =3D virStorageFileFormatTypeFromString(format)) <=3D = 0) { virReportError(VIR_ERR_XML_ERROR, - _("unknown storage source format '%s'"), format); + _("unknown storage source format '%1$s'"), format); return NULL; } =20 if (index && virStrToLong_uip(index, NULL, 10, &src->id) < 0) { virReportError(VIR_ERR_XML_ERROR, - _("invalid storage source index '%s'"), index); + _("invalid storage source index '%1$s'"), index); return NULL; } =20 @@ -7425,14 +7417,14 @@ virDomainStorageSourceParseSlice(xmlNodePtr node, =20 if (virStrToLong_ullp(offset, NULL, 10, &ret->offset) < 0) { virReportError(VIR_ERR_XML_ERROR, - _("malformed value '%s' of 'offset' attribute of sl= ice"), + _("malformed value '%1$s' of 'offset' attribute of = slice"), offset); return NULL; } =20 if (virStrToLong_ullp(size, NULL, 10, &ret->size) < 0) { virReportError(VIR_ERR_XML_ERROR, - _("malformed value '%s' of 'size' attribute of slic= e"), + _("malformed value '%1$s' of 'size' attribute of sl= ice"), size); return NULL; } @@ -7510,7 +7502,7 @@ virDomainStorageSourceParse(xmlNodePtr node, case VIR_STORAGE_TYPE_NONE: case VIR_STORAGE_TYPE_LAST: virReportError(VIR_ERR_INTERNAL_ERROR, - _("unexpected disk type %s"), + _("unexpected disk type %1$s"), virStorageTypeToString(src->type)); return -1; } @@ -7614,7 +7606,7 @@ virDomainDiskBackingStoreParse(xmlXPathContextPtr ctx= t, if (virXPathULongLong("string(./iotune/" #val ")", \ ctxt, &def->blkdeviotune.val) =3D=3D -2) { \ virReportError(VIR_ERR_XML_ERROR, \ - _("disk iotune field '%s' must be an integer"), #va= l); \ + _("disk iotune field '%1$s' must be an integer"), #= val); \ return -1; \ } =20 @@ -7673,7 +7665,7 @@ virDomainDiskDefMirrorParse(virDomainDiskDef *def, if ((blockJob =3D virXMLPropString(cur, "job"))) { if ((def->mirrorJob =3D virDomainBlockJobTypeFromString(blockJob))= <=3D 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("unknown mirror job type '%s'"), blockJob); + _("unknown mirror job type '%1$s'"), blockJob); return -1; } } else { @@ -7723,7 +7715,7 @@ virDomainDiskDefMirrorParse(virDomainDiskDef *def, if ((ready =3D virXMLPropString(cur, "ready")) && (def->mirrorState =3D virDomainDiskMirrorStateTypeFromString(ready= )) < 0) { virReportError(VIR_ERR_XML_ERROR, - _("unknown mirror ready state %s"), ready); + _("unknown mirror ready state %1$s"), ready); return -1; } =20 @@ -7783,7 +7775,7 @@ virDomainDiskDefDriverParseXML(virDomainDiskDef *def, =20 if (def->rerror_policy =3D=3D VIR_DOMAIN_DISK_ERROR_POLICY_ENOSPACE) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Invalid disk read error policy: '%s'"), + _("Invalid disk read error policy: '%1$s'"), virDomainDiskErrorPolicyTypeToString(def->rerror_po= licy)); return -1; } @@ -7843,7 +7835,7 @@ virDomainDiskDefDriverSourceParseXML(virStorageSource= *src, } else { if ((src->format =3D virStorageFileFormatTypeFromString(tmp)) = <=3D 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("unknown driver format value '%s'"), tmp); + _("unknown driver format value '%1$s'"), tm= p); return -1; } } @@ -7910,7 +7902,7 @@ virDomainDiskDefParseSourceXML(virDomainXMLOption *xm= lopt, if ((sourceindex =3D virXMLPropString(tmp, "index")) && virStrToLong_uip(sourceindex, NULL, 10, &src->id) < 0) { virReportError(VIR_ERR_XML_ERROR, - _("invalid disk index '%s'"), sourceindex); + _("invalid disk index '%1$s'"), sourceindex= ); return NULL; } } @@ -8352,7 +8344,7 @@ virDomainControllerDefParseXML(virDomainXMLOption *xm= lopt, if ((model =3D virXMLPropString(node, "model"))) { if ((def->model =3D virDomainControllerModelTypeFromString(def, mo= del)) < 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Unknown model type '%s'"), model); + _("Unknown model type '%1$s'"), model); return NULL; } } @@ -8601,7 +8593,7 @@ virDomainFSDefParseXML(virDomainXMLOption *xmlopt, } else if (rv > 0) { if (def->fmode > 0777) { virReportError(VIR_ERR_XML_ERROR, - _("invalid fmode: '0%o'"), def->fmode); + _("invalid fmode: '0%1$o'"), def->fmode); goto error; } } @@ -8613,7 +8605,7 @@ virDomainFSDefParseXML(virDomainXMLOption *xmlopt, } else if (rv > 0) { if (def->dmode > 0777) { virReportError(VIR_ERR_XML_ERROR, - _("invalid dmode: '0%o'"), def->dmode); + _("invalid dmode: '0%1$o'"), def->dmode); goto error; } } @@ -8680,7 +8672,7 @@ virDomainFSDefParseXML(virDomainXMLOption *xmlopt, if ((format =3D virXMLPropString(driver_node, "format")) && ((def->format =3D virStorageFileFormatTypeFromString(format)) = <=3D 0)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("unknown driver format value '%s'"), format); + _("unknown driver format value '%1$s'"), format= ); goto error; } =20 @@ -8699,7 +8691,7 @@ virDomainFSDefParseXML(virDomainXMLOption *xmlopt, =20 if (queue_size && virStrToLong_ull(queue_size, NULL, 10, &def->que= ue_size) < 0) { virReportError(VIR_ERR_XML_ERROR, - _("cannot parse queue size '%s' for virtiofs"), + _("cannot parse queue size '%1$s' for virtiofs"= ), queue_size); goto error; } @@ -8707,7 +8699,7 @@ virDomainFSDefParseXML(virDomainXMLOption *xmlopt, if (thread_pool_size && virStrToLong_i(thread_pool_size, NULL, 10, &def->thread_pool_s= ize) < 0) { virReportError(VIR_ERR_XML_ERROR, - _("cannot parse thread pool size '%s' for virti= ofs"), + _("cannot parse thread pool size '%1$s' for vir= tiofs"), thread_pool_size); goto error; } @@ -8758,7 +8750,7 @@ virDomainFSDefParseXML(virDomainXMLOption *xmlopt, } if (virStrToLong_ull(usage, NULL, 10, &def->usage) < 0) { virReportError(VIR_ERR_XML_ERROR, - _("cannot parse usage '%s' for RAM filesystem"), + _("cannot parse usage '%1$s' for RAM filesystem= "), usage); goto error; } @@ -8812,7 +8804,7 @@ virDomainActualNetDefParseXML(xmlNodePtr node, actual->type !=3D VIR_DOMAIN_NET_TYPE_HOSTDEV && actual->type !=3D VIR_DOMAIN_NET_TYPE_NETWORK) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("unsupported type '%s' in interface's el= ement"), + _("unsupported type '%1$s' in interface's = element"), virDomainNetTypeToString(actual->type)); goto error; } @@ -8837,8 +8829,7 @@ virDomainActualNetDefParseXML(xmlNodePtr node, } } else { virReportError(VIR_ERR_INTERNAL_ERROR, - _(" element unsupported for type= =3D'%s'" - " in interface's element"), + _(" element unsupported for type= =3D'%1$s' in interface's element"), virDomainNetTypeToString(actual->type)); goto error; } @@ -8888,7 +8879,7 @@ virDomainActualNetDefParseXML(xmlNodePtr node, if (class_id && virStrToLong_ui(class_id, NULL, 10, &actual->class_id) < 0) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("Unable to parse class id '%s'"), + _("Unable to parse class id '%1$s'"), class_id); goto error; } @@ -8909,8 +8900,7 @@ virDomainActualNetDefParseXML(xmlNodePtr node, (actual->data.bridge.macTableManager =3D virNetworkBridgeMACTableManagerTypeFromString(macTabl= eManager)) <=3D 0) { virReportError(VIR_ERR_XML_ERROR, - _("Invalid macTableManager setting '%s' " - "in domain interface's element"), + _("Invalid macTableManager setting '%1$s' i= n domain interface's element"), macTableManager); goto error; } @@ -8983,7 +8973,7 @@ virDomainNetTeamingInfoParseXML(xmlXPathContextPtr ct= xt, =20 if ((tmpType =3D virDomainNetTeamingTypeFromString(typeStr)) <=3D 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("unknown teaming type '%s'"), + _("unknown teaming type '%1$s'"), typeStr); return -1; } @@ -9222,7 +9212,7 @@ virDomainNetPortForwardDefParseXML(xmlNodePtr node, address =3D virXMLPropString(node, "address"); if (address && virSocketAddrParse(&def->address, address, AF_UNSPEC) <= 0) { virReportError(VIR_ERR_XML_ERROR, - _("Invalid address '%s' in "), address= ); + _("Invalid address '%1$s' in "), addre= ss); return NULL; } =20 @@ -9268,7 +9258,7 @@ virDomainNetDefParseXMLRequireSource(virDomainNetDef = *def, { if (!source_node) { virReportError(VIR_ERR_XML_ERROR, - _("interface type=3D'%s' requires a 'source' elemen= t"), + _("interface type=3D'%1$s' requires a 'source' elem= ent"), virDomainNetTypeToString(def->type)); return -1; } @@ -9453,7 +9443,7 @@ virDomainNetDefParseXML(virDomainXMLOption *xmlopt, =20 if (STRNEQ_NULLABLE(vhostuser_type, "unix")) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Type=3D'%s' unsupported for "), + _("Type=3D'%1$s' unsupported for "), vhostuser_type); return NULL; } @@ -9576,7 +9566,7 @@ virDomainNetDefParseXML(virDomainXMLOption *xmlopt, if ((virtualport_node =3D virXPathNode("./virtualport", ctxt))) { if (virtualport_flags =3D=3D 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _(" element unsupported for "), + _(" element unsupported for "), virDomainNetTypeToString(def->type)); return NULL; } @@ -9624,13 +9614,13 @@ virDomainNetDefParseXML(virDomainXMLOption *xmlopt, if ((macaddr =3D virXMLPropString(mac_node, "address"))) { if (virMacAddrParse((const char *)macaddr, &def->mac) < 0) { virReportError(VIR_ERR_XML_ERROR, - _("unable to parse mac address '%s'"), + _("unable to parse mac address '%1$s'"), (const char *)macaddr); return NULL; } if (virMacAddrIsMulticast(&def->mac)) { virReportError(VIR_ERR_XML_ERROR, - _("expected unicast mac address, found mult= icast '%s'"), + _("expected unicast mac address, found mult= icast '%1$s'"), (const char *)macaddr); return NULL; } @@ -9686,7 +9676,7 @@ virDomainNetDefParseXML(virDomainXMLOption *xmlopt, if (linkstate !=3D NULL) { if ((def->linkstate =3D virDomainNetInterfaceLinkStateTypeFromStri= ng(linkstate)) <=3D 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("unknown interface link state '%s'"), + _("unknown interface link state '%1$s'"), linkstate); return NULL; } @@ -9731,7 +9721,7 @@ virDomainChrDefaultTargetType(int devtype) switch ((virDomainChrDeviceType) devtype) { case VIR_DOMAIN_CHR_DEVICE_TYPE_CHANNEL: virReportError(VIR_ERR_XML_ERROR, - _("target type must be specified for %s device"), + _("target type must be specified for %1$s device"), virDomainChrDeviceTypeToString(devtype)); return -1; =20 @@ -9827,7 +9817,7 @@ virDomainChrDefParseTargetXML(virDomainChrDef *def, virDomainChrTargetTypeFromString(def->deviceType, targetType)) < 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("unknown target type '%s' specified for character= device"), + _("unknown target type '%1$s' specified for charact= er device"), targetType); return -1; } @@ -9838,7 +9828,7 @@ virDomainChrDefParseTargetXML(virDomainChrDef *def, virDomainChrTargetModelFromString(def->deviceType, targetModel)) < 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("unknown target model '%s' specified for characte= r device"), + _("unknown target model '%1$s' specified for charac= ter device"), targetModel); return -1; } @@ -9900,7 +9890,7 @@ virDomainChrDefParseTargetXML(virDomainChrDef *def, =20 if (virStrToLong_ui(portStr, NULL, 10, &port) < 0) { virReportError(VIR_ERR_XML_ERROR, - _("Invalid port number: %s"), + _("Invalid port number: %1$s"), portStr); return -1; } @@ -10029,7 +10019,7 @@ virDomainChrSourceDefParseProtocol(virDomainChrSour= ceDef *def, (def->data.tcp.protocol =3D virDomainChrTcpProtocolTypeFromString(prot)) < 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Unknown protocol '%s'"), prot); + _("Unknown protocol '%1$s'"), prot); return -1; } =20 @@ -10341,7 +10331,7 @@ virDomainChrDefParseXML(virDomainXMLOption *xmlopt, def->source->type =3D VIR_DOMAIN_CHR_TYPE_PTY; } else if ((def->source->type =3D virDomainChrTypeFromString(type)) < = 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("unknown type presented to host for character dev= ice: %s"), + _("unknown type presented to host for character dev= ice: %1$s"), type); goto error; } @@ -10349,7 +10339,7 @@ virDomainChrDefParseXML(virDomainXMLOption *xmlopt, nodeName =3D (const char *) node->name; if ((def->deviceType =3D virDomainChrDeviceTypeFromString(nodeName)) <= 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("unknown character device type: %s"), + _("unknown character device type: %1$s"), nodeName); goto error; } @@ -10440,7 +10430,7 @@ virDomainSmartcardDefParseXML(virDomainXMLOption *x= mlopt, =20 if (*def->data.cert.database !=3D '/') { virReportError(VIR_ERR_XML_ERROR, - _("expecting absolute path: %s"), + _("expecting absolute path: %1$s"), def->data.cert.database); return NULL; } @@ -10461,8 +10451,8 @@ virDomainSmartcardDefParseXML(virDomainXMLOption *x= mlopt, =20 if ((def->data.passthru->type =3D virDomainChrTypeFromString(type)= ) < 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("unknown type presented to host for " - "character device: %s"), type); + _("unknown type presented to host for character= device: %1$s"), + type); return NULL; } =20 @@ -10597,7 +10587,7 @@ virDomainTPMDefParseXML(virDomainXMLOption *xmlopt, if (secretuuid) { if (virUUIDParse(secretuuid, def->data.emulator.secretuuid) < = 0) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("Unable to parse secret uuid '%s'"), secr= etuuid); + _("Unable to parse secret uuid '%1$s'"), se= cretuuid); goto error; } def->data.emulator.hassecretuuid =3D true; @@ -10620,7 +10610,7 @@ virDomainTPMDefParseXML(virDomainXMLOption *xmlopt, for (i =3D 0; i < nnodes; i++) { if ((bank =3D virDomainTPMPcrBankTypeFromString((const char *)= nodes[i]->name)) < 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Unsupported PCR banks '%s'"), + _("Unsupported PCR banks '%1$s'"), nodes[i]->name); goto error; } @@ -10640,7 +10630,7 @@ virDomainTPMDefParseXML(virDomainXMLOption *xmlopt, def->data.external.source->type =3D virDomainChrTypeFromString(typ= e); if (def->data.external.source->type < 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("unknown backend source type '%s' for externa= l TPM"), + _("unknown backend source type '%1$s' for exter= nal TPM"), type); goto error; } @@ -10690,7 +10680,7 @@ virDomainPanicDefParseXML(virDomainXMLOption *xmlop= t, if (model !=3D NULL && (panic->model =3D virDomainPanicModelTypeFromString(model)) < 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("unknown panic model '%s'"), model); + _("unknown panic model '%1$s'"), model); goto error; } =20 @@ -10732,7 +10722,7 @@ virDomainInputDefParseXML(virDomainXMLOption *xmlop= t, =20 if ((def->type =3D virDomainInputTypeFromString(type)) < 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("unknown input device type '%s'"), type); + _("unknown input device type '%1$s'"), type); goto error; } =20 @@ -10740,14 +10730,14 @@ virDomainInputDefParseXML(virDomainXMLOption *xml= opt, ((def->model =3D virDomainInputModelTypeFromString(model)) < 0 || def->model =3D=3D VIR_DOMAIN_INPUT_MODEL_DEFAULT)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("unknown input model '%s'"), model); + _("unknown input model '%1$s'"), model); goto error; } =20 if (bus) { if ((def->bus =3D virDomainInputBusTypeFromString(bus)) < 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("unknown input bus type '%s'"), bus); + _("unknown input bus type '%1$s'"), bus); goto error; } =20 @@ -10857,7 +10847,7 @@ virDomainHubDefParseXML(virDomainXMLOption *xmlopt, =20 if ((def->type =3D virDomainHubTypeFromString(type)) < 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("unknown hub device type '%s'"), type); + _("unknown hub device type '%1$s'"), type); goto error; } =20 @@ -10960,7 +10950,7 @@ virDomainGraphicsAuthDefParseXML(xmlNodePtr node, /* second */ virStrToLong_i(tmp+1, &tmp, 10, &sec) < 0 || *tmp !=3D '\0') { virReportError(VIR_ERR_INTERNAL_ERROR, - _("cannot parse password validity time '%s', ex= pect YYYY-MM-DDTHH:MM:SS"), + _("cannot parse password validity time '%1$s', = expect YYYY-MM-DDTHH:MM:SS"), validTo); VIR_FREE(def->passwd); return -1; @@ -10975,7 +10965,7 @@ virDomainGraphicsAuthDefParseXML(xmlNodePtr node, int action =3D virDomainGraphicsAuthConnectedTypeFromString(connec= ted); if (action <=3D 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("unknown connected value %s"), + _("unknown connected value %1$s"), connected); return -1; } @@ -11038,8 +11028,8 @@ virDomainGraphicsListenDefParseXML(virDomainGraphic= sListenDef *def, if (graphics->type !=3D VIR_DOMAIN_GRAPHICS_TYPE_VNC && graphics->type !=3D VIR_DOMAIN_GRAPHICS_TYPE_SPICE) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("listen type 'socket' is not available for " - "graphics type '%s'"), graphicsType); + _("listen type 'socket' is not available for gr= aphics type '%1$s'"), + graphicsType); goto error; } break; @@ -11047,8 +11037,8 @@ virDomainGraphicsListenDefParseXML(virDomainGraphic= sListenDef *def, if (graphics->type !=3D VIR_DOMAIN_GRAPHICS_TYPE_SPICE && graphics->type !=3D VIR_DOMAIN_GRAPHICS_TYPE_VNC) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("listen type 'none' is not available for " - "graphics type '%s'"), graphicsType); + _("listen type 'none' is not available for grap= hics type '%1$s'"), + graphicsType); goto error; } break; @@ -11061,9 +11051,8 @@ virDomainGraphicsListenDefParseXML(virDomainGraphic= sListenDef *def, if (def->type =3D=3D VIR_DOMAIN_GRAPHICS_LISTEN_TYPE_ADDRESS) { if (address && addressCompat && STRNEQ(address, addressCompat)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("graphics 'listen' attribute '%s' must match " - "'address' attribute of first listen element " - "(found '%s')"), addressCompat, address); + _("graphics 'listen' attribute '%1$s' must matc= h 'address' attribute of first listen element (found '%2$s')"), + addressCompat, address); goto error; } =20 @@ -11074,9 +11063,8 @@ virDomainGraphicsListenDefParseXML(virDomainGraphic= sListenDef *def, if (def->type =3D=3D VIR_DOMAIN_GRAPHICS_LISTEN_TYPE_SOCKET) { if (socketPath && socketCompat && STRNEQ(socketPath, socketCompat)= ) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("graphics 'socket' attribute '%s' must match " - "'socket' attribute of first listen element " - "(found '%s')"), socketCompat, socketPath); + _("graphics 'socket' attribute '%1$s' must matc= h 'socket' attribute of first listen element (found '%2$s')"), + socketCompat, socketPath); goto error; } =20 @@ -11122,7 +11110,7 @@ virDomainGraphicsListenDefParseXML(virDomainGraphic= sListenDef *def, flags & VIR_DOMAIN_DEF_PARSE_STATUS) { if (virStringParseYesNo(autoGenerated, &def->autoGenerated) < 0) { virReportError(VIR_ERR_XML_ERROR, - _("Invalid autoGenerated value: %s"), + _("Invalid autoGenerated value: %1$s"), autoGenerated); goto error; } @@ -11233,7 +11221,7 @@ virDomainGraphicsDefParseXMLVNC(virDomainGraphicsDe= f *def, if (port) { if (virStrToLong_i(port, NULL, 10, &def->data.vnc.port) < 0) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("cannot parse vnc port %s"), port); + _("cannot parse vnc port %1$s"), port); return -1; } /* Legacy compat syntax, used -1 for auto-port */ @@ -11336,7 +11324,7 @@ virDomainGraphicsDefParseXMLRDP(virDomainGraphicsDe= f *def, if (port) { if (virStrToLong_i(port, NULL, 10, &def->data.rdp.port) < 0) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("cannot parse rdp port %s"), port); + _("cannot parse rdp port %1$s"), port); return -1; } /* Legacy compat syntax, used -1 for auto-port */ @@ -11700,7 +11688,7 @@ virDomainSoundCodecDefParseXML(xmlNodePtr node) type =3D virXMLPropString(node, "type"); if ((def->type =3D virDomainSoundCodecTypeFromString(type)) < 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("unknown codec type '%s'"), type); + _("unknown codec type '%1$s'"), type); goto error; } =20 @@ -12036,7 +12024,7 @@ virDomainAudioDefParseXML(virDomainXMLOption *xmlop= t G_GNUC_UNUSED, if (dspPolicySet !=3D 0) { if (def->backend.oss.dspPolicy < 0) { virReportError(VIR_ERR_XML_ERROR, - _("cannot parse 'dspPolicy' value '%i'"), + _("cannot parse 'dspPolicy' value '%1$i'"), def->backend.oss.dspPolicy); goto error; } @@ -12120,7 +12108,7 @@ virDomainWatchdogDefParseXML(virDomainXMLOption *xm= lopt, def->model =3D virDomainWatchdogModelTypeFromString(model); if (def->model < 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("unknown watchdog model '%s'"), model); + _("unknown watchdog model '%1$s'"), model); goto error; } =20 @@ -12131,7 +12119,7 @@ virDomainWatchdogDefParseXML(virDomainXMLOption *xm= lopt, def->action =3D virDomainWatchdogActionTypeFromString(action); if (def->action < 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("unknown watchdog action '%s'"), action); + _("unknown watchdog action '%1$s'"), action); goto error; } } @@ -12169,7 +12157,7 @@ virDomainRNGDefParseXML(virDomainXMLOption *xmlopt, } =20 if ((def->model =3D virDomainRNGModelTypeFromString(model)) < 0) { - virReportError(VIR_ERR_CONFIG_UNSUPPORTED, _("unknown RNG model '%= s'"), model); + virReportError(VIR_ERR_CONFIG_UNSUPPORTED, _("unknown RNG model '%= 1$s'"), model); goto error; } =20 @@ -12205,7 +12193,7 @@ virDomainRNGDefParseXML(virDomainXMLOption *xmlopt, =20 if ((def->backend =3D virDomainRNGBackendTypeFromString(backend)) < 0)= { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("unknown RNG backend model '%s'"), backend); + _("unknown RNG backend model '%1$s'"), backend); goto error; } =20 @@ -12227,7 +12215,7 @@ virDomainRNGDefParseXML(virDomainXMLOption *xmlopt, def->source.chardev->type =3D virDomainChrTypeFromString(type); if (def->source.chardev->type < 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("unknown backend type '%s' for egd"), + _("unknown backend type '%1$s' for egd"), type); goto error; } @@ -12977,7 +12965,7 @@ virDomainHostdevDefParseXML(virDomainXMLOption *xml= opt, if (mode) { if ((def->mode =3D virDomainHostdevModeTypeFromString(mode)) < 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("unknown hostdev mode '%s'"), mode); + _("unknown hostdev mode '%1$s'"), mode); goto error; } } else { @@ -12997,7 +12985,7 @@ virDomainHostdevDefParseXML(virDomainXMLOption *xml= opt, break; default: virReportError(VIR_ERR_INTERNAL_ERROR, - _("Unexpected hostdev mode %d"), def->mode); + _("Unexpected hostdev mode %1$d"), def->mode); goto error; } =20 @@ -13055,7 +13043,7 @@ virDomainRedirdevDefParseXML(virDomainXMLOption *xm= lopt, if (bus) { if ((def->bus =3D virDomainRedirdevBusTypeFromString(bus)) < 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("unknown redirdev bus '%s'"), bus); + _("unknown redirdev bus '%1$s'"), bus); goto error; } } else { @@ -13066,7 +13054,7 @@ virDomainRedirdevDefParseXML(virDomainXMLOption *xm= lopt, if (type) { if ((def->source->type =3D virDomainChrTypeFromString(type)) < 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("unknown redirdev character device type '%s'"= ), type); + _("unknown redirdev character device type '%1$s= '"), type); goto error; } } else { @@ -13139,7 +13127,7 @@ virDomainRedirFilterUSBVersionHelper(const char *ve= rsion, =20 error: virReportError(VIR_ERR_XML_ERROR, - _("Cannot parse USB device version %s"), version); + _("Cannot parse USB device version %1$s"), version); return -1; } =20 @@ -13157,7 +13145,7 @@ virDomainRedirFilterUSBDevDefParseXML(xmlNodePtr no= de) =20 if (def->usbClass !=3D -1 && def->usbClass &~ 0xFF) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("Invalid USB Class code 0x%x"), def->usbClass); + _("Invalid USB Class code 0x%1$x"), def->usbClass); return NULL; } =20 @@ -13236,7 +13224,7 @@ virDomainEventActionParseXML(xmlXPathContextPtr ctx= t, *val =3D convFunc(tmp); if (*val < 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("unknown %s action: %s"), name, tmp); + _("unknown %1$s action: %2$s"), name, tmp); return -1; } } @@ -13272,7 +13260,7 @@ virDomainPerfEventDefParseXML(virDomainPerfDef *per= f, =20 if (perf->events[name] !=3D VIR_TRISTATE_BOOL_ABSENT) { virReportError(VIR_ERR_XML_ERROR, - _("perf event '%s' was already specified"), + _("perf event '%1$s' was already specified"), virPerfEventTypeToString(name)); return -1; } @@ -13325,7 +13313,7 @@ virDomainMemorySourceDefParseXML(xmlNodePtr node, =20 if (virBitmapIsAllClear(def->sourceNodes)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Invalid value of 'nodemask': %s"), nodem= ask); + _("Invalid value of 'nodemask': %1$s"), nod= emask); return -1; } } @@ -13355,7 +13343,7 @@ virDomainMemorySourceDefParseXML(xmlNodePtr node, =20 if (virBitmapIsAllClear(def->sourceNodes)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Invalid value of 'nodemask': %s"), nodem= ask); + _("Invalid value of 'nodemask': %1$s"), nod= emask); return -1; } } @@ -13506,7 +13494,7 @@ virDomainSecDefParseXML(xmlNodePtr lsecNode, case VIR_DOMAIN_LAUNCH_SECURITY_LAST: default: virReportError(VIR_ERR_XML_ERROR, - _("unsupported launch security type '%s'"), + _("unsupported launch security type '%1$s'"), virDomainLaunchSecurityTypeToString(sec->sectype)); return NULL; } @@ -13757,7 +13745,7 @@ virDomainDeviceDefParseType(const char *typestr, =20 if ((tmp =3D virDomainDeviceTypeFromString(typestr)) < 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("unknown device type '%s'"), typestr); + _("unknown device type '%1$s'"), typestr); return -1; } =20 @@ -14494,7 +14482,7 @@ virDomainNetFindIdx(virDomainDef *def, virDomainNet= Def *net) */ if (MACAddrSpecified) { virReportError(VIR_ERR_OPERATION_FAILED, - _("multiple devices matching MAC address %s= found"), + _("multiple devices matching MAC address %1= $s found"), macAddr); } else { virReportError(VIR_ERR_OPERATION_FAILED, "%s", @@ -14521,8 +14509,7 @@ virDomainNetFindIdx(virDomainDef *def, virDomainNet= Def *net) addr =3D g_strdup(_("()")); =20 virReportError(VIR_ERR_DEVICE_MISSING, - _("no device found at address '%s' matching MAC address" - " '%s' and alias '%s'"), + _("no device found at address '%1$s' matching MAC addre= ss '%2$s' and alias '%3$s'"), addr, macAddr, alias); return -1; } @@ -14865,7 +14852,7 @@ virDomainControllerAliasFind(const virDomainDef *de= f, =20 if (!contTypeStr) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("Unknown controller type %d"), + _("Unknown controller type %1$d"), type); return NULL; } @@ -14873,15 +14860,13 @@ virDomainControllerAliasFind(const virDomainDef *= def, contIndex =3D virDomainControllerFind(def, type, idx); if (contIndex < 0) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("Could not find %s controller with index %d " - "required for device"), + _("Could not find %1$s controller with index %2$d r= equired for device"), contTypeStr, idx); return NULL; } if (!def->controllers[contIndex]->info.alias) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("Device alias was not set for %s controller " - "with index %d "), + _("Device alias was not set for %1$s controller wit= h index %2$d"), contTypeStr, idx); return NULL; } @@ -15114,7 +15099,7 @@ virDomainChrGetDomainPtrsInternal(virDomainDef *vmd= ef, } =20 virReportError(VIR_ERR_INTERNAL_ERROR, - _("Unknown char device type: %d"), type); + _("Unknown char device type: %1$d"), type); return -1; } =20 @@ -15851,7 +15836,7 @@ virDomainDefParseIOThreads(virDomainDef *def, tmp =3D virXPathString("string(./iothreads[1])", ctxt); if (tmp && virStrToLong_uip(tmp, NULL, 10, &iothreads) < 0) { virReportError(VIR_ERR_XML_ERROR, - _("invalid iothreads count '%s'"), tmp); + _("invalid iothreads count '%1$s'"), tmp); return -1; } =20 @@ -15876,7 +15861,7 @@ virDomainDefParseIOThreads(virDomainDef *def, =20 if (virDomainIOThreadIDFind(def, iothrid->iothread_id)) { virReportError(VIR_ERR_XML_ERROR, - _("duplicate iothread id '%u' found"), + _("duplicate iothread id '%1$u' found"), iothrid->iothread_id); return -1; } @@ -15916,7 +15901,7 @@ virDomainVcpuPinDefParseXML(virDomainDef *def, =20 if (vcpu->cpumask) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("duplicate vcpupin for vcpu '%d'"), vcpuid); + _("duplicate vcpupin for vcpu '%1$d'"), vcpuid); return -1; } =20 @@ -15925,7 +15910,7 @@ virDomainVcpuPinDefParseXML(virDomainDef *def, =20 if (virBitmapIsAllClear(vcpu->cpumask)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Invalid value of 'cpuset': %s"), tmp); + _("Invalid value of 'cpuset': %1$s"), tmp); return -1; } =20 @@ -15953,7 +15938,7 @@ virDomainIOThreadPinDefParseXML(xmlNodePtr node, =20 if (!(iothrid =3D virDomainIOThreadIDFind(def, iothreadid))) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Cannot find 'iothread' : %u"), + _("Cannot find 'iothread' : %1$u"), iothreadid); return -1; } @@ -15969,14 +15954,14 @@ virDomainIOThreadPinDefParseXML(xmlNodePtr node, =20 if (virBitmapIsAllClear(cpumask)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Invalid value of 'cpuset': %s"), + _("Invalid value of 'cpuset': %1$s"), tmp); return -1; } =20 if (iothrid->cpumask) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("duplicate iothreadpin for same iothread '%u'"), + _("duplicate iothreadpin for same iothread '%1$u'"), iothreadid); return -1; } @@ -16007,7 +15992,7 @@ virDomainEmulatorPinDefParseXML(xmlNodePtr node) =20 if (virBitmapIsAllClear(def)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Invalid value of 'cpuset': %s"), tmp); + _("Invalid value of 'cpuset': %1$s"), tmp); return NULL; } =20 @@ -16159,7 +16144,7 @@ virDomainHugepagesParseXML(xmlNodePtr node, =20 if (virBitmapIsAllClear(hugepage->nodemask)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Invalid value of 'nodeset': %s"), nodeset); + _("Invalid value of 'nodeset': %1$s"), nodeset); return -1; } } @@ -16215,7 +16200,7 @@ virDomainFeaturesHyperVDefParse(virDomainDef *def, feature =3D virDomainHypervTypeFromString((const char *)node->name= ); if (feature < 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("unsupported HyperV Enlightenment feature: %s= "), + _("unsupported HyperV Enlightenment feature: %1= $s"), node->name); return -1; } @@ -16249,7 +16234,7 @@ virDomainFeaturesHyperVDefParse(virDomainDef *def, while (child) { if (STRNEQ((const char *)child->name, "direct")) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("unsupported Hyper-V stimer feature: = %s"), + _("unsupported Hyper-V stimer feature: = %1$s"), child->name); return -1; } @@ -16289,7 +16274,7 @@ virDomainFeaturesHyperVDefParse(virDomainDef *def, =20 if (!STRLIM(def->hyperv_vendor_id, VIR_DOMAIN_HYPERV_VENDOR_ID= _MAX)) { virReportError(VIR_ERR_XML_ERROR, - _("HyperV vendor_id value must not be more = than %d characters."), + _("HyperV vendor_id value must not be more = than %1$d characters."), VIR_DOMAIN_HYPERV_VENDOR_ID_MAX); return -1; } @@ -16329,7 +16314,7 @@ virDomainFeaturesKVMDefParse(virDomainDef *def, feature =3D virDomainKVMTypeFromString((const char *)node->name); if (feature < 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("unsupported KVM feature: %s"), + _("unsupported KVM feature: %1$s"), node->name); return -1; } @@ -16383,7 +16368,7 @@ virDomainFeaturesXENDefParse(virDomainDef *def, feature =3D virDomainXenTypeFromString((const char *)node->name); if (feature < 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("unsupported Xen feature: %s"), + _("unsupported Xen feature: %1$s"), node->name); return -1; } @@ -16440,7 +16425,7 @@ virDomainFeaturesCapabilitiesDefParse(virDomainDef = *def, int val =3D virDomainProcessCapsFeatureTypeFromString((const char = *)node->name); if (val < 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("unexpected capability feature '%s'"), node->= name); + _("unexpected capability feature '%1$s'"), node= ->name); return -1; } =20 @@ -16498,7 +16483,7 @@ virDomainFeaturesDefParse(virDomainDef *def, int val =3D virDomainFeatureTypeFromString((const char *)nodes[i]-= >name); if (val < 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("unexpected feature '%s'"), nodes[i]->name); + _("unexpected feature '%1$s'"), nodes[i]->name); return -1; } =20 @@ -16772,7 +16757,7 @@ virDomainLoaderDefParseXMLNvram(virDomainLoaderDef = *loader, if (format !=3D VIR_STORAGE_FILE_RAW && format !=3D VIR_STORAGE_FILE_QCOW2) { virReportError(VIR_ERR_XML_ERROR, - _("Unsupported nvram format '%s'"), + _("Unsupported nvram format '%1$s'"), virStorageFileFormatTypeToString(format)); return -1; } @@ -16861,7 +16846,7 @@ virDomainLoaderDefParseXMLLoader(virDomainLoaderDef= *loader, if (format !=3D VIR_STORAGE_FILE_RAW && format !=3D VIR_STORAGE_FILE_QCOW2) { virReportError(VIR_ERR_XML_ERROR, - _("Unsupported loader format '%s'"), + _("Unsupported loader format '%1$s'"), virStorageFileFormatTypeToString(format)); return -1; } @@ -16891,7 +16876,7 @@ virDomainLoaderDefParseXML(virDomainLoaderDef *load= er, =20 if (loader->nvram && loader->format !=3D loader->nvram->format) { virReportError(VIR_ERR_XML_ERROR, - _("Format mismatch: loader.format=3D'%s' nvram.form= at=3D'%s'"), + _("Format mismatch: loader.format=3D'%1$s' nvram.fo= rmat=3D'%2$s'"), virStorageFileFormatTypeToString(loader->format), virStorageFileFormatTypeToString(loader->nvram->for= mat)); return -1; @@ -16951,7 +16936,7 @@ virDomainSchedulerParse(xmlNodePtr node, =20 if (!(tmp =3D virXMLPropString(node, attributeName))) { virReportError(VIR_ERR_XML_ERROR, - _("Missing attribute '%s' in element '%s'"), + _("Missing attribute '%1$s' in element '%2$s'"), attributeName, elementName); return NULL; } @@ -16961,7 +16946,7 @@ virDomainSchedulerParse(xmlNodePtr node, =20 if (virBitmapIsAllClear(ret)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("'%s' scheduler bitmap '%s' is empty"), + _("'%1$s' scheduler bitmap '%2$s' is empty"), attributeName, tmp); return NULL; } @@ -16996,7 +16981,7 @@ virDomainThreadSchedParseHelper(xmlNodePtr node, =20 if (sched->policy !=3D VIR_PROC_POLICY_NONE) { virReportError(VIR_ERR_XML_DETAIL, - _("'%s' attributes '%s' must not overlap"), + _("'%1$s' attributes '%2$s' must not overlap"), elementName, attributeName); return -1; } @@ -17029,7 +17014,7 @@ virDomainDefGetIOThreadSched(virDomainDef *def, =20 if (!(iothrinfo =3D virDomainIOThreadIDFind(def, iothread))) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Cannot find 'iothread' : %u"), + _("Cannot find 'iothread' : %1$u"), iothread); return NULL; } @@ -17093,7 +17078,7 @@ virDomainVcpuParse(virDomainDef *def, =20 if (virBitmapIsAllClear(def->cpumask)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Invalid value of 'cpuset': %s"), tmp= ); + _("Invalid value of 'cpuset': %1$s"), t= mp); return -1; } =20 @@ -17122,8 +17107,8 @@ virDomainVcpuParse(virDomainDef *def, =20 if (id >=3D def->maxvcpus) { virReportError(VIR_ERR_XML_ERROR, - _("vcpu id '%u' is out of range of maximum " - "vcpu count"), id); + _("vcpu id '%1$u' is out of range of maximu= m vcpu count"), + id); return -1; } =20 @@ -17198,7 +17183,7 @@ virDomainDefParseBootInitOptions(virDomainDef *def, if (!nodes[i]->children || !nodes[i]->children->content) { virReportError(VIR_ERR_XML_ERROR, - _("No value supplied for = element"), + _("No value supplied for element"), name); return -1; } @@ -17269,7 +17254,7 @@ virDomainDefParseBootFirmwareOptions(virDomainDef *= def, =20 if (fw <=3D 0) { virReportError(VIR_ERR_XML_ERROR, - _("unknown firmware value %s"), + _("unknown firmware value %1$s"), firmware); return -1; } @@ -17338,7 +17323,7 @@ virDomainDefParseBootAcpiOptions(virDomainDef *def, def->os.slic_table =3D virFileSanitizePath(tmp); } else { virReportError(VIR_ERR_XML_ERROR, - _("Unknown acpi table type: %s"), + _("Unknown acpi table type: %1$s"), tmp); return -1; } @@ -17415,13 +17400,13 @@ virDomainResctrlParseVcpus(virDomainDef *def, =20 vcpus_str =3D virXMLPropString(node, "vcpus"); if (!vcpus_str) { - virReportError(VIR_ERR_XML_ERROR, _("Missing %s attribute 'vcpus'"= ), + virReportError(VIR_ERR_XML_ERROR, _("Missing %1$s attribute 'vcpus= '"), node->name); return -1; } if (virBitmapParse(vcpus_str, vcpus, VIR_DOMAIN_CPUMASK_LEN) < 0) { virReportError(VIR_ERR_XML_ERROR, - _("Invalid %s attribute 'vcpus' value '%s'"), + _("Invalid %1$s attribute 'vcpus' value '%2$s'"), node->name, vcpus_str); return -1; } @@ -17612,7 +17597,7 @@ virDomainResctrlMonDefParse(virDomainDef *def, =20 if (level !=3D VIR_DOMAIN_RESCTRL_MONITOR_CACHELEVEL) { virReportError(VIR_ERR_XML_ERROR, - _("Invalid monitor cache level '%d'"), + _("Invalid monitor cache level '%1$d'"), level); goto cleanup; } @@ -17867,7 +17852,7 @@ virDomainDefParseCaps(virDomainDef *def, } if ((def->virtType =3D virDomainVirtTypeFromString(virttype)) < 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("invalid domain type %s"), virttype); + _("invalid domain type %1$s"), virttype); return -1; } =20 @@ -17882,7 +17867,7 @@ virDomainDefParseCaps(virDomainDef *def, } else { if ((def->os.type =3D virDomainOSTypeFromString(ostype)) < 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("unknown OS type '%s'"), ostype); + _("unknown OS type '%1$s'"), ostype); return -1; } } @@ -17899,7 +17884,7 @@ virDomainDefParseCaps(virDomainDef *def, =20 if (arch && !(def->os.arch =3D virArchFromString(arch))) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Unknown architecture %s"), arch); + _("Unknown architecture %1$s"), arch); return -1; } =20 @@ -17954,7 +17939,7 @@ virDomainDefParseMemory(virDomainDef *def, if (tmp) { if ((def->mem.source =3D virDomainMemorySourceTypeFromString(tmp))= <=3D 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("unknown memoryBacking/source/type '%s'"), tm= p); + _("unknown memoryBacking/source/type '%1$s'"), = tmp); return -1; } VIR_FREE(tmp); @@ -17964,7 +17949,7 @@ virDomainDefParseMemory(virDomainDef *def, if (tmp) { if ((def->mem.access =3D virDomainMemoryAccessTypeFromString(tmp))= <=3D 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("unknown memoryBacking/access/mode '%s'"), tm= p); + _("unknown memoryBacking/access/mode '%1$s'"), = tmp); return -1; } VIR_FREE(tmp); @@ -17974,7 +17959,7 @@ virDomainDefParseMemory(virDomainDef *def, if (tmp) { if ((def->mem.allocation =3D virDomainMemoryAllocationTypeFromStri= ng(tmp)) <=3D 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("unknown memoryBacking/allocation/mode '%s'")= , tmp); + _("unknown memoryBacking/allocation/mode '%1$s'= "), tmp); return -1; } VIR_FREE(tmp); @@ -18422,7 +18407,7 @@ virDomainDefClockParse(virDomainDef *def, if ((tmp =3D virXPathString("string(./clock/@offset)", ctxt)) && (def->clock.offset =3D virDomainClockOffsetTypeFromString(tmp)) < = 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("unknown clock offset '%s'"), tmp); + _("unknown clock offset '%1$s'"), tmp); return -1; } VIR_FREE(tmp); @@ -18438,7 +18423,7 @@ virDomainDefClockParse(virDomainDef *def, if (virStrToLong_ll(tmp, NULL, 10, &def->clock.data.variable.adjustment) = < 0) { virReportError(VIR_ERR_XML_ERROR, - _("unknown clock adjustment '%s'"), + _("unknown clock adjustment '%1$s'"), tmp); return -1; } @@ -18469,7 +18454,7 @@ virDomainDefClockParse(virDomainDef *def, if (tmp) { if ((def->clock.data.variable.basis =3D virDomainClockBasisTyp= eFromString(tmp)) < 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("unknown clock basis '%s'"), tmp); + _("unknown clock basis '%1$s'"), tmp); return -1; } VIR_FREE(tmp); @@ -19317,7 +19302,7 @@ virDomainDefParseXML(xmlXPathContextPtr ctxt, =20 if ((mode =3D virDomainSmbiosModeTypeFromString(tmp)) < 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("unknown smbios mode '%s'"), tmp); + _("unknown smbios mode '%1$s'"), tmp); return NULL; } def->os.smbios_mode =3D mode; @@ -19387,7 +19372,7 @@ virDomainObjParseXML(xmlXPathContextPtr ctxt, if ((tmp =3D virXMLPropString(ctxt->node, "reason"))) { if ((reason =3D virDomainStateReasonFromString(state, tmp)) < 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("invalid domain state reason '%s'"), tmp); + _("invalid domain state reason '%1$s'"), tmp); return NULL; } } @@ -19531,7 +19516,7 @@ virDomainTimerDefCheckABIStability(virDomainTimerDe= f *src, { if (src->name !=3D dst->name) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target timer %s does not match source %s"), + _("Target timer %1$s does not match source %2$s"), virDomainTimerNameTypeToString(dst->name), virDomainTimerNameTypeToString(src->name)); return false; @@ -19539,7 +19524,7 @@ virDomainTimerDefCheckABIStability(virDomainTimerDe= f *src, =20 if (src->present !=3D dst->present) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target timer presence '%s' does not match source= '%s'"), + _("Target timer presence '%1$s' does not match sour= ce '%2$s'"), virTristateBoolTypeToString(dst->present), virTristateBoolTypeToString(src->present)); return false; @@ -19548,14 +19533,14 @@ virDomainTimerDefCheckABIStability(virDomainTimer= Def *src, if (src->name =3D=3D VIR_DOMAIN_TIMER_NAME_TSC) { if (src->frequency !=3D dst->frequency) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target TSC frequency %llu does not match sou= rce %llu"), + _("Target TSC frequency %1$llu does not match s= ource %2$llu"), dst->frequency, src->frequency); return false; } =20 if (src->mode !=3D dst->mode) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target TSC mode %s does not match source %s"= ), + _("Target TSC mode %1$s does not match source %= 2$s"), virDomainTimerModeTypeToString(dst->mode), virDomainTimerModeTypeToString(src->mode)); return false; @@ -19572,7 +19557,7 @@ virDomainDeviceInfoCheckABIStability(virDomainDevic= eInfo *src, { if (src->type !=3D dst->type) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target device address type %s does not match sou= rce %s"), + _("Target device address type %1$s does not match s= ource %2$s"), virDomainDeviceAddressTypeToString(dst->type), virDomainDeviceAddressTypeToString(src->type)); return false; @@ -19585,8 +19570,7 @@ virDomainDeviceInfoCheckABIStability(virDomainDevic= eInfo *src, src->addr.pci.slot !=3D dst->addr.pci.slot || src->addr.pci.function !=3D dst->addr.pci.function) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target device PCI address " VIR_PCI_DEVICE_A= DDRESS_FMT - "does not match source " VIR_PCI_DEVICE_ADDRE= SS_FMT), + _("Target device PCI address %1$04x:%2$02x:%3$0= 2x.%4$d does not match source %5$04x:%6$02x:%7$02x.%8$d"), dst->addr.pci.domain, dst->addr.pci.bus, dst->addr.pci.slot, dst->addr.pci.function, src->addr.pci.domain, src->addr.pci.bus, @@ -19600,8 +19584,7 @@ virDomainDeviceInfoCheckABIStability(virDomainDevic= eInfo *src, src->addr.drive.bus !=3D dst->addr.drive.bus || src->addr.drive.unit !=3D dst->addr.drive.unit) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target device drive address %d:%d:%d " - "does not match source %d:%d:%d"), + _("Target device drive address %1$d:%2$d:%3$d d= oes not match source %4$d:%5$d:%6$d"), dst->addr.drive.controller, dst->addr.drive.bus, dst->addr.drive.unit, src->addr.drive.controller, src->addr.drive.bus, @@ -19615,8 +19598,7 @@ virDomainDeviceInfoCheckABIStability(virDomainDevic= eInfo *src, src->addr.vioserial.bus !=3D dst->addr.vioserial.bus || src->addr.vioserial.port !=3D dst->addr.vioserial.port) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target device virtio serial address %d:%d:%d= " - "does not match source %d:%d:%d"), + _("Target device virtio serial address %1$d:%2$= d:%3$d does not match source %4$d:%5$d:%6$d"), dst->addr.vioserial.controller, dst->addr.viose= rial.bus, dst->addr.vioserial.port, src->addr.vioserial.controller, src->addr.viose= rial.bus, @@ -19629,8 +19611,7 @@ virDomainDeviceInfoCheckABIStability(virDomainDevic= eInfo *src, if (src->addr.ccid.controller !=3D dst->addr.ccid.controller || src->addr.ccid.slot !=3D dst->addr.ccid.slot) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target device ccid address %d:%d " - "does not match source %d:%d"), + _("Target device ccid address %1$d:%2$d does no= t match source %3$d:%4$d"), dst->addr.ccid.controller, dst->addr.ccid.slot, src->addr.ccid.controller, @@ -19643,8 +19624,7 @@ virDomainDeviceInfoCheckABIStability(virDomainDevic= eInfo *src, if (src->addr.isa.iobase !=3D dst->addr.isa.iobase || src->addr.isa.irq !=3D dst->addr.isa.irq) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target device isa address %d:%d " - "does not match source %d:%d"), + _("Target device isa address %1$d:%2$d does not= match source %3$d:%4$d"), dst->addr.isa.iobase, dst->addr.isa.irq, src->addr.isa.iobase, @@ -19656,8 +19636,7 @@ virDomainDeviceInfoCheckABIStability(virDomainDevic= eInfo *src, case VIR_DOMAIN_DEVICE_ADDRESS_TYPE_DIMM: if (src->addr.dimm.slot !=3D dst->addr.dimm.slot) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target device dimm slot %u does not match " - "source %u"), + _("Target device dimm slot %1$u does not match = source %2$u"), dst->addr.dimm.slot, src->addr.dimm.slot); return false; @@ -19665,8 +19644,7 @@ virDomainDeviceInfoCheckABIStability(virDomainDevic= eInfo *src, =20 if (src->addr.dimm.base !=3D dst->addr.dimm.base) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target device dimm base address '%llx' does " - "not match source '%llx'"), + _("Target device dimm base address '%1$llx' doe= s not match source '%2$llx'"), dst->addr.dimm.base, src->addr.dimm.base); return false; @@ -19686,7 +19664,7 @@ virDomainDeviceInfoCheckABIStability(virDomainDevic= eInfo *src, =20 if (src->acpiIndex !=3D dst->acpiIndex) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target ACPI index '%u' does not match source '%u= '"), + _("Target ACPI index '%1$u' does not match source '= %2$u'"), dst->acpiIndex, src->acpiIndex); return false; } @@ -19710,32 +19688,28 @@ virDomainVirtioOptionsCheckABIStability(virDomain= VirtioOptions *src, =20 if (src->iommu !=3D dst->iommu) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target device iommu option '%s' does not " - "match source '%s'"), + _("Target device iommu option '%1$s' does not match= source '%2$s'"), virTristateSwitchTypeToString(dst->iommu), virTristateSwitchTypeToString(src->iommu)); return false; } if (src->ats !=3D dst->ats) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target device ats option '%s' does not " - "match source '%s'"), + _("Target device ats option '%1$s' does not match s= ource '%2$s'"), virTristateSwitchTypeToString(dst->ats), virTristateSwitchTypeToString(src->ats)); return false; } if (src->packed !=3D dst->packed) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target device packed option '%s' does not " - "match source '%s'"), + _("Target device packed option '%1$s' does not matc= h source '%2$s'"), virTristateSwitchTypeToString(dst->packed), virTristateSwitchTypeToString(src->packed)); return false; } if (src->page_per_vq !=3D dst->page_per_vq) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target device page_per_vq option '%s' does not " - "match source '%s'"), + _("Target device page_per_vq option '%1$s' does not= match source '%2$s'"), virTristateSwitchTypeToString(dst->page_per_vq), virTristateSwitchTypeToString(src->page_per_vq)); return false; @@ -19750,7 +19724,7 @@ virDomainDiskDefCheckABIStability(virDomainDiskDef = *src, { if (src->device !=3D dst->device) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target disk device %s does not match source %s"), + _("Target disk device %1$s does not match source %2= $s"), virDomainDiskDeviceTypeToString(dst->device), virDomainDiskDeviceTypeToString(src->device)); return false; @@ -19758,7 +19732,7 @@ virDomainDiskDefCheckABIStability(virDomainDiskDef = *src, =20 if (src->bus !=3D dst->bus) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target disk bus %s does not match source %s"), + _("Target disk bus %1$s does not match source %2$s"= ), virDomainDiskBusTypeToString(dst->bus), virDomainDiskBusTypeToString(src->bus)); return false; @@ -19766,21 +19740,21 @@ virDomainDiskDefCheckABIStability(virDomainDiskDe= f *src, =20 if (STRNEQ(src->dst, dst->dst)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target disk %s does not match source %s"), + _("Target disk %1$s does not match source %2$s"), dst->dst, src->dst); return false; } =20 if (STRNEQ_NULLABLE(src->serial, dst->serial)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target disk serial %s does not match source %s"), + _("Target disk serial %1$s does not match source %2= $s"), NULLSTR(dst->serial), NULLSTR(src->serial)); return false; } =20 if (STRNEQ_NULLABLE(src->wwn, dst->wwn)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target disk wwn '%s' does not match source '%s'"= ), + _("Target disk wwn '%1$s' does not match source '%2= $s'"), NULLSTR(dst->wwn), NULLSTR(src->wwn)); return false; =20 @@ -19794,7 +19768,7 @@ virDomainDiskDefCheckABIStability(virDomainDiskDef = *src, =20 if (src->model !=3D dst->model) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target disk model %s does not match source %s"), + _("Target disk model %1$s does not match source %2$= s"), virDomainDiskModelTypeToString(dst->model), virDomainDiskModelTypeToString(src->model)); return false; @@ -19802,21 +19776,21 @@ virDomainDiskDefCheckABIStability(virDomainDiskDe= f *src, =20 if (src->rotation_rate !=3D dst->rotation_rate) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target disk rotation rate %u RPM does not match = source %u RPM"), + _("Target disk rotation rate %1$u RPM does not matc= h source %2$u RPM"), dst->rotation_rate, src->rotation_rate); return false; } =20 if (src->queues !=3D dst->queues) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target disk queue count %u does not match source= %u"), + _("Target disk queue count %1$u does not match sour= ce %2$u"), dst->queues, src->queues); return false; } =20 if (src->queue_size !=3D dst->queue_size) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target disk queue size %u does not match source = %u"), + _("Target disk queue size %1$u does not match sourc= e %2$u"), dst->queues, src->queues); return false; } @@ -19837,7 +19811,7 @@ virDomainControllerDefCheckABIStability(virDomainCo= ntrollerDef *src, { if (src->type !=3D dst->type) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target controller type %s does not match source = %s"), + _("Target controller type %1$s does not match sourc= e %2$s"), virDomainControllerTypeToString(dst->type), virDomainControllerTypeToString(src->type)); return false; @@ -19845,14 +19819,14 @@ virDomainControllerDefCheckABIStability(virDomain= ControllerDef *src, =20 if (src->idx !=3D dst->idx) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target controller index %d does not match source= %d"), + _("Target controller index %1$d does not match sour= ce %2$d"), dst->idx, src->idx); return false; } =20 if (src->model !=3D dst->model) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target controller model %d does not match source= %d"), + _("Target controller model %1$d does not match sour= ce %2$d"), dst->model, src->model); return false; } @@ -19860,21 +19834,21 @@ virDomainControllerDefCheckABIStability(virDomain= ControllerDef *src, if (src->type =3D=3D VIR_DOMAIN_CONTROLLER_TYPE_VIRTIO_SERIAL) { if (src->opts.vioserial.ports !=3D dst->opts.vioserial.ports) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target controller ports %d does not match so= urce %d"), + _("Target controller ports %1$d does not match = source %2$d"), dst->opts.vioserial.ports, src->opts.vioserial.= ports); return false; } =20 if (src->opts.vioserial.vectors !=3D dst->opts.vioserial.vectors) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target controller vectors %d does not match = source %d"), + _("Target controller vectors %1$d does not matc= h source %2$d"), dst->opts.vioserial.vectors, src->opts.vioseria= l.vectors); return false; } } else if (src->type =3D=3D VIR_DOMAIN_CONTROLLER_TYPE_USB) { if (src->opts.usbopts.ports !=3D dst->opts.usbopts.ports) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target controller ports %d does not match so= urce %d"), + _("Target controller ports %1$d does not match = source %2$d"), dst->opts.usbopts.ports, src->opts.usbopts.port= s); return false; } @@ -19896,7 +19870,7 @@ virDomainFsDefCheckABIStability(virDomainFSDef *src, { if (STRNEQ_NULLABLE(src->dst, dst->dst)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target filesystem guest target %s does not match= source %s"), + _("Target filesystem guest target %1$s does not mat= ch source %2$s"), dst->dst, src->dst); return false; } @@ -19946,8 +19920,7 @@ virDomainNetDefCheckABIStability(virDomainNetDef *s= rc, =20 if (virMacAddrCmp(&src->mac, &dst->mac) !=3D 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target network card mac %s" - " does not match source %s"), + _("Target network card mac %1$s does not match sour= ce %2$s"), virMacAddrFormat(&dst->mac, dstmac), virMacAddrFormat(&src->mac, srcmac)); return false; @@ -19955,14 +19928,14 @@ virDomainNetDefCheckABIStability(virDomainNetDef = *src, =20 if (STRNEQ_NULLABLE(src->modelstr, dst->modelstr)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target network card model %s does not match sour= ce %s"), + _("Target network card model %1$s does not match so= urce %2$s"), NULLSTR(dst->modelstr), NULLSTR(src->modelstr)); return false; } =20 if (src->model !=3D dst->model) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target network card model %s does not match sour= ce %s"), + _("Target network card model %1$s does not match so= urce %2$s"), virDomainNetModelTypeToString(dst->model), virDomainNetModelTypeToString(src->model)); return false; @@ -19970,7 +19943,7 @@ virDomainNetDefCheckABIStability(virDomainNetDef *s= rc, =20 if (src->mtu !=3D dst->mtu) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target network card MTU %d does not match source= %d"), + _("Target network card MTU %1$d does not match sour= ce %2$d"), dst->mtu, src->mtu); return false; } @@ -19991,7 +19964,7 @@ virDomainInputDefCheckABIStability(virDomainInputDe= f *src, { if (src->type !=3D dst->type) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target input device type %s does not match sourc= e %s"), + _("Target input device type %1$s does not match sou= rce %2$s"), virDomainInputTypeToString(dst->type), virDomainInputTypeToString(src->type)); return false; @@ -19999,7 +19972,7 @@ virDomainInputDefCheckABIStability(virDomainInputDe= f *src, =20 if (src->bus !=3D dst->bus) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target input device bus %s does not match source= %s"), + _("Target input device bus %1$s does not match sour= ce %2$s"), virDomainInputBusTypeToString(dst->bus), virDomainInputBusTypeToString(src->bus)); return false; @@ -20007,7 +19980,7 @@ virDomainInputDefCheckABIStability(virDomainInputDe= f *src, =20 if (src->model !=3D dst->model) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target input model %s does not match source %s"), + _("Target input model %1$s does not match source %2= $s"), virDomainInputBusTypeToString(dst->model), virDomainInputBusTypeToString(src->model)); return false; @@ -20029,7 +20002,7 @@ virDomainSoundDefCheckABIStability(virDomainSoundDe= f *src, { if (src->model !=3D dst->model) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target sound card model %s does not match source= %s"), + _("Target sound card model %1$s does not match sour= ce %2$s"), virDomainSoundModelTypeToString(dst->model), virDomainSoundModelTypeToString(src->model)); return false; @@ -20048,7 +20021,7 @@ virDomainVideoDefCheckABIStability(virDomainVideoDe= f *src, { if (src->type !=3D dst->type) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target video card model %s does not match source= %s"), + _("Target video card model %1$s does not match sour= ce %2$s"), virDomainVideoTypeToString(dst->type), virDomainVideoTypeToString(src->type)); return false; @@ -20056,35 +20029,35 @@ virDomainVideoDefCheckABIStability(virDomainVideo= Def *src, =20 if (src->ram !=3D dst->ram) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target video card ram %u does not match source %= u"), + _("Target video card ram %1$u does not match source= %2$u"), dst->ram, src->ram); return false; } =20 if (src->vram !=3D dst->vram) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target video card vram %u does not match source = %u"), + _("Target video card vram %1$u does not match sourc= e %2$u"), dst->vram, src->vram); return false; } =20 if (src->vram64 !=3D dst->vram64) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target video card vram64 %u does not match sourc= e %u"), + _("Target video card vram64 %1$u does not match sou= rce %2$u"), dst->vram64, src->vram64); return false; } =20 if (src->vgamem !=3D dst->vgamem) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target video card vgamem %u does not match sourc= e %u"), + _("Target video card vgamem %1$u does not match sou= rce %2$u"), dst->vgamem, src->vgamem); return false; } =20 if (src->heads !=3D dst->heads) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target video card heads %u does not match source= %u"), + _("Target video card heads %1$u does not match sour= ce %2$u"), dst->heads, src->heads); return false; } @@ -20099,14 +20072,14 @@ virDomainVideoDefCheckABIStability(virDomainVideo= Def *src, if (src->accel) { if (src->accel->accel2d !=3D dst->accel->accel2d) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target video card 2d accel %u does not match= source %u"), + _("Target video card 2d accel %1$u does not mat= ch source %2$u"), dst->accel->accel2d, src->accel->accel2d); return false; } =20 if (src->accel->accel3d !=3D dst->accel->accel3d) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target video card 3d accel %u does not match= source %u"), + _("Target video card 3d accel %1$u does not mat= ch source %2$u"), dst->accel->accel3d, src->accel->accel3d); return false; } @@ -20128,7 +20101,7 @@ virDomainHostdevDefCheckABIStability(virDomainHostd= evDef *src, { if (src->mode !=3D dst->mode) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target host device mode %s does not match source= %s"), + _("Target host device mode %1$s does not match sour= ce %2$s"), virDomainHostdevModeTypeToString(dst->mode), virDomainHostdevModeTypeToString(src->mode)); return false; @@ -20137,7 +20110,7 @@ virDomainHostdevDefCheckABIStability(virDomainHostd= evDef *src, if (src->mode =3D=3D VIR_DOMAIN_HOSTDEV_MODE_SUBSYS && src->source.subsys.type !=3D dst->source.subsys.type) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target host device subsystem %s does not match s= ource %s"), + _("Target host device subsystem %1$s does not match= source %2$s"), virDomainHostdevSubsysTypeToString(dst->source.subs= ys.type), virDomainHostdevSubsysTypeToString(src->source.subs= ys.type)); return false; @@ -20167,7 +20140,7 @@ virDomainSerialDefCheckABIStability(virDomainChrDef= *src, { if (src->targetType !=3D dst->targetType) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target serial type %s does not match source %s"), + _("Target serial type %1$s does not match source %2= $s"), virDomainChrSerialTargetTypeToString(dst->targetTyp= e), virDomainChrSerialTargetTypeToString(src->targetTyp= e)); return false; @@ -20175,7 +20148,7 @@ virDomainSerialDefCheckABIStability(virDomainChrDef= *src, =20 if (src->targetModel !=3D dst->targetModel) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target serial model %s does not match source %s"= ), + _("Target serial model %1$s does not match source %= 2$s"), virDomainChrSerialTargetModelTypeToString(dst->targ= etModel), virDomainChrSerialTargetModelTypeToString(src->targ= etModel)); return false; @@ -20183,7 +20156,7 @@ virDomainSerialDefCheckABIStability(virDomainChrDef= *src, =20 if (src->target.port !=3D dst->target.port) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target serial port %d does not match source %d"), + _("Target serial port %1$d does not match source %2= $d"), dst->target.port, src->target.port); return false; } @@ -20201,7 +20174,7 @@ virDomainParallelDefCheckABIStability(virDomainChrD= ef *src, { if (src->target.port !=3D dst->target.port) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target parallel port %d does not match source %d= "), + _("Target parallel port %1$d does not match source = %2$d"), dst->target.port, src->target.port); return false; } @@ -20219,7 +20192,7 @@ virDomainChannelDefCheckABIStability(virDomainChrDe= f *src, { if (src->targetType !=3D dst->targetType) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target channel type %s does not match source %s"= ), + _("Target channel type %1$s does not match source %= 2$s"), virDomainChrChannelTargetTypeToString(dst->targetTy= pe), virDomainChrChannelTargetTypeToString(src->targetTy= pe)); return false; @@ -20231,7 +20204,7 @@ virDomainChannelDefCheckABIStability(virDomainChrDe= f *src, case VIR_DOMAIN_CHR_CHANNEL_TARGET_TYPE_VIRTIO: if (STRNEQ_NULLABLE(src->target.name, dst->target.name)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target channel name %s does not match source= %s"), + _("Target channel name %1$s does not match sour= ce %2$s"), NULLSTR(dst->target.name), NULLSTR(src->target.= name)); return false; } @@ -20251,7 +20224,7 @@ virDomainChannelDefCheckABIStability(virDomainChrDe= f *src, g_autofree char *saddr =3D virSocketAddrFormatFull(src->target= .addr, true, ":"); g_autofree char *daddr =3D virSocketAddrFormatFull(dst->target= .addr, true, ":"); virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target channel addr %s does not match source= %s"), + _("Target channel addr %1$s does not match sour= ce %2$s"), NULLSTR(daddr), NULLSTR(saddr)); return false; } @@ -20271,7 +20244,7 @@ virDomainConsoleDefCheckABIStability(virDomainChrDe= f *src, { if (src->targetType !=3D dst->targetType) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target console type %s does not match source %s"= ), + _("Target console type %1$s does not match source %= 2$s"), virDomainChrConsoleTargetTypeToString(dst->targetTy= pe), virDomainChrConsoleTargetTypeToString(src->targetTy= pe)); return false; @@ -20290,7 +20263,7 @@ virDomainWatchdogDefCheckABIStability(virDomainWatc= hdogDef *src, { if (src->model !=3D dst->model) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target watchdog model %s does not match source %= s"), + _("Target watchdog model %1$s does not match source= %2$s"), virDomainWatchdogModelTypeToString(dst->model), virDomainWatchdogModelTypeToString(src->model)); return false; @@ -20309,7 +20282,7 @@ virDomainMemballoonDefCheckABIStability(virDomainMe= mballoonDef *src, { if (src->model !=3D dst->model) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target balloon model %s does not match source %s= "), + _("Target balloon model %1$s does not match source = %2$s"), virDomainMemballoonModelTypeToString(dst->model), virDomainMemballoonModelTypeToString(src->model)); return false; @@ -20317,8 +20290,7 @@ virDomainMemballoonDefCheckABIStability(virDomainMe= mballoonDef *src, =20 if (src->autodeflate !=3D dst->autodeflate) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target balloon autodeflate attribute value " - "'%s' does not match source '%s'"), + _("Target balloon autodeflate attribute value '%1$s= ' does not match source '%2$s'"), virTristateSwitchTypeToString(dst->autodeflate), virTristateSwitchTypeToString(src->autodeflate)); return false; @@ -20326,8 +20298,7 @@ virDomainMemballoonDefCheckABIStability(virDomainMe= mballoonDef *src, =20 if (src->free_page_reporting !=3D dst->free_page_reporting) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target balloon freePageReporting attribute value= " - "'%s' does not match source '%s'"), + _("Target balloon freePageReporting attribute value= '%1$s' does not match source '%2$s'"), virTristateSwitchTypeToString(dst->free_page_report= ing), virTristateSwitchTypeToString(src->free_page_report= ing)); return false; @@ -20349,7 +20320,7 @@ virDomainRNGDefCheckABIStability(virDomainRNGDef *s= rc, { if (src->model !=3D dst->model) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target RNG model '%s' does not match source '%s'= "), + _("Target RNG model '%1$s' does not match source '%= 2$s'"), virDomainRNGModelTypeToString(dst->model), virDomainRNGModelTypeToString(src->model)); return false; @@ -20371,7 +20342,7 @@ virDomainHubDefCheckABIStability(virDomainHubDef *s= rc, { if (src->type !=3D dst->type) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target hub device type %s does not match source = %s"), + _("Target hub device type %1$s does not match sourc= e %2$s"), virDomainHubTypeToString(dst->type), virDomainHubTypeToString(src->type)); return false; @@ -20390,8 +20361,7 @@ virDomainRedirdevDefCheckABIStability(virDomainRedi= rdevDef *src, { if (src->bus !=3D dst->bus) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target redirected device bus %s does not match " - "source %s"), + _("Target redirected device bus %1$s does not match= source %2$s"), virDomainRedirdevBusTypeToString(dst->bus), virDomainRedirdevBusTypeToString(src->bus)); return false; @@ -20401,8 +20371,7 @@ virDomainRedirdevDefCheckABIStability(virDomainRedi= rdevDef *src, case VIR_DOMAIN_REDIRDEV_BUS_USB: if (src->source->type !=3D dst->source->type) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target redirected device source type %s does= " - "not match source device source type %s"), + _("Target redirected device source type %1$s do= es not match source device source type %2$s"), virDomainChrTypeToString(dst->source->type), virDomainChrTypeToString(src->source->type)); return false; @@ -20427,8 +20396,7 @@ virDomainRedirFilterDefCheckABIStability(virDomainR= edirFilterDef *src, =20 if (src->nusbdevs !=3D dst->nusbdevs) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target USB redirection filter rule " - "count %zu does not match source %zu"), + _("Target USB redirection filter rule count %1$zu d= oes not match source %2$zu"), dst->nusbdevs, src->nusbdevs); return false; } @@ -20462,7 +20430,7 @@ virDomainRedirFilterDefCheckABIStability(virDomainR= edirFilterDef *src, =20 if (srcUSBDev->allow !=3D dstUSBDev->allow) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target USB allow '%s' does not match source = '%s'"), + _("Target USB allow '%1$s' does not match sourc= e '%2$s'"), dstUSBDev->allow ? "yes" : "no", srcUSBDev->allow ? "yes" : "no"); return false; @@ -20501,8 +20469,7 @@ virDomainDefFeaturesCheckABIStability(virDomainDef = *src, case VIR_DOMAIN_FEATURE_CCF_ASSIST: if (src->features[i] !=3D dst->features[i]) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("State of feature '%s' differs: " - "source: '%s', destination: '%s'"), + _("State of feature '%1$s' differs: source:= '%2$s', destination: '%3$s'"), featureName, virTristateSwitchTypeToString(src->features= [i]), virTristateSwitchTypeToString(dst->features= [i])); @@ -20513,8 +20480,7 @@ virDomainDefFeaturesCheckABIStability(virDomainDef = *src, case VIR_DOMAIN_FEATURE_CAPABILITIES: if (src->features[i] !=3D dst->features[i]) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("State of feature '%s' differs: " - "source: '%s=3D%s', destination: '%s=3D%s= '"), + _("State of feature '%1$s' differs: source:= '%2$s=3D%3$s', destination: '%4$s=3D%5$s'"), featureName, "policy", virDomainCapabilitiesPolicyTypeToString(src= ->features[i]), @@ -20528,8 +20494,7 @@ virDomainDefFeaturesCheckABIStability(virDomainDef = *src, if (src->features[i] !=3D dst->features[i] || src->gic_version !=3D dst->gic_version) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("State of feature '%s' differs: " - "source: '%s,%s=3D%s', destination: '%s,%= s=3D%s'"), + _("State of feature '%1$s' differs: source:= '%2$s,%3$s=3D%4$s', destination: '%5$s,%6$s=3D%7$s'"), featureName, virTristateSwitchTypeToString(src->features= [i]), "version", virGICVersionTypeToString(src->g= ic_version), @@ -20544,8 +20509,7 @@ virDomainDefFeaturesCheckABIStability(virDomainDef = *src, src->hpt_resizing !=3D dst->hpt_resizing || src->hpt_maxpagesize !=3D dst->hpt_maxpagesize) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("State of feature '%s' differs: " - "source: '%s,%s=3D%s,%s=3D%llu', destinat= ion: '%s,%s=3D%s,%s=3D%llu'"), + _("State of feature '%1$s' differs: source:= '%2$s,%3$s=3D%4$s,%5$s=3D%6$llu', destination: '%7$s,%8$s=3D%9$s,%10$s=3D%= 11$llu'"), featureName, virTristateSwitchTypeToString(src->features= [i]), "resizing", virDomainHPTResizingTypeToStrin= g(src->hpt_resizing), @@ -20561,8 +20525,7 @@ virDomainDefFeaturesCheckABIStability(virDomainDef = *src, if (src->features[i] !=3D dst->features[i] || src->apic_eoi !=3D dst->apic_eoi) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("State of feature '%s' differs: " - "source: '%s,%s=3D%s', destination: '%s,%= s=3D%s'"), + _("State of feature '%1$s' differs: source:= '%2$s,%3$s=3D%4$s', destination: '%5$s,%6$s=3D%7$s'"), featureName, virTristateSwitchTypeToString(src->features= [i]), "eoi", virTristateSwitchTypeToString(src->a= pic_eoi), @@ -20575,8 +20538,7 @@ virDomainDefFeaturesCheckABIStability(virDomainDef = *src, case VIR_DOMAIN_FEATURE_IOAPIC: if (src->features[i] !=3D dst->features[i]) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("State of feature '%s' differs: " - "source: '%s=3D%s', destination: '%s=3D%s= '"), + _("State of feature '%1$s' differs: source:= '%2$s=3D%3$s', destination: '%4$s=3D%5$s'"), featureName, "driver", virDomainIOAPICTypeToString(src->= features[i]), "driver", virDomainIOAPICTypeToString(dst->= features[i])); @@ -20587,8 +20549,7 @@ virDomainDefFeaturesCheckABIStability(virDomainDef = *src, case VIR_DOMAIN_FEATURE_CFPC: if (src->features[i] !=3D dst->features[i]) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("State of feature '%s' differs: " - "source: '%s=3D%s', destination: '%s=3D%s= '"), + _("State of feature '%1$s' differs: source:= '%2$s=3D%3$s', destination: '%4$s=3D%5$s'"), featureName, "value", virDomainCFPCTypeToString(src->fea= tures[i]), "value", virDomainCFPCTypeToString(dst->fea= tures[i])); @@ -20599,8 +20560,7 @@ virDomainDefFeaturesCheckABIStability(virDomainDef = *src, case VIR_DOMAIN_FEATURE_SBBC: if (src->features[i] !=3D dst->features[i]) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("State of feature '%s' differs: " - "source: '%s=3D%s', destination: '%s=3D%s= '"), + _("State of feature '%1$s' differs: source:= '%2$s=3D%3$s', destination: '%4$s=3D%5$s'"), featureName, "value", virDomainSBBCTypeToString(src->fea= tures[i]), "value", virDomainSBBCTypeToString(dst->fea= tures[i])); @@ -20611,8 +20571,7 @@ virDomainDefFeaturesCheckABIStability(virDomainDef = *src, case VIR_DOMAIN_FEATURE_IBS: if (src->features[i] !=3D dst->features[i]) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("State of feature '%s' differs: " - "source: '%s=3D%s', destination: '%s=3D%s= '"), + _("State of feature '%1$s' differs: source:= '%2$s=3D%3$s', destination: '%4$s=3D%5$s'"), featureName, "value", virDomainIBSTypeToString(src->feat= ures[i]), "value", virDomainIBSTypeToString(dst->feat= ures[i])); @@ -20646,9 +20605,7 @@ virDomainDefFeaturesCheckABIStability(virDomainDef = *src, case VIR_DOMAIN_HYPERV_AVIC: if (src->hyperv_features[i] !=3D dst->hyperv_features[i]) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("State of HyperV enlightenment " - "feature '%s' differs: " - "source: '%s', destination: '%s'"), + _("State of HyperV enlightenment featur= e '%1$s' differs: source: '%2$s', destination: '%3$s'"), virDomainHypervTypeToString(i), virTristateSwitchTypeToString(src->hype= rv_features[i]), virTristateSwitchTypeToString(dst->hype= rv_features[i])); @@ -20661,8 +20618,7 @@ virDomainDefFeaturesCheckABIStability(virDomainDef = *src, /* spinlock count matters! */ if (src->hyperv_spinlocks !=3D dst->hyperv_spinlocks) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("HyperV spinlock retry count differs:= " - "source: '%u', destination: '%u'"), + _("HyperV spinlock retry count differs:= source: '%1$u', destination: '%2$u'"), src->hyperv_spinlocks, dst->hyperv_spinlocks); return false; @@ -20672,8 +20628,7 @@ virDomainDefFeaturesCheckABIStability(virDomainDef = *src, case VIR_DOMAIN_HYPERV_VENDOR_ID: if (STRNEQ_NULLABLE(src->hyperv_vendor_id, dst->hyperv_ven= dor_id)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("HyperV vendor_id differs: " - "source: '%s', destination: '%s'"), + _("HyperV vendor_id differs: source: '%= 1$s', destination: '%2$s'"), src->hyperv_vendor_id, dst->hyperv_vendor_id); return false; @@ -20689,8 +20644,7 @@ virDomainDefFeaturesCheckABIStability(virDomainDef = *src, if (src->hyperv_features[VIR_DOMAIN_HYPERV_STIMER] =3D=3D VIR_TRISTATE= _SWITCH_ON) { if (src->hyperv_stimer_direct !=3D dst->hyperv_stimer_direct) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("State of HyperV stimer direct feature differ= s: " - "source: '%s', destination: '%s'"), + _("State of HyperV stimer direct feature differ= s: source: '%1$s', destination: '%2$s'"), virTristateSwitchTypeToString(src->hyperv_stime= r_direct), virTristateSwitchTypeToString(dst->hyperv_stime= r_direct)); return false; @@ -20702,8 +20656,7 @@ virDomainDefFeaturesCheckABIStability(virDomainDef = *src, for (i =3D 0; i < VIR_DOMAIN_XEN_LAST; i++) { if (src->xen_features[i] !=3D dst->xen_features[i]) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("State of Xen feature '%s' differs: " - "source: '%s', destination: '%s'"), + _("State of Xen feature '%1$s' differs: sou= rce: '%2$s', destination: '%3$s'"), virDomainXenTypeToString(i), virTristateSwitchTypeToString(src->xen_feat= ures[i]), virTristateSwitchTypeToString(dst->xen_feat= ures[i])); @@ -20716,8 +20669,7 @@ virDomainDefFeaturesCheckABIStability(virDomainDef = *src, case VIR_DOMAIN_XEN_PASSTHROUGH: if (src->xen_passthrough_mode !=3D dst->xen_passthrough_mo= de) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("'mode' of Xen passthrough feature di= ffers: " - "source: '%s', destination: '%s'"), + _("'mode' of Xen passthrough feature di= ffers: source: '%1$s', destination: '%2$s'"), virDomainXenPassthroughModeTypeToString= (src->xen_passthrough_mode), virDomainXenPassthroughModeTypeToString= (dst->xen_passthrough_mode)); return false; @@ -20741,8 +20693,7 @@ virDomainDefFeaturesCheckABIStability(virDomainDef = *src, case VIR_DOMAIN_KVM_DIRTY_RING: if (src->kvm_features->features[i] !=3D dst->kvm_features-= >features[i]) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("State of KVM feature '%s' differs: " - "source: '%s', destination: '%s'"), + _("State of KVM feature '%1$s' differs:= source: '%2$s', destination: '%3$s'"), virDomainKVMTypeToString(i), virTristateSwitchTypeToString(src->kvm_= features->features[i]), virTristateSwitchTypeToString(dst->kvm_= features->features[i])); @@ -20758,8 +20709,7 @@ virDomainDefFeaturesCheckABIStability(virDomainDef = *src, =20 if (src->kvm_features->dirty_ring_size !=3D dst->kvm_features->dir= ty_ring_size) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("dirty ring size of KVM feature '%s' differs:= " - "source: '%d', destination: '%d'"), + _("dirty ring size of KVM feature '%1$s' differ= s: source: '%2$d', destination: '%3$d'"), virDomainKVMTypeToString(i), src->kvm_features->dirty_ring_size, dst->kvm_features->dirty_ring_size); @@ -20771,7 +20721,7 @@ virDomainDefFeaturesCheckABIStability(virDomainDef = *src, if (src->features[VIR_DOMAIN_FEATURE_SMM] =3D=3D VIR_TRISTATE_SWITCH_O= N) { if (src->tseg_specified !=3D dst->tseg_specified) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("SMM TSEG differs: source: %s, destination: '= %s'"), + _("SMM TSEG differs: source: %1$s, destination:= '%2$s'"), src->tseg_specified ? _("specified") : _("not s= pecified"), dst->tseg_specified ? _("specified") : _("not s= pecified")); return false; @@ -20786,8 +20736,7 @@ virDomainDefFeaturesCheckABIStability(virDomainDef = *src, &unit_d= st); =20 virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Size of SMM TSEG size differs: " - "source: '%llu %s', destination: '%llu %s'"), + _("Size of SMM TSEG size differs: source: '%1$l= lu %2$s', destination: '%3$llu %4$s'"), short_size_src, unit_src, short_size_dst, unit_dst); return false; @@ -20803,7 +20752,7 @@ virDomainPanicDefCheckABIStability(virDomainPanicDe= f *src, { if (src->model !=3D dst->model) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target panic model '%s' does not match source '%= s'"), + _("Target panic model '%1$s' does not match source = '%2$s'"), virDomainPanicModelTypeToString(dst->model), virDomainPanicModelTypeToString(src->model)); return false; @@ -20819,8 +20768,7 @@ virDomainShmemDefCheckABIStability(virDomainShmemDe= f *src, { if (src->role !=3D dst->role) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target shared memory role '%s' does not match " - "source role '%s'"), + _("Target shared memory role '%1$s' does not match = source role '%2$s'"), virDomainShmemRoleTypeToString(dst->role), virDomainShmemRoleTypeToString(src->role)); return false; @@ -20828,8 +20776,7 @@ virDomainShmemDefCheckABIStability(virDomainShmemDe= f *src, =20 if (src->model !=3D dst->model) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target shared memory model '%s' does not match " - "source model '%s'"), + _("Target shared memory model '%1$s' does not match= source model '%2$s'"), virDomainShmemModelTypeToString(dst->model), virDomainShmemModelTypeToString(src->model)); return false; @@ -20837,8 +20784,8 @@ virDomainShmemDefCheckABIStability(virDomainShmemDe= f *src, =20 if (src->size !=3D dst->size) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target shared memory size '%llu' does not match " - "source size '%llu'"), dst->size, src->size); + _("Target shared memory size '%1$llu' does not matc= h source size '%2$llu'"), + dst->size, src->size); return false; } =20 @@ -20911,8 +20858,7 @@ virDomainMemtuneCheckABIStability(const virDomainDe= f *src, { if (virDomainDefGetMemoryInitial(src) !=3D virDomainDefGetMemoryInitia= l(dst)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target domain max memory %lld " - "does not match source %lld"), + _("Target domain max memory %1$lld does not match s= ource %2$lld"), virDomainDefGetMemoryInitial(dst), virDomainDefGetMemoryInitial(src)); return false; @@ -20921,8 +20867,7 @@ virDomainMemtuneCheckABIStability(const virDomainDe= f *src, if (!(flags & VIR_DOMAIN_DEF_ABI_CHECK_SKIP_VOLATILE) && src->mem.cur_balloon !=3D dst->mem.cur_balloon) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target domain current memory %lld " - "does not match source %lld"), + _("Target domain current memory %1$lld does not mat= ch source %2$lld"), dst->mem.cur_balloon, src->mem.cur_balloon); return false; @@ -20930,8 +20875,7 @@ virDomainMemtuneCheckABIStability(const virDomainDe= f *src, =20 if (src->mem.max_memory !=3D dst->mem.max_memory) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target maximum memory size '%llu' " - "doesn't match source '%llu'"), + _("Target maximum memory size '%1$llu' doesn't matc= h source '%2$llu'"), dst->mem.max_memory, src->mem.max_memory); return false; @@ -20939,8 +20883,7 @@ virDomainMemtuneCheckABIStability(const virDomainDe= f *src, =20 if (src->mem.memory_slots !=3D dst->mem.memory_slots) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target domain memory slots " - "count '%u' doesn't match source '%u'"), + _("Target domain memory slots count '%1$u' doesn't = match source '%2$u'"), dst->mem.memory_slots, src->mem.memory_slots); return false; @@ -20956,8 +20899,7 @@ virDomainMemoryDefCheckABIStability(virDomainMemory= Def *src, { if (src->model !=3D dst->model) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target memory device model '%s' " - "doesn't match source model '%s'"), + _("Target memory device model '%1$s' doesn't match = source model '%2$s'"), virDomainMemoryModelTypeToString(dst->model), virDomainMemoryModelTypeToString(src->model)); return false; @@ -20965,32 +20907,28 @@ virDomainMemoryDefCheckABIStability(virDomainMemo= ryDef *src, =20 if (src->targetNode !=3D dst->targetNode) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target memory device targetNode '%d' " - "doesn't match source targetNode '%d'"), + _("Target memory device targetNode '%1$d' doesn't m= atch source targetNode '%2$d'"), dst->targetNode, src->targetNode); return false; } =20 if (src->size !=3D dst->size) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target memory device size '%llu' doesn't match " - "source memory device size '%llu'"), + _("Target memory device size '%1$llu' doesn't match= source memory device size '%2$llu'"), dst->size, src->size); return false; } =20 if (src->blocksize !=3D dst->blocksize) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target memory device block size '%llu' doesn't m= atch " - "source memory device block size '%llu'"), + _("Target memory device block size '%1$llu' doesn't= match source memory device block size '%2$llu'"), dst->blocksize, src->blocksize); return false; } =20 if (src->requestedsize !=3D dst->requestedsize) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target memory device requested size '%llu' doesn= 't match " - "source memory device requested size '%llu'"), + _("Target memory device requested size '%1$llu' doe= sn't match source memory device requested size '%2$llu'"), dst->requestedsize, src->requestedsize); return false; } @@ -20998,16 +20936,14 @@ virDomainMemoryDefCheckABIStability(virDomainMemo= ryDef *src, if (src->model =3D=3D VIR_DOMAIN_MEMORY_MODEL_NVDIMM) { if (src->labelsize !=3D dst->labelsize) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target NVDIMM label size '%llu' doesn't matc= h " - "source NVDIMM label size '%llu'"), + _("Target NVDIMM label size '%1$llu' doesn't ma= tch source NVDIMM label size '%2$llu'"), src->labelsize, dst->labelsize); return false; } =20 if (src->alignsize !=3D dst->alignsize) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target NVDIMM alignment '%llu' doesn't match= " - "source NVDIMM alignment '%llu'"), + _("Target NVDIMM alignment '%1$llu' doesn't mat= ch source NVDIMM alignment '%2$llu'"), src->alignsize, dst->alignsize); return false; } @@ -21045,48 +20981,42 @@ virDomainIOMMUDefCheckABIStability(virDomainIOMMU= Def *src, { if (src->model !=3D dst->model) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target domain IOMMU device model '%s' " - "does not match source '%s'"), + _("Target domain IOMMU device model '%1$s' does not= match source '%2$s'"), virDomainIOMMUModelTypeToString(dst->model), virDomainIOMMUModelTypeToString(src->model)); return false; } if (src->intremap !=3D dst->intremap) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target domain IOMMU device intremap value '%s' " - "does not match source '%s'"), + _("Target domain IOMMU device intremap value '%1$s'= does not match source '%2$s'"), virTristateSwitchTypeToString(dst->intremap), virTristateSwitchTypeToString(src->intremap)); return false; } if (src->caching_mode !=3D dst->caching_mode) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target domain IOMMU device caching mode '%s' " - "does not match source '%s'"), + _("Target domain IOMMU device caching mode '%1$s' d= oes not match source '%2$s'"), virTristateSwitchTypeToString(dst->caching_mode), virTristateSwitchTypeToString(src->caching_mode)); return false; } if (src->eim !=3D dst->eim) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target domain IOMMU device eim value '%s' " - "does not match source '%s'"), + _("Target domain IOMMU device eim value '%1$s' does= not match source '%2$s'"), virTristateSwitchTypeToString(dst->eim), virTristateSwitchTypeToString(src->eim)); return false; } if (src->iotlb !=3D dst->iotlb) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target domain IOMMU device iotlb value '%s' " - "does not match source '%s'"), + _("Target domain IOMMU device iotlb value '%1$s' do= es not match source '%2$s'"), virTristateSwitchTypeToString(dst->iotlb), virTristateSwitchTypeToString(src->iotlb)); return false; } if (src->aw_bits !=3D dst->aw_bits) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target domain IOMMU device aw_bits value '%d' " - "does not match source '%d'"), + _("Target domain IOMMU device aw_bits value '%1$d' = does not match source '%2$d'"), dst->aw_bits, src->aw_bits); return false; } @@ -21101,8 +21031,7 @@ virDomainVsockDefCheckABIStability(virDomainVsockDe= f *src, { if (src->model !=3D dst->model) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target domain vsock device model '%s' " - "does not match source '%s'"), + _("Target domain vsock device model '%1$s' does not= match source '%2$s'"), virDomainVsockModelTypeToString(dst->model), virDomainVsockModelTypeToString(src->model)); return false; @@ -21126,7 +21055,7 @@ virDomainDefVcpuCheckAbiStability(virDomainDef *src, =20 if (src->maxvcpus !=3D dst->maxvcpus) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target domain vCPU max %zu does not match source= %zu"), + _("Target domain vCPU max %1$zu does not match sour= ce %2$zu"), dst->maxvcpus, src->maxvcpus); return false; } @@ -21137,15 +21066,15 @@ virDomainDefVcpuCheckAbiStability(virDomainDef *s= rc, =20 if (svcpu->online !=3D dvcpu->online) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("State of vCPU '%zu' differs between source a= nd " - "destination definitions"), i); + _("State of vCPU '%1$zu' differs between source= and destination definitions"), + i); return false; } =20 if (svcpu->order !=3D dvcpu->order) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("vcpu enable order of vCPU '%zu' differs betw= een " - "source and destination definitions"), i); + _("vcpu enable order of vCPU '%1$zu' differs be= tween source and destination definitions"), + i); return false; } } @@ -21171,7 +21100,7 @@ virDomainDefCheckABIStabilityFlags(virDomainDef *sr= c, =20 if (src->virtType !=3D dst->virtType) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target domain virt type %s does not match source= %s"), + _("Target domain virt type %1$s does not match sour= ce %2$s"), virDomainVirtTypeToString(dst->virtType), virDomainVirtTypeToString(src->virtType)); goto error; @@ -21183,7 +21112,7 @@ virDomainDefCheckABIStabilityFlags(virDomainDef *sr= c, virUUIDFormat(src->uuid, uuidsrc); virUUIDFormat(dst->uuid, uuiddst); virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target domain uuid %s does not match source %s"), + _("Target domain uuid %1$s does not match source %2= $s"), uuiddst, uuidsrc); goto error; } @@ -21202,7 +21131,7 @@ virDomainDefCheckABIStabilityFlags(virDomainDef *sr= c, virUUIDFormat(src->genid, guidsrc); virUUIDFormat(dst->genid, guiddst); virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target domain genid %s does not match source %s"= ), + _("Target domain genid %1$s does not match source %= 2$s"), guiddst, guidsrc); goto error; } @@ -21213,7 +21142,7 @@ virDomainDefCheckABIStabilityFlags(virDomainDef *sr= c, */ if (STRNEQ_NULLABLE(src->name, dst->name)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target domain name '%s' does not match source '%= s'"), + _("Target domain name '%1$s' does not match source = '%2$s'"), dst->name, src->name); goto error; } @@ -21229,28 +21158,28 @@ virDomainDefCheckABIStabilityFlags(virDomainDef *= src, =20 if (src->os.type !=3D dst->os.type) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target domain OS type %s does not match source %= s"), + _("Target domain OS type %1$s does not match source= %2$s"), virDomainOSTypeToString(dst->os.type), virDomainOSTypeToString(src->os.type)); goto error; } if (src->os.arch !=3D dst->os.arch) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target domain architecture %s does not match sou= rce %s"), + _("Target domain architecture %1$s does not match s= ource %2$s"), virArchToString(dst->os.arch), virArchToString(src->os.arch)); goto error; } if (STRNEQ_NULLABLE(src->os.machine, dst->os.machine)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target domain machine type %s does not match source= %s"), + _("Target domain machine type %1$s does not match sour= ce %2$s"), dst->os.machine, src->os.machine); goto error; } =20 if (src->os.smbios_mode !=3D dst->os.smbios_mode) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target domain SMBIOS mode %s does not match sour= ce %s"), + _("Target domain SMBIOS mode %1$s does not match so= urce %2$s"), virDomainSmbiosModeTypeToString(dst->os.smbios_mode= ), virDomainSmbiosModeTypeToString(src->os.smbios_mode= )); goto error; @@ -21287,7 +21216,7 @@ virDomainDefCheckABIStabilityFlags(virDomainDef *sr= c, =20 if (src->ndisks !=3D dst->ndisks) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target domain disk count %zu does not match sour= ce %zu"), + _("Target domain disk count %1$zu does not match so= urce %2$zu"), dst->ndisks, src->ndisks); goto error; } @@ -21298,8 +21227,7 @@ virDomainDefCheckABIStabilityFlags(virDomainDef *sr= c, =20 if (src->ncontrollers !=3D dst->ncontrollers) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target domain controller count %zu " - "does not match source %zu"), + _("Target domain controller count %1$zu does not ma= tch source %2$zu"), dst->ncontrollers, src->ncontrollers); goto error; } @@ -21311,8 +21239,7 @@ virDomainDefCheckABIStabilityFlags(virDomainDef *sr= c, =20 if (src->nfss !=3D dst->nfss) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target domain filesystem count %zu " - "does not match source %zu"), + _("Target domain filesystem count %1$zu does not ma= tch source %2$zu"), dst->nfss, src->nfss); goto error; } @@ -21323,8 +21250,7 @@ virDomainDefCheckABIStabilityFlags(virDomainDef *sr= c, =20 if (src->nnets !=3D dst->nnets) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target domain net card count %zu " - "does not match source %zu"), + _("Target domain net card count %1$zu does not matc= h source %2$zu"), dst->nnets, src->nnets); goto error; } @@ -21335,8 +21261,7 @@ virDomainDefCheckABIStabilityFlags(virDomainDef *sr= c, =20 if (src->ninputs !=3D dst->ninputs) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target domain input device count %zu " - "does not match source %zu"), + _("Target domain input device count %1$zu does not = match source %2$zu"), dst->ninputs, src->ninputs); goto error; } @@ -21347,8 +21272,7 @@ virDomainDefCheckABIStabilityFlags(virDomainDef *sr= c, =20 if (src->nsounds !=3D dst->nsounds) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target domain sound card count %zu " - "does not match source %zu"), + _("Target domain sound card count %1$zu does not ma= tch source %2$zu"), dst->nsounds, src->nsounds); goto error; } @@ -21359,8 +21283,7 @@ virDomainDefCheckABIStabilityFlags(virDomainDef *sr= c, =20 if (src->nvideos !=3D dst->nvideos) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target domain video card count %zu " - "does not match source %zu"), + _("Target domain video card count %1$zu does not ma= tch source %2$zu"), dst->nvideos, src->nvideos); goto error; } @@ -21371,8 +21294,7 @@ virDomainDefCheckABIStabilityFlags(virDomainDef *sr= c, =20 if (src->nhostdevs !=3D dst->nhostdevs) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target domain host device count %zu " - "does not match source %zu"), + _("Target domain host device count %1$zu does not m= atch source %2$zu"), dst->nhostdevs, src->nhostdevs); goto error; } @@ -21384,8 +21306,7 @@ virDomainDefCheckABIStabilityFlags(virDomainDef *sr= c, =20 if (src->nsmartcards !=3D dst->nsmartcards) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target domain smartcard count %zu " - "does not match source %zu"), + _("Target domain smartcard count %1$zu does not mat= ch source %2$zu"), dst->nsmartcards, src->nsmartcards); goto error; } @@ -21397,8 +21318,7 @@ virDomainDefCheckABIStabilityFlags(virDomainDef *sr= c, =20 if (src->nserials !=3D dst->nserials) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target domain serial port count %zu " - "does not match source %zu"), + _("Target domain serial port count %1$zu does not m= atch source %2$zu"), dst->nserials, src->nserials); goto error; } @@ -21410,8 +21330,7 @@ virDomainDefCheckABIStabilityFlags(virDomainDef *sr= c, =20 if (src->nparallels !=3D dst->nparallels) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target domain parallel port count %zu " - "does not match source %zu"), + _("Target domain parallel port count %1$zu does not= match source %2$zu"), dst->nparallels, src->nparallels); goto error; } @@ -21423,8 +21342,7 @@ virDomainDefCheckABIStabilityFlags(virDomainDef *sr= c, =20 if (src->nchannels !=3D dst->nchannels) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target domain channel count %zu " - "does not match source %zu"), + _("Target domain channel count %1$zu does not match= source %2$zu"), dst->nchannels, src->nchannels); goto error; } @@ -21436,8 +21354,7 @@ virDomainDefCheckABIStabilityFlags(virDomainDef *sr= c, =20 if (src->nconsoles !=3D dst->nconsoles) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target domain console count %zu " - "does not match source %zu"), + _("Target domain console count %1$zu does not match= source %2$zu"), dst->nconsoles, src->nconsoles); goto error; } @@ -21449,8 +21366,7 @@ virDomainDefCheckABIStabilityFlags(virDomainDef *sr= c, =20 if (src->nhubs !=3D dst->nhubs) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target domain hub device count %zu " - "does not match source %zu"), + _("Target domain hub device count %1$zu does not ma= tch source %2$zu"), dst->nhubs, src->nhubs); goto error; } @@ -21461,8 +21377,7 @@ virDomainDefCheckABIStabilityFlags(virDomainDef *sr= c, =20 if (src->nredirdevs !=3D dst->nredirdevs) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target domain redirected devices count %zu " - "does not match source %zu"), + _("Target domain redirected devices count %1$zu doe= s not match source %2$zu"), dst->nredirdevs, src->nredirdevs); goto error; } @@ -21476,8 +21391,7 @@ virDomainDefCheckABIStabilityFlags(virDomainDef *sr= c, if ((!src->redirfilter && dst->redirfilter) || (src->redirfilter && !dst->redirfilter)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target domain USB redirection filter count %d " - "does not match source %d"), + _("Target domain USB redirection filter count %1$d = does not match source %2$d"), dst->redirfilter ? 1 : 0, src->redirfilter ? 1 : 0); goto error; } @@ -21490,7 +21404,7 @@ virDomainDefCheckABIStabilityFlags(virDomainDef *sr= c, =20 if (src->nwatchdogs !=3D dst->nwatchdogs) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target domain watchdog device count %zu does not= match source %zu"), + _("Target domain watchdog device count %1$zu does n= ot match source %2$zu"), dst->nwatchdogs, src->nwatchdogs); goto error; } @@ -21503,8 +21417,7 @@ virDomainDefCheckABIStabilityFlags(virDomainDef *sr= c, if ((!src->memballoon && dst->memballoon) || (src->memballoon && !dst->memballoon)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target domain memory balloon count %d " - "does not match source %d"), + _("Target domain memory balloon count %1$d does not= match source %2$d"), dst->memballoon ? 1 : 0, src->memballoon ? 1 : 0); goto error; } @@ -21516,8 +21429,8 @@ virDomainDefCheckABIStabilityFlags(virDomainDef *sr= c, =20 if (src->nrngs !=3D dst->nrngs) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target domain RNG device count %zu " - "does not match source %zu"), dst->nrngs, src->nr= ngs); + _("Target domain RNG device count %1$zu does not ma= tch source %2$zu"), + dst->nrngs, src->nrngs); goto error; } =20 @@ -21527,8 +21440,8 @@ virDomainDefCheckABIStabilityFlags(virDomainDef *sr= c, =20 if (src->npanics !=3D dst->npanics) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target domain panic device count %zu " - "does not match source %zu"), dst->npanics, src->= npanics); + _("Target domain panic device count %1$zu does not = match source %2$zu"), + dst->npanics, src->npanics); goto error; } =20 @@ -21539,8 +21452,8 @@ virDomainDefCheckABIStabilityFlags(virDomainDef *sr= c, =20 if (src->nshmems !=3D dst->nshmems) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target domain shared memory device count %zu " - "does not match source %zu"), dst->nshmems, src->= nshmems); + _("Target domain shared memory device count %1$zu d= oes not match source %2$zu"), + dst->nshmems, src->nshmems); goto error; } =20 @@ -21551,8 +21464,7 @@ virDomainDefCheckABIStabilityFlags(virDomainDef *sr= c, =20 if (src->ntpms !=3D dst->ntpms) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target domain TPM device count %zu " - "does not match source %zu"), + _("Target domain TPM device count %1$zu does not ma= tch source %2$zu"), dst->ntpms, src->ntpms); goto error; } @@ -21564,8 +21476,8 @@ virDomainDefCheckABIStabilityFlags(virDomainDef *sr= c, =20 if (src->nmems !=3D dst->nmems) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Target domain memory device count %zu " - "does not match source %zu"), dst->nmems, src->nm= ems); + _("Target domain memory device count %1$zu does not= match source %2$zu"), + dst->nmems, src->nmems); goto error; } =20 @@ -21912,7 +21824,7 @@ virDomainEventActionDefFormat(virBuffer *buf, const char *typeStr =3D convFunc(type); if (!typeStr) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("unexpected %s action: %d"), name, type); + _("unexpected %1$s action: %2$d"), name, type); return -1; } =20 @@ -22331,7 +22243,7 @@ virDomainDiskSourceFormat(virBuffer *buf, case VIR_STORAGE_TYPE_NONE: case VIR_STORAGE_TYPE_LAST: virReportError(VIR_ERR_INTERNAL_ERROR, - _("unexpected disk type %d"), src->type); + _("unexpected disk type %1$d"), src->type); return -1; } =20 @@ -22399,7 +22311,7 @@ virDomainDiskBackingStoreFormat(virBuffer *buf, =20 if (backingStore->format <=3D 0 || backingStore->format >=3D VIR_STORA= GE_FILE_LAST) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("unexpected disk backing store format %d"), + _("unexpected disk backing store format %1$d"), backingStore->format); return -1; } @@ -22661,22 +22573,22 @@ virDomainDiskDefFormat(virBuffer *buf, =20 if (!type || !def->src->type) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("unexpected disk type %d"), def->src->type); + _("unexpected disk type %1$d"), def->src->type); return -1; } if (!device) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("unexpected disk device %d"), def->device); + _("unexpected disk device %1$d"), def->device); return -1; } if (!bus) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("unexpected disk bus %d"), def->bus); + _("unexpected disk bus %1$d"), def->bus); return -1; } if (!sgio) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("Unexpected disk sgio mode '%d'"), def->sgio); + _("Unexpected disk sgio mode '%1$d'"), def->sgio); return -1; } =20 @@ -22851,7 +22763,7 @@ virDomainControllerDefFormatPCI(virBuffer *buf, const char *modelName =3D virDomainControllerPCIModelNameTypeToStr= ing(def->opts.pciopts.modelName); if (!modelName) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("unexpected model name value %d"), + _("unexpected model name value %1$d"), def->opts.pciopts.modelName); return -1; } @@ -22893,7 +22805,7 @@ virDomainControllerDefFormat(virBuffer *buf, =20 if (!type) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("unexpected controller type %d"), def->type); + _("unexpected controller type %1$d"), def->type); return -1; } =20 @@ -22902,7 +22814,7 @@ virDomainControllerDefFormat(virBuffer *buf, =20 if (!model) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("unexpected model type %d"), def->model); + _("unexpected model type %1$d"), def->model); return -1; } } @@ -23008,19 +22920,19 @@ virDomainFSDefFormat(virBuffer *buf, =20 if (!type) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("unexpected filesystem type %d"), def->type); + _("unexpected filesystem type %1$d"), def->type); return -1; } =20 if (!accessmode) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("unexpected accessmode %d"), def->accessmode); + _("unexpected accessmode %1$d"), def->accessmode); return -1; } =20 if (!multidevs) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("unexpected multidevs %d"), def->multidevs); + _("unexpected multidevs %1$d"), def->multidevs); return -1; } =20 @@ -23263,7 +23175,7 @@ virDomainHostdevDefFormatSubsysPCI(virBuffer *buf, =20 if (!backend) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("unexpected pci hostdev driver name type %d"), + _("unexpected pci hostdev driver name type %1$d= "), pcisrc->backend); return -1; } @@ -23430,7 +23342,7 @@ virDomainHostdevDefFormatCaps(virBuffer *buf, break; default: virReportError(VIR_ERR_INTERNAL_ERROR, - _("unexpected hostdev type %d"), + _("unexpected hostdev type %1$d"), def->source.caps.type); return -1; } @@ -23509,7 +23421,7 @@ virDomainActualNetDefContentsFormat(virBuffer *buf, mode =3D virNetDevMacVLanModeTypeToString(virDomainNetGetActua= lDirectMode(def)); if (!mode) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("unexpected source mode %d"), + _("unexpected source mode %1$d"), virDomainNetGetActualDirectMode(def)); return -1; } @@ -23556,7 +23468,7 @@ virDomainActualNetDefFormat(virBuffer *buf, =20 if (!typeStr) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("unexpected net type %d"), def->type); + _("unexpected net type %1$d"), def->type); return -1; } =20 @@ -23841,7 +23753,7 @@ virDomainNetDefFormat(virBuffer *buf, if (publicActual) { if (!(typeStr =3D virDomainNetTypeToString(actualType))) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("unexpected actual net type %d"), actualType); + _("unexpected actual net type %1$d"), actualTyp= e); return -1; } if (actualType =3D=3D VIR_DOMAIN_NET_TYPE_HOSTDEV) @@ -23849,7 +23761,7 @@ virDomainNetDefFormat(virBuffer *buf, } else { if (!(typeStr =3D virDomainNetTypeToString(def->type))) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("unexpected net type %d"), def->type); + _("unexpected net type %1$d"), def->type); return -1; } if (def->type =3D=3D VIR_DOMAIN_NET_TYPE_HOSTDEV) @@ -24129,7 +24041,7 @@ virDomainChrAttrsDefFormat(virBuffer *buf, =20 if (!type) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("unexpected char type %d"), def->type); + _("unexpected char type %1$d"), def->type); return -1; } =20 @@ -24386,7 +24298,7 @@ virDomainChrTargetDefFormat(virBuffer *buf, =20 case VIR_DOMAIN_CHR_DEVICE_TYPE_LAST: virReportError(VIR_ERR_INTERNAL_ERROR, - _("unexpected char device type %d"), + _("unexpected char device type %1$d"), def->deviceType); return -1; } @@ -24404,7 +24316,7 @@ virDomainChrDefFormat(virBuffer *buf, =20 if (!elementName) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("unexpected char device type %d"), + _("unexpected char device type %1$d"), def->deviceType); return -1; } @@ -24445,7 +24357,7 @@ virDomainSmartcardDefFormat(virBuffer *buf, =20 if (!mode) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("unexpected smartcard type %d"), def->type); + _("unexpected smartcard type %1$d"), def->type); return -1; } =20 @@ -24492,7 +24404,7 @@ virDomainSoundCodecDefFormat(virBuffer *buf, =20 if (!type) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("unexpected codec type %d"), def->type); + _("unexpected codec type %1$d"), def->type); return -1; } =20 @@ -24603,7 +24515,7 @@ virDomainSoundDefFormat(virBuffer *buf, =20 if (!model) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("unexpected sound model %d"), def->model); + _("unexpected sound model %1$d"), def->model); return -1; } =20 @@ -24754,7 +24666,7 @@ virDomainAudioDefFormat(virBuffer *buf, =20 if (!type) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("unexpected audio type %d"), def->type); + _("unexpected audio type %1$d"), def->type); return -1; } =20 @@ -24851,7 +24763,7 @@ virDomainMemballoonDefFormat(virBuffer *buf, =20 if (!model) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("unexpected memballoon model %d"), def->model); + _("unexpected memballoon model %1$d"), def->model); return -1; } =20 @@ -24904,13 +24816,13 @@ virDomainWatchdogDefFormat(virBuffer *buf, =20 if (!model) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("unexpected watchdog model %d"), def->model); + _("unexpected watchdog model %1$d"), def->model); return -1; } =20 if (!action) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("unexpected watchdog action %d"), def->action); + _("unexpected watchdog action %1$d"), def->action); return -1; } =20 @@ -25261,7 +25173,7 @@ virDomainVideoDefFormat(virBuffer *buf, =20 if (!model) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("unexpected video model %d"), def->type); + _("unexpected video model %1$d"), def->type); return -1; } =20 @@ -25342,12 +25254,12 @@ virDomainInputDefFormat(virBuffer *buf, =20 if (!type) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("unexpected input type %d"), def->type); + _("unexpected input type %1$d"), def->type); return -1; } if (!bus) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("unexpected input bus type %d"), def->bus); + _("unexpected input bus type %1$d"), def->bus); return -1; } =20 @@ -25360,7 +25272,7 @@ virDomainInputDefFormat(virBuffer *buf, =20 if (!model) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("unexpected input model %d"), def->model); + _("unexpected input model %1$d"), def->model); return -1; } =20 @@ -25609,7 +25521,7 @@ virDomainGraphicsDefFormat(virBuffer *buf, =20 if (!type) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("unexpected net type %d"), def->type); + _("unexpected net type %1$d"), def->type); return -1; } =20 @@ -25964,7 +25876,7 @@ virDomainHostdevDefFormat(virBuffer *buf, =20 if (!mode) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("unexpected hostdev mode %d"), def->mode); + _("unexpected hostdev mode %1$d"), def->mode); return -1; } =20 @@ -25973,7 +25885,7 @@ virDomainHostdevDefFormat(virBuffer *buf, type =3D virDomainHostdevSubsysTypeToString(def->source.subsys.typ= e); if (!type) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("unexpected hostdev type %d"), + _("unexpected hostdev type %1$d"), def->source.subsys.type); return -1; } @@ -25982,14 +25894,14 @@ virDomainHostdevDefFormat(virBuffer *buf, type =3D virDomainHostdevCapsTypeToString(def->source.caps.type); if (!type) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("unexpected hostdev type %d"), + _("unexpected hostdev type %1$d"), def->source.caps.type); return -1; } break; default: virReportError(VIR_ERR_INTERNAL_ERROR, - _("unexpected hostdev mode %d"), def->mode); + _("unexpected hostdev mode %1$d"), def->mode); return -1; } =20 @@ -26130,7 +26042,7 @@ virDomainHubDefFormat(virBuffer *buf, =20 if (!type) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("unexpected hub type %d"), def->type); + _("unexpected hub type %1$d"), def->type); return -1; } =20 @@ -27037,7 +26949,7 @@ virDomainDefFormatFeatures(virBuffer *buf, case VIR_TRISTATE_SWITCH_LAST: case VIR_TRISTATE_SWITCH_OFF: virReportError(VIR_ERR_INTERNAL_ERROR, - _("Unexpected state of feature '%s'"), name); + _("Unexpected state of feature '%1$s'"), name= ); return -1; break; } @@ -27391,7 +27303,7 @@ virDomainDefFormatInternalSetRootName(virDomainDef = *def, =20 if (!(type =3D virDomainVirtTypeToString(def->virtType))) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("unexpected domain type %d"), def->virtType); + _("unexpected domain type %1$d"), def->virtType); return -1; } =20 @@ -27560,7 +27472,7 @@ virDomainDefFormatInternalSetRootName(virDomainDef = *def, virDomainBootTypeToString(def->os.bootDevs[n]); if (!boottype) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("unexpected boot device type %d"), + _("unexpected boot device type %1$d"), def->os.bootDevs[n]); return -1; } @@ -27593,7 +27505,7 @@ virDomainDefFormatInternalSetRootName(virDomainDef = *def, mode =3D virDomainSmbiosModeTypeToString(def->os.smbios_mode); if (mode =3D=3D NULL) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("unexpected smbios mode %d"), def->os.smbios_= mode); + _("unexpected smbios mode %1$d"), def->os.smbio= s_mode); return -1; } virBufferAsprintf(buf, "\n", mode); @@ -27956,7 +27868,7 @@ virDomainDeviceInfoCheckBootIndex(virDomainDef *def= G_GNUC_UNUSED, =20 if (info->bootIndex =3D=3D data->newInfo->bootIndex) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("boot order %u is already used by another device"= ), + _("boot order %1$u is already used by another devic= e"), data->newInfo->bootIndex); return -1; } @@ -28030,8 +27942,7 @@ virDomainDefCompatibleDevice(virDomainDef *def, if (action =3D=3D VIR_DOMAIN_DEVICE_ACTION_ATTACH && (virDomainDefGetMemoryTotal(def) + sz) > def->mem.max_memory) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Attaching memory device with size '%llu' wou= ld " - "exceed domain's maxMemory config size '%llu'= "), + _("Attaching memory device with size '%1$llu' w= ould exceed domain's maxMemory config size '%2$llu'"), sz, def->mem.max_memory); return -1; } @@ -28056,7 +27967,7 @@ virDomainDefSaveXML(virDomainDef *def, =20 if (g_mkdir_with_parents(configDir, 0777) < 0) { virReportSystemError(errno, - _("cannot create config directory '%s'"), + _("cannot create config directory '%1$s'"), configDir); return -1; } @@ -28121,7 +28032,7 @@ virDomainDeleteConfig(const char *configDir, if (unlink(configFile) < 0 && errno !=3D ENOENT) { virReportSystemError(errno, - _("cannot remove config %s"), + _("cannot remove config %1$s"), configFile); return -1; } @@ -28517,7 +28428,7 @@ virDomainObjSetState(virDomainObj *dom, virDomainSt= ate state, int reason) break; case VIR_DOMAIN_LAST: default: - VIR_ERROR(_("invalid domain state: %d"), state); + VIR_ERROR(_("invalid domain state: %1$d"), state); return; } =20 @@ -28899,7 +28810,7 @@ virDomainNetFind(virDomainDef *def, const char *dev= ice) } =20 virReportError(VIR_ERR_INVALID_ARG, - _("'%s' is not a known interface"), device); + _("'%1$s' is not a known interface"), device); return NULL; } =20 @@ -29001,7 +28912,7 @@ virDomainDefFindDevice(virDomainDef *def, if (dev->type =3D=3D VIR_DOMAIN_DEVICE_NONE) { if (reportError) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("no device found with alias %s"), devAlias); + _("no device found with alias %1$s"), devAlias); } else { VIR_DEBUG("no device found with alias %s", devAlias); } @@ -29207,7 +29118,7 @@ virDomainObjGetMetadata(virDomainObj *vm, =20 if (type >=3D VIR_DOMAIN_METADATA_LAST) { virReportError(VIR_ERR_INVALID_ARG, - _("unknown metadata type '%d'"), type); + _("unknown metadata type '%1$d'"), type); return NULL; } =20 @@ -29256,7 +29167,7 @@ virDomainDefSetMetadata(virDomainDef *def, =20 if (type >=3D VIR_DOMAIN_METADATA_LAST) { virReportError(VIR_ERR_INVALID_ARG, - _("unknown metadata type '%d'"), type); + _("unknown metadata type '%1$d'"), type); return -1; } =20 @@ -29380,7 +29291,7 @@ virDomainDiskDefCheckDuplicateInfo(const virDomainD= iskDef *a, { if (STREQ(a->dst, b->dst)) { virReportError(VIR_ERR_XML_ERROR, - _("target '%s' duplicated for disk sources '%s' and= '%s'"), + _("target '%1$s' duplicated for disk sources '%2$s'= and '%3$s'"), a->dst, NULLSTR(virDomainDiskGetSource(a)), NULLSTR(virDomainDiskGetSource(b))); @@ -29599,7 +29510,7 @@ virDomainNetDefToNetworkPort(virDomainDef *dom, =20 if (iface->type !=3D VIR_DOMAIN_NET_TYPE_NETWORK) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("Expected an interface of type 'network' not '%s'= "), + _("Expected an interface of type 'network' not '%1$= s'"), virDomainNetTypeToString(iface->type)); return NULL; } @@ -29641,7 +29552,7 @@ virDomainNetDefActualFromNetworkPort(virDomainNetDe= f *iface, =20 if (iface->type !=3D VIR_DOMAIN_NET_TYPE_NETWORK) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("Expected an interface of type 'network' not '%s'= "), + _("Expected an interface of type 'network' not '%1$= s'"), virDomainNetTypeToString(iface->type)); return -1; } @@ -29749,7 +29660,7 @@ virDomainNetDefActualToNetworkPort(virDomainDef *do= m, =20 if (!iface->data.network.actual) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("Missing actual data for interface '%s'"), + _("Missing actual data for interface '%1$s'"), iface->ifname); return NULL; } @@ -29758,7 +29669,7 @@ virDomainNetDefActualToNetworkPort(virDomainDef *do= m, =20 if (iface->type !=3D VIR_DOMAIN_NET_TYPE_NETWORK) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("Expected an interface of type 'network' not '%s'= "), + _("Expected an interface of type 'network' not '%1$= s'"), virDomainNetTypeToString(iface->type)); return NULL; } @@ -29804,7 +29715,7 @@ virDomainNetDefActualToNetworkPort(virDomainDef *do= m, if (actual->data.hostdev.def.mode !=3D VIR_DOMAIN_HOSTDEV_MODE_SUB= SYS || actual->data.hostdev.def.source.subsys.type !=3D VIR_DOMAIN_HO= STDEV_SUBSYS_TYPE_PCI) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("Actual interface '%s' hostdev was not a PCI = device"), + _("Actual interface '%1$s' hostdev was not a PC= I device"), iface->ifname); return NULL; } @@ -29849,7 +29760,7 @@ virDomainNetDefActualToNetworkPort(virDomainDef *do= m, case VIR_DOMAIN_NET_TYPE_NULL: case VIR_DOMAIN_NET_TYPE_VDS: virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("Unexpected network port type %s"), + _("Unexpected network port type %1$s"), virDomainNetTypeToString(virDomainNetGetActualType(= iface))); return NULL; =20 @@ -30204,7 +30115,7 @@ virDomainDiskAddISCSIPoolSourceHost(virStorageSourc= e *src, =20 if (g_strv_length(tokens) !=3D 4) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("unexpected iscsi volume name '%s'"), + _("unexpected iscsi volume name '%1$s'"), src->srcpool->volume); return -1; } @@ -30290,8 +30201,7 @@ virDomainStorageSourceTranslateSourcePool(virStorag= eSource *src, =20 if (virStoragePoolIsActive(pool) !=3D 1) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("storage pool '%s' containing volume '%s' " - "is not active"), + _("storage pool '%1$s' containing volume '%2$s' is = not active"), src->srcpool->pool, src->srcpool->volume); return -1; } @@ -30356,8 +30266,7 @@ virDomainStorageSourceTranslateSourcePool(virStorag= eSource *src, case VIR_STORAGE_VOL_NETWORK: case VIR_STORAGE_VOL_NETDIR: virReportError(VIR_ERR_INTERNAL_ERROR, - _("unexpected storage volume type '%s' " - "for storage pool type '%s'"), + _("unexpected storage volume type '%1$s' for st= orage pool type '%2$s'"), virStorageVolTypeToString(info.type), virStoragePoolTypeToString(pooldef->type)); return -1; @@ -30396,8 +30305,7 @@ virDomainStorageSourceTranslateSourcePool(virStorag= eSource *src, case VIR_STORAGE_POOL_GLUSTER: case VIR_STORAGE_POOL_LAST: virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("using '%s' pools for backing 'volume' disks " - "isn't yet supported"), + _("using '%1$s' pools for backing 'volume' disks is= n't yet supported"), virStoragePoolTypeToString(pooldef->type)); return -1; } @@ -30811,7 +30719,7 @@ virDomainObjGetMessages(virDomainObj *vm, for (i =3D 0; i < VIR_DOMAIN_TAINT_LAST; i++) { if (vm->taint & (1 << i)) { (*msgs)[n++] =3D g_strdup_printf( - _("tainted: %s"), + _("tainted: %1$s"), _(virDomainTaintMessageTypeToString(i))); } } @@ -30823,7 +30731,7 @@ virDomainObjGetMessages(virDomainObj *vm, =20 for (i =3D 0; i < vm->ndeprecations; i++) { (*msgs)[n++] =3D g_strdup_printf( - _("deprecated configuration: %s"), + _("deprecated configuration: %1$s"), vm->deprecations[i]); } } --=20 2.39.2