From: Pavel Hrdina Date: Thu, 6 Mar 2025 14:32:47 +0000 (+0100) Subject: conf: use virXMLFormatElementDirect X-Git-Tag: v11.2.0-rc1~233 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aedfdaa3f668e96be25cbba9860f4d791b5b7d99;p=thirdparty%2Flibvirt.git conf: use virXMLFormatElementDirect Signed-off-by: Pavel Hrdina Reviewed-by: Ján Tomko --- diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 7eb6d4c91a..6a2a1d1ed7 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -27110,7 +27110,7 @@ virDomainLoaderDefFormat(virBuffer *buf, virBufferEscapeString(&loaderChildBuf, "%s", loader->path); - virXMLFormatElementInternal(buf, "loader", &loaderAttrBuf, &loaderChildBuf, false, false); + virXMLFormatElementDirect(buf, "loader", &loaderAttrBuf, &loaderChildBuf); if (virDomainLoaderDefFormatNvram(buf, loader, xmlopt, flags) < 0) return -1; @@ -28361,7 +28361,7 @@ virDomainDefFormatInternalSetRootName(virDomainDef *def, virBufferAddLit(&attrBuf, " unit='KiB'"); virBufferAsprintf(&contentBuf, "%llu", def->mem.max_memory); - virXMLFormatElementInternal(buf, "maxMemory", &attrBuf, &contentBuf, false, false); + virXMLFormatElementDirect(buf, "maxMemory", &attrBuf, &contentBuf); } virBufferAddLit(buf, "idx); virBufferEscapeString(&content, "%s", field->value); - virXMLFormatElementInternal(buf, fieldtype, &attrBuf, &content, false, false); + virXMLFormatElementDirect(buf, fieldtype, &attrBuf, &content); } static void