]> xenbits.xensource.com Git - libvirt.git/commitdiff
virNodeDeviceCapPCIDefFormat: Drop useless space before end of tags
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 11 Jun 2019 14:51:37 +0000 (16:51 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 14 Jun 2019 07:27:23 +0000 (09:27 +0200)
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/conf/node_device_conf.c

index 1db045d9ace1864ebdfcfe424837a3979f375335..4ef92d5129ade39c97039e168bcd410827d548c7 100644 (file)
@@ -227,14 +227,14 @@ virNodeDeviceCapPCIDefFormat(virBufferPtr buf,
         virBufferEscapeString(buf, ">%s</product>\n",
                               data->pci_dev.product_name);
     else
-        virBufferAddLit(buf, " />\n");
+        virBufferAddLit(buf, "/>\n");
     virBufferAsprintf(buf, "<vendor id='0x%04x'",
                       data->pci_dev.vendor);
     if (data->pci_dev.vendor_name)
         virBufferEscapeString(buf, ">%s</vendor>\n",
                               data->pci_dev.vendor_name);
     else
-        virBufferAddLit(buf, " />\n");
+        virBufferAddLit(buf, "/>\n");
     if (data->pci_dev.flags & VIR_NODE_DEV_CAP_FLAG_PCI_PHYSICAL_FUNCTION) {
         virBufferAddLit(buf, "<capability type='phys_function'>\n");
         virBufferAdjustIndent(buf, 2);