]> xenbits.xensource.com Git - libvirt.git/commitdiff
Fixed dumpxml of <iotune> parameters
authorMartin Kletzander <mkletzan@redhat.com>
Tue, 17 Jan 2012 14:55:57 +0000 (15:55 +0100)
committerEric Blake <eblake@redhat.com>
Tue, 17 Jan 2012 18:47:30 +0000 (11:47 -0700)
The output of dumpxml for <iotune> settings was misformatted, this
patch just adds missing newlines.

src/conf/domain_conf.c

index 8f6eea7946f367da54d4d1ac31e670777ce10368..96a4669fc38b086da510628d28fa2810b809400f 100644 (file)
@@ -10050,12 +10050,12 @@ virDomainDiskDefFormat(virBufferPtr buf,
         }
 
         if (def->blkdeviotune.read_iops_sec) {
-            virBufferAsprintf(buf, "        <read_iops_sec>%llu</read_iops_sec>",
+            virBufferAsprintf(buf, "        <read_iops_sec>%llu</read_iops_sec>\n",
                               def->blkdeviotune.read_iops_sec);
         }
 
         if (def->blkdeviotune.write_iops_sec) {
-            virBufferAsprintf(buf, "        <write_iops_sec>%llu</write_iops_sec>",
+            virBufferAsprintf(buf, "        <write_iops_sec>%llu</write_iops_sec>\n",
                               def->blkdeviotune.write_iops_sec);
         }