]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
conf: use virXMLFormatElementDirect
authorPavel Hrdina <phrdina@redhat.com>
Thu, 6 Mar 2025 14:32:47 +0000 (15:32 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Fri, 7 Mar 2025 13:18:41 +0000 (14:18 +0100)
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/conf/domain_conf.c
src/conf/node_device_conf.c

index 7eb6d4c91ade44ee452a29ed76522cabd784f302..6a2a1d1ed78e2e1da3853445fc7e609e46670164 100644 (file)
@@ -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, "<memory");
index 88486a5f2d0ada936cf7a5355b8b5e35cee82729..9c7982c68001070e1cb102920926eae324d2d543 100644 (file)
@@ -262,7 +262,7 @@ virNodeDeviceCapVPDFormatCustomField(virBuffer *buf,
     virBufferAsprintf(&attrBuf, " index='%c'", field->idx);
     virBufferEscapeString(&content, "%s", field->value);
 
-    virXMLFormatElementInternal(buf, fieldtype, &attrBuf, &content, false, false);
+    virXMLFormatElementDirect(buf, fieldtype, &attrBuf, &content);
 }
 
 static void